From e4115e17754b43ea7f7c801d6c3e457ac2b603c6 Mon Sep 17 00:00:00 2001 From: Lawrence Qiu Date: Tue, 22 Nov 2022 22:08:54 +0000 Subject: [PATCH 1/3] feat: [vmwareengine] new module for vmwareengine --- gapic-libraries-bom/pom.xml | 7 + .../google-cloud-accessapproval-bom/pom.xml | 2 +- java-accessapproval/pom.xml | 2 +- .../pom.xml | 2 +- java-accesscontextmanager/pom.xml | 2 +- .../google-cloud-aiplatform-bom/pom.xml | 2 +- java-aiplatform/pom.xml | 2 +- .../google-analytics-admin-bom/pom.xml | 2 +- java-analytics-admin/pom.xml | 2 +- .../google-analytics-data-bom/pom.xml | 2 +- java-analytics-data/pom.xml | 2 +- .../google-cloud-analyticshub-bom/pom.xml | 2 +- java-analyticshub/pom.xml | 2 +- .../google-cloud-api-gateway-bom/pom.xml | 2 +- java-api-gateway/pom.xml | 2 +- .../google-cloud-apigee-connect-bom/pom.xml | 2 +- java-apigee-connect/pom.xml | 2 +- .../google-cloud-apigee-registry-bom/pom.xml | 2 +- java-apigee-registry/pom.xml | 2 +- java-apikeys/google-cloud-apikeys-bom/pom.xml | 2 +- java-apikeys/pom.xml | 2 +- .../google-cloud-appengine-admin-bom/pom.xml | 2 +- java-appengine-admin/pom.xml | 2 +- .../google-area120-tables-bom/pom.xml | 2 +- java-area120-tables/pom.xml | 2 +- .../pom.xml | 2 +- java-artifact-registry/pom.xml | 2 +- java-asset/google-cloud-asset-bom/pom.xml | 2 +- java-asset/pom.xml | 2 +- .../pom.xml | 2 +- java-assured-workloads/pom.xml | 2 +- java-automl/google-cloud-automl-bom/pom.xml | 2 +- java-automl/pom.xml | 2 +- .../pom.xml | 2 +- java-bare-metal-solution/pom.xml | 2 +- java-batch/google-cloud-batch-bom/pom.xml | 2 +- java-batch/pom.xml | 2 +- .../pom.xml | 2 +- java-beyondcorp-appconnections/pom.xml | 2 +- .../pom.xml | 2 +- java-beyondcorp-appconnectors/pom.xml | 2 +- .../pom.xml | 2 +- java-beyondcorp-appgateways/pom.xml | 2 +- .../pom.xml | 2 +- .../pom.xml | 2 +- .../pom.xml | 2 +- java-beyondcorp-clientgateways/pom.xml | 2 +- .../pom.xml | 2 +- java-bigquery-data-exchange/pom.xml | 2 +- .../pom.xml | 2 +- java-bigqueryconnection/pom.xml | 2 +- .../pom.xml | 2 +- java-bigquerydatapolicy/pom.xml | 2 +- .../pom.xml | 2 +- java-bigquerydatatransfer/pom.xml | 2 +- .../pom.xml | 2 +- java-bigquerymigration/pom.xml | 2 +- .../pom.xml | 2 +- java-bigqueryreservation/pom.xml | 2 +- java-billing/google-cloud-billing-bom/pom.xml | 2 +- java-billing/pom.xml | 2 +- .../google-cloud-billingbudgets-bom/pom.xml | 2 +- java-billingbudgets/pom.xml | 2 +- .../pom.xml | 2 +- java-binary-authorization/pom.xml | 2 +- .../pom.xml | 2 +- java-certificate-manager/pom.xml | 2 +- java-channel/google-cloud-channel-bom/pom.xml | 2 +- java-channel/pom.xml | 2 +- .../google-cloud-build-bom/pom.xml | 2 +- java-cloudbuild/pom.xml | 2 +- .../pom.xml | 2 +- java-cloudcommerceconsumerprocurement/pom.xml | 2 +- java-compute/google-cloud-compute-bom/pom.xml | 2 +- java-compute/pom.xml | 2 +- .../pom.xml | 2 +- java-contact-center-insights/pom.xml | 2 +- .../google-cloud-container-bom/pom.xml | 2 +- java-container/pom.xml | 2 +- .../pom.xml | 2 +- java-containeranalysis/pom.xml | 2 +- .../google-cloud-contentwarehouse-bom/pom.xml | 2 +- java-contentwarehouse/pom.xml | 2 +- .../google-cloud-data-fusion-bom/pom.xml | 2 +- java-data-fusion/pom.xml | 2 +- .../google-cloud-datacatalog-bom/pom.xml | 2 +- java-datacatalog/pom.xml | 2 +- .../google-cloud-dataflow-bom/pom.xml | 2 +- java-dataflow/pom.xml | 2 +- .../google-cloud-dataform-bom/pom.xml | 2 +- java-dataform/pom.xml | 2 +- .../google-cloud-datalabeling-bom/pom.xml | 2 +- java-datalabeling/pom.xml | 2 +- .../google-cloud-dataplex-bom/pom.xml | 2 +- java-dataplex/pom.xml | 2 +- .../pom.xml | 2 +- java-dataproc-metastore/pom.xml | 2 +- .../google-cloud-dataproc-bom/pom.xml | 2 +- java-dataproc/pom.xml | 2 +- .../google-cloud-datastream-bom/pom.xml | 2 +- java-datastream/pom.xml | 2 +- .../google-cloud-debugger-client-bom/pom.xml | 2 +- java-debugger-client/pom.xml | 2 +- java-deploy/google-cloud-deploy-bom/pom.xml | 2 +- java-deploy/pom.xml | 2 +- .../google-cloud-dialogflow-cx-bom/pom.xml | 2 +- java-dialogflow-cx/pom.xml | 2 +- .../google-cloud-dialogflow-bom/pom.xml | 2 +- java-dialogflow/pom.xml | 2 +- .../google-cloud-discoveryengine-bom/pom.xml | 2 +- java-discoveryengine/pom.xml | 2 +- .../pom.xml | 2 +- java-distributedcloudedge/pom.xml | 2 +- java-dlp/google-cloud-dlp-bom/pom.xml | 2 +- java-dlp/pom.xml | 2 +- java-dms/google-cloud-dms-bom/pom.xml | 2 +- java-dms/pom.xml | 2 +- java-dns/pom.xml | 2 +- .../google-cloud-document-ai-bom/pom.xml | 2 +- java-document-ai/pom.xml | 2 +- java-domains/google-cloud-domains-bom/pom.xml | 2 +- java-domains/pom.xml | 2 +- .../pom.xml | 2 +- java-enterpriseknowledgegraph/pom.xml | 2 +- .../google-cloud-errorreporting-bom/pom.xml | 2 +- java-errorreporting/pom.xml | 2 +- .../pom.xml | 2 +- java-essential-contacts/pom.xml | 2 +- .../pom.xml | 2 +- java-eventarc-publishing/pom.xml | 2 +- .../google-cloud-eventarc-bom/pom.xml | 2 +- java-eventarc/pom.xml | 2 +- .../google-cloud-filestore-bom/pom.xml | 2 +- java-filestore/pom.xml | 2 +- .../google-cloud-functions-bom/pom.xml | 2 +- java-functions/pom.xml | 2 +- .../google-cloud-game-servers-bom/pom.xml | 2 +- java-game-servers/pom.xml | 2 +- .../google-cloud-gke-backup-bom/pom.xml | 2 +- java-gke-backup/pom.xml | 2 +- .../pom.xml | 2 +- java-gke-connect-gateway/pom.xml | 2 +- .../google-cloud-gke-multi-cloud-bom/pom.xml | 2 +- java-gke-multi-cloud/pom.xml | 2 +- java-gkehub/google-cloud-gkehub-bom/pom.xml | 2 +- java-gkehub/pom.xml | 2 +- java-grafeas/pom.xml | 2 +- .../google-cloud-gsuite-addons-bom/pom.xml | 2 +- java-gsuite-addons/pom.xml | 2 +- java-iam-admin/google-iam-admin-bom/pom.xml | 2 +- java-iam-admin/pom.xml | 2 +- .../google-cloud-iamcredentials-bom/pom.xml | 2 +- java-iamcredentials/pom.xml | 2 +- java-ids/google-cloud-ids-bom/pom.xml | 2 +- java-ids/pom.xml | 2 +- java-iot/google-cloud-iot-bom/pom.xml | 2 +- java-iot/pom.xml | 2 +- java-kms/google-cloud-kms-bom/pom.xml | 2 +- java-kms/pom.xml | 2 +- .../google-cloud-language-bom/pom.xml | 2 +- java-language/pom.xml | 2 +- .../google-cloud-life-sciences-bom/pom.xml | 2 +- java-life-sciences/pom.xml | 2 +- .../pom.xml | 2 +- java-managed-identities/pom.xml | 2 +- .../google-maps-routing-bom/pom.xml | 2 +- java-maps-routing/pom.xml | 2 +- .../google-cloud-mediatranslation-bom/pom.xml | 2 +- java-mediatranslation/pom.xml | 2 +- .../google-cloud-memcache-bom/pom.xml | 2 +- java-memcache/pom.xml | 2 +- .../pom.xml | 2 +- java-monitoring-dashboards/pom.xml | 2 +- .../google-cloud-monitoring-bom/pom.xml | 2 +- java-monitoring/pom.xml | 2 +- .../pom.xml | 2 +- java-network-management/pom.xml | 2 +- .../google-cloud-network-security-bom/pom.xml | 2 +- java-network-security/pom.xml | 2 +- .../pom.xml | 2 +- java-networkconnectivity/pom.xml | 2 +- .../google-cloud-notebooks-bom/pom.xml | 2 +- java-notebooks/pom.xml | 2 +- java-notification/pom.xml | 2 +- .../google-cloud-optimization-bom/pom.xml | 2 +- java-optimization/pom.xml | 2 +- .../pom.xml | 2 +- java-orchestration-airflow/pom.xml | 2 +- .../google-cloud-orgpolicy-bom/pom.xml | 2 +- java-orgpolicy/pom.xml | 2 +- .../google-cloud-os-config-bom/pom.xml | 2 +- java-os-config/pom.xml | 2 +- .../google-cloud-os-login-bom/pom.xml | 2 +- java-os-login/pom.xml | 2 +- .../pom.xml | 2 +- java-phishingprotection/pom.xml | 2 +- .../pom.xml | 2 +- java-policy-troubleshooter/pom.xml | 2 +- .../google-cloud-private-catalog-bom/pom.xml | 2 +- java-private-catalog/pom.xml | 2 +- .../google-cloud-profiler-bom/pom.xml | 2 +- java-profiler/pom.xml | 2 +- .../google-cloud-publicca-bom/pom.xml | 2 +- java-publicca/pom.xml | 2 +- .../pom.xml | 2 +- java-recaptchaenterprise/pom.xml | 2 +- .../pom.xml | 2 +- java-recommendations-ai/pom.xml | 2 +- .../google-cloud-recommender-bom/pom.xml | 2 +- java-recommender/pom.xml | 2 +- java-redis/google-cloud-redis-bom/pom.xml | 2 +- java-redis/pom.xml | 2 +- .../pom.xml | 2 +- java-resource-settings/pom.xml | 2 +- .../google-cloud-resourcemanager-bom/pom.xml | 2 +- java-resourcemanager/pom.xml | 2 +- java-retail/google-cloud-retail-bom/pom.xml | 2 +- java-retail/pom.xml | 2 +- java-run/google-cloud-run-bom/pom.xml | 2 +- java-run/pom.xml | 2 +- .../google-cloud-scheduler-bom/pom.xml | 2 +- java-scheduler/pom.xml | 2 +- .../google-cloud-secretmanager-bom/pom.xml | 2 +- java-secretmanager/pom.xml | 2 +- .../pom.xml | 2 +- java-security-private-ca/pom.xml | 2 +- .../pom.xml | 2 +- java-securitycenter-settings/pom.xml | 2 +- .../google-cloud-securitycenter-bom/pom.xml | 2 +- java-securitycenter/pom.xml | 2 +- .../google-cloud-service-control-bom/pom.xml | 2 +- java-service-control/pom.xml | 2 +- .../pom.xml | 2 +- java-service-management/pom.xml | 2 +- .../google-cloud-service-usage-bom/pom.xml | 2 +- java-service-usage/pom.xml | 2 +- .../google-cloud-servicedirectory-bom/pom.xml | 2 +- java-servicedirectory/pom.xml | 2 +- java-shell/google-cloud-shell-bom/pom.xml | 2 +- java-shell/pom.xml | 2 +- java-speech/google-cloud-speech-bom/pom.xml | 2 +- java-speech/pom.xml | 2 +- .../google-cloud-storage-transfer-bom/pom.xml | 2 +- java-storage-transfer/pom.xml | 2 +- java-talent/google-cloud-talent-bom/pom.xml | 2 +- java-talent/pom.xml | 2 +- java-tasks/google-cloud-tasks-bom/pom.xml | 2 +- java-tasks/pom.xml | 2 +- .../google-cloud-texttospeech-bom/pom.xml | 2 +- java-texttospeech/pom.xml | 2 +- java-tpu/google-cloud-tpu-bom/pom.xml | 2 +- java-tpu/pom.xml | 2 +- java-trace/google-cloud-trace-bom/pom.xml | 2 +- java-trace/pom.xml | 2 +- .../google-cloud-translate-bom/pom.xml | 2 +- java-translate/pom.xml | 2 +- .../pom.xml | 2 +- java-video-intelligence/pom.xml | 2 +- .../google-cloud-live-stream-bom/pom.xml | 2 +- java-video-live-stream/pom.xml | 2 +- .../google-cloud-video-stitcher-bom/pom.xml | 2 +- java-video-stitcher/pom.xml | 2 +- .../google-cloud-video-transcoder-bom/pom.xml | 2 +- java-video-transcoder/pom.xml | 2 +- java-vision/google-cloud-vision-bom/pom.xml | 2 +- java-vision/pom.xml | 2 +- .../google-cloud-vmmigration-bom/pom.xml | 2 +- java-vmmigration/pom.xml | 2 +- java-vmwareengine/.OwlBot.yaml | 33 + java-vmwareengine/.repo-metadata.json | 16 + java-vmwareengine/README.md | 201 + .../google-cloud-vmwareengine-bom/pom.xml | 44 + .../google-cloud-vmwareengine/pom.xml | 113 + .../vmwareengine/v1/VmwareEngineClient.java | 6304 +++++++++++++++++ .../vmwareengine/v1/VmwareEngineSettings.java | 846 +++ .../cloud/vmwareengine/v1/gapic_metadata.json | 126 + .../cloud/vmwareengine/v1/package-info.java | 43 + .../stub/GrpcVmwareEngineCallableFactory.java | 113 + .../v1/stub/GrpcVmwareEngineStub.java | 1654 +++++ .../HttpJsonVmwareEngineCallableFactory.java | 105 + .../v1/stub/HttpJsonVmwareEngineStub.java | 2556 +++++++ .../v1/stub/VmwareEngineStub.java | 398 ++ .../v1/stub/VmwareEngineStubSettings.java | 2575 +++++++ .../cloud/vmwareengine/v1/MockIAMPolicy.java | 59 + .../vmwareengine/v1/MockIAMPolicyImpl.java | 127 + .../cloud/vmwareengine/v1/MockLocations.java | 59 + .../vmwareengine/v1/MockLocationsImpl.java | 105 + .../vmwareengine/v1/MockVmwareEngine.java | 59 + .../vmwareengine/v1/MockVmwareEngineImpl.java | 714 ++ .../v1/VmwareEngineClientHttpJsonTest.java | 3685 ++++++++++ .../v1/VmwareEngineClientTest.java | 3314 +++++++++ .../grpc-google-cloud-vmwareengine-v1/pom.xml | 45 + .../vmwareengine/v1/VmwareEngineGrpc.java | 4176 +++++++++++ java-vmwareengine/owlbot.py | 36 + java-vmwareengine/pom.xml | 53 + .../clirr-ignored-differences.xml | 19 + .../pom.xml | 37 + .../google/cloud/vmwareengine/v1/Cluster.java | 2266 ++++++ .../cloud/vmwareengine/v1/ClusterName.java | 269 + .../vmwareengine/v1/ClusterOrBuilder.java | 279 + .../vmwareengine/v1/CreateClusterRequest.java | 1470 ++++ .../v1/CreateClusterRequestOrBuilder.java | 187 + .../v1/CreateHcxActivationKeyRequest.java | 1465 ++++ ...reateHcxActivationKeyRequestOrBuilder.java | 196 + .../v1/CreateNetworkPolicyRequest.java | 1460 ++++ .../CreateNetworkPolicyRequestOrBuilder.java | 197 + .../v1/CreatePrivateCloudRequest.java | 1471 ++++ .../CreatePrivateCloudRequestOrBuilder.java | 187 + .../v1/CreateVmwareEngineNetworkRequest.java | 1496 ++++ ...teVmwareEngineNetworkRequestOrBuilder.java | 203 + .../cloud/vmwareengine/v1/Credentials.java | 792 +++ .../vmwareengine/v1/CredentialsOrBuilder.java | 75 + .../vmwareengine/v1/DeleteClusterRequest.java | 843 +++ .../v1/DeleteClusterRequestOrBuilder.java | 89 + .../v1/DeleteNetworkPolicyRequest.java | 913 +++ .../DeleteNetworkPolicyRequestOrBuilder.java | 109 + .../v1/DeletePrivateCloudRequest.java | 1123 +++ .../DeletePrivateCloudRequestOrBuilder.java | 144 + .../v1/DeleteVmwareEngineNetworkRequest.java | 1121 +++ ...teVmwareEngineNetworkRequestOrBuilder.java | 140 + .../vmwareengine/v1/GetClusterRequest.java | 657 ++ .../v1/GetClusterRequestOrBuilder.java | 62 + .../v1/GetHcxActivationKeyRequest.java | 658 ++ .../GetHcxActivationKeyRequestOrBuilder.java | 62 + .../v1/GetNetworkPolicyRequest.java | 658 ++ .../v1/GetNetworkPolicyRequestOrBuilder.java | 62 + .../vmwareengine/v1/GetNodeTypeRequest.java | 657 ++ .../v1/GetNodeTypeRequestOrBuilder.java | 62 + .../v1/GetPrivateCloudRequest.java | 658 ++ .../v1/GetPrivateCloudRequestOrBuilder.java | 62 + .../v1/GetVmwareEngineNetworkRequest.java | 663 ++ ...etVmwareEngineNetworkRequestOrBuilder.java | 62 + .../com/google/cloud/vmwareengine/v1/Hcx.java | 1287 ++++ .../vmwareengine/v1/HcxActivationKey.java | 1641 +++++ .../vmwareengine/v1/HcxActivationKeyName.java | 269 + .../v1/HcxActivationKeyOrBuilder.java | 175 + .../cloud/vmwareengine/v1/HcxOrBuilder.java | 129 + .../vmwareengine/v1/ListClustersRequest.java | 1420 ++++ .../v1/ListClustersRequestOrBuilder.java | 189 + .../vmwareengine/v1/ListClustersResponse.java | 1395 ++++ .../v1/ListClustersResponseOrBuilder.java | 159 + .../v1/ListHcxActivationKeysRequest.java | 977 +++ ...ListHcxActivationKeysRequestOrBuilder.java | 113 + .../v1/ListHcxActivationKeysResponse.java | 1417 ++++ ...istHcxActivationKeysResponseOrBuilder.java | 160 + .../v1/ListNetworkPoliciesRequest.java | 1491 ++++ .../ListNetworkPoliciesRequestOrBuilder.java | 209 + .../v1/ListNetworkPoliciesResponse.java | 1410 ++++ .../ListNetworkPoliciesResponseOrBuilder.java | 159 + .../vmwareengine/v1/ListNodeTypesRequest.java | 1285 ++++ .../v1/ListNodeTypesRequestOrBuilder.java | 176 + .../v1/ListNodeTypesResponse.java | 1395 ++++ .../v1/ListNodeTypesResponseOrBuilder.java | 159 + .../v1/ListPrivateCloudsRequest.java | 1491 ++++ .../v1/ListPrivateCloudsRequestOrBuilder.java | 209 + .../v1/ListPrivateCloudsResponse.java | 1406 ++++ .../ListPrivateCloudsResponseOrBuilder.java | 159 + .../vmwareengine/v1/ListSubnetsRequest.java | 966 +++ .../v1/ListSubnetsRequestOrBuilder.java | 111 + .../vmwareengine/v1/ListSubnetsResponse.java | 1110 +++ .../v1/ListSubnetsResponseOrBuilder.java | 104 + .../v1/ListVmwareEngineNetworksRequest.java | 1494 ++++ ...tVmwareEngineNetworksRequestOrBuilder.java | 208 + .../v1/ListVmwareEngineNetworksResponse.java | 1434 ++++ ...VmwareEngineNetworksResponseOrBuilder.java | 162 + .../cloud/vmwareengine/v1/LocationName.java | 192 + .../cloud/vmwareengine/v1/NetworkConfig.java | 1161 +++ .../v1/NetworkConfigOrBuilder.java | 138 + .../cloud/vmwareengine/v1/NetworkPolicy.java | 3701 ++++++++++ .../vmwareengine/v1/NetworkPolicyName.java | 227 + .../v1/NetworkPolicyOrBuilder.java | 358 + .../cloud/vmwareengine/v1/NodeType.java | 1639 +++++ .../cloud/vmwareengine/v1/NodeTypeConfig.java | 630 ++ .../v1/NodeTypeConfigOrBuilder.java | 54 + .../cloud/vmwareengine/v1/NodeTypeName.java | 223 + .../vmwareengine/v1/NodeTypeOrBuilder.java | 208 + .../com/google/cloud/vmwareengine/v1/Nsx.java | 1287 ++++ .../cloud/vmwareengine/v1/NsxOrBuilder.java | 129 + .../vmwareengine/v1/OperationMetadata.java | 1811 +++++ .../v1/OperationMetadataOrBuilder.java | 218 + .../cloud/vmwareengine/v1/PrivateCloud.java | 5219 ++++++++++++++ .../vmwareengine/v1/PrivateCloudName.java | 227 + .../v1/PrivateCloudOrBuilder.java | 503 ++ .../v1/ResetNsxCredentialsRequest.java | 920 +++ .../ResetNsxCredentialsRequestOrBuilder.java | 111 + .../v1/ResetVcenterCredentialsRequest.java | 927 +++ ...setVcenterCredentialsRequestOrBuilder.java | 111 + .../v1/ShowNsxCredentialsRequest.java | 665 ++ .../ShowNsxCredentialsRequestOrBuilder.java | 64 + .../v1/ShowVcenterCredentialsRequest.java | 670 ++ ...howVcenterCredentialsRequestOrBuilder.java | 64 + .../google/cloud/vmwareengine/v1/Subnet.java | 1548 ++++ .../vmwareengine/v1/SubnetOrBuilder.java | 164 + .../v1/UndeletePrivateCloudRequest.java | 846 +++ .../UndeletePrivateCloudRequestOrBuilder.java | 89 + .../vmwareengine/v1/UpdateClusterRequest.java | 1332 ++++ .../v1/UpdateClusterRequestOrBuilder.java | 157 + .../v1/UpdateNetworkPolicyRequest.java | 1308 ++++ .../UpdateNetworkPolicyRequestOrBuilder.java | 163 + .../v1/UpdatePrivateCloudRequest.java | 1238 ++++ .../UpdatePrivateCloudRequestOrBuilder.java | 143 + .../v1/UpdateVmwareEngineNetworkRequest.java | 1335 ++++ ...teVmwareEngineNetworkRequestOrBuilder.java | 166 + .../google/cloud/vmwareengine/v1/Vcenter.java | 1289 ++++ .../vmwareengine/v1/VcenterOrBuilder.java | 129 + .../vmwareengine/v1/VmwareEngineNetwork.java | 4137 +++++++++++ .../v1/VmwareEngineNetworkName.java | 232 + .../v1/VmwareEngineNetworkOrBuilder.java | 347 + .../vmwareengine/v1/VmwareengineProto.java | 1306 ++++ .../cloud/vmwareengine/v1/vmwareengine.proto | 2194 ++++++ .../google-cloud-vpcaccess-bom/pom.xml | 2 +- java-vpcaccess/pom.xml | 2 +- java-webrisk/google-cloud-webrisk-bom/pom.xml | 2 +- java-webrisk/pom.xml | 2 +- .../pom.xml | 2 +- java-websecurityscanner/pom.xml | 2 +- .../pom.xml | 2 +- java-workflow-executions/pom.xml | 2 +- .../google-cloud-workflows-bom/pom.xml | 2 +- java-workflows/pom.xml | 2 +- pom.xml | 1 + versions.txt | 3 + 422 files changed, 112770 insertions(+), 277 deletions(-) create mode 100644 java-vmwareengine/.OwlBot.yaml create mode 100644 java-vmwareengine/.repo-metadata.json create mode 100644 java-vmwareengine/README.md create mode 100644 java-vmwareengine/google-cloud-vmwareengine-bom/pom.xml create mode 100644 java-vmwareengine/google-cloud-vmwareengine/pom.xml create mode 100644 java-vmwareengine/google-cloud-vmwareengine/src/main/java/com/google/cloud/vmwareengine/v1/VmwareEngineClient.java create mode 100644 java-vmwareengine/google-cloud-vmwareengine/src/main/java/com/google/cloud/vmwareengine/v1/VmwareEngineSettings.java create mode 100644 java-vmwareengine/google-cloud-vmwareengine/src/main/java/com/google/cloud/vmwareengine/v1/gapic_metadata.json create mode 100644 java-vmwareengine/google-cloud-vmwareengine/src/main/java/com/google/cloud/vmwareengine/v1/package-info.java create mode 100644 java-vmwareengine/google-cloud-vmwareengine/src/main/java/com/google/cloud/vmwareengine/v1/stub/GrpcVmwareEngineCallableFactory.java create mode 100644 java-vmwareengine/google-cloud-vmwareengine/src/main/java/com/google/cloud/vmwareengine/v1/stub/GrpcVmwareEngineStub.java create mode 100644 java-vmwareengine/google-cloud-vmwareengine/src/main/java/com/google/cloud/vmwareengine/v1/stub/HttpJsonVmwareEngineCallableFactory.java create mode 100644 java-vmwareengine/google-cloud-vmwareengine/src/main/java/com/google/cloud/vmwareengine/v1/stub/HttpJsonVmwareEngineStub.java create mode 100644 java-vmwareengine/google-cloud-vmwareengine/src/main/java/com/google/cloud/vmwareengine/v1/stub/VmwareEngineStub.java create mode 100644 java-vmwareengine/google-cloud-vmwareengine/src/main/java/com/google/cloud/vmwareengine/v1/stub/VmwareEngineStubSettings.java create mode 100644 java-vmwareengine/google-cloud-vmwareengine/src/test/java/com/google/cloud/vmwareengine/v1/MockIAMPolicy.java create mode 100644 java-vmwareengine/google-cloud-vmwareengine/src/test/java/com/google/cloud/vmwareengine/v1/MockIAMPolicyImpl.java create mode 100644 java-vmwareengine/google-cloud-vmwareengine/src/test/java/com/google/cloud/vmwareengine/v1/MockLocations.java create mode 100644 java-vmwareengine/google-cloud-vmwareengine/src/test/java/com/google/cloud/vmwareengine/v1/MockLocationsImpl.java create mode 100644 java-vmwareengine/google-cloud-vmwareengine/src/test/java/com/google/cloud/vmwareengine/v1/MockVmwareEngine.java create mode 100644 java-vmwareengine/google-cloud-vmwareengine/src/test/java/com/google/cloud/vmwareengine/v1/MockVmwareEngineImpl.java create mode 100644 java-vmwareengine/google-cloud-vmwareengine/src/test/java/com/google/cloud/vmwareengine/v1/VmwareEngineClientHttpJsonTest.java create mode 100644 java-vmwareengine/google-cloud-vmwareengine/src/test/java/com/google/cloud/vmwareengine/v1/VmwareEngineClientTest.java create mode 100644 java-vmwareengine/grpc-google-cloud-vmwareengine-v1/pom.xml create mode 100644 java-vmwareengine/grpc-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/VmwareEngineGrpc.java create mode 100644 java-vmwareengine/owlbot.py create mode 100644 java-vmwareengine/pom.xml create mode 100644 java-vmwareengine/proto-google-cloud-vmwareengine-v1/clirr-ignored-differences.xml create mode 100644 java-vmwareengine/proto-google-cloud-vmwareengine-v1/pom.xml create mode 100644 java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/Cluster.java create mode 100644 java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ClusterName.java create mode 100644 java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ClusterOrBuilder.java create mode 100644 java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/CreateClusterRequest.java create mode 100644 java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/CreateClusterRequestOrBuilder.java create mode 100644 java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/CreateHcxActivationKeyRequest.java create mode 100644 java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/CreateHcxActivationKeyRequestOrBuilder.java create mode 100644 java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/CreateNetworkPolicyRequest.java create mode 100644 java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/CreateNetworkPolicyRequestOrBuilder.java create mode 100644 java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/CreatePrivateCloudRequest.java create mode 100644 java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/CreatePrivateCloudRequestOrBuilder.java create mode 100644 java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/CreateVmwareEngineNetworkRequest.java create mode 100644 java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/CreateVmwareEngineNetworkRequestOrBuilder.java create mode 100644 java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/Credentials.java create mode 100644 java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/CredentialsOrBuilder.java create mode 100644 java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/DeleteClusterRequest.java create mode 100644 java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/DeleteClusterRequestOrBuilder.java create mode 100644 java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/DeleteNetworkPolicyRequest.java create mode 100644 java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/DeleteNetworkPolicyRequestOrBuilder.java create mode 100644 java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/DeletePrivateCloudRequest.java create mode 100644 java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/DeletePrivateCloudRequestOrBuilder.java create mode 100644 java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/DeleteVmwareEngineNetworkRequest.java create mode 100644 java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/DeleteVmwareEngineNetworkRequestOrBuilder.java create mode 100644 java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/GetClusterRequest.java create mode 100644 java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/GetClusterRequestOrBuilder.java create mode 100644 java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/GetHcxActivationKeyRequest.java create mode 100644 java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/GetHcxActivationKeyRequestOrBuilder.java create mode 100644 java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/GetNetworkPolicyRequest.java create mode 100644 java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/GetNetworkPolicyRequestOrBuilder.java create mode 100644 java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/GetNodeTypeRequest.java create mode 100644 java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/GetNodeTypeRequestOrBuilder.java create mode 100644 java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/GetPrivateCloudRequest.java create mode 100644 java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/GetPrivateCloudRequestOrBuilder.java create mode 100644 java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/GetVmwareEngineNetworkRequest.java create mode 100644 java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/GetVmwareEngineNetworkRequestOrBuilder.java create mode 100644 java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/Hcx.java create mode 100644 java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/HcxActivationKey.java create mode 100644 java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/HcxActivationKeyName.java create mode 100644 java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/HcxActivationKeyOrBuilder.java create mode 100644 java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/HcxOrBuilder.java create mode 100644 java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListClustersRequest.java create mode 100644 java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListClustersRequestOrBuilder.java create mode 100644 java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListClustersResponse.java create mode 100644 java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListClustersResponseOrBuilder.java create mode 100644 java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListHcxActivationKeysRequest.java create mode 100644 java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListHcxActivationKeysRequestOrBuilder.java create mode 100644 java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListHcxActivationKeysResponse.java create mode 100644 java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListHcxActivationKeysResponseOrBuilder.java create mode 100644 java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListNetworkPoliciesRequest.java create mode 100644 java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListNetworkPoliciesRequestOrBuilder.java create mode 100644 java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListNetworkPoliciesResponse.java create mode 100644 java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListNetworkPoliciesResponseOrBuilder.java create mode 100644 java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListNodeTypesRequest.java create mode 100644 java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListNodeTypesRequestOrBuilder.java create mode 100644 java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListNodeTypesResponse.java create mode 100644 java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListNodeTypesResponseOrBuilder.java create mode 100644 java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListPrivateCloudsRequest.java create mode 100644 java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListPrivateCloudsRequestOrBuilder.java create mode 100644 java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListPrivateCloudsResponse.java create mode 100644 java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListPrivateCloudsResponseOrBuilder.java create mode 100644 java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListSubnetsRequest.java create mode 100644 java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListSubnetsRequestOrBuilder.java create mode 100644 java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListSubnetsResponse.java create mode 100644 java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListSubnetsResponseOrBuilder.java create mode 100644 java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListVmwareEngineNetworksRequest.java create mode 100644 java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListVmwareEngineNetworksRequestOrBuilder.java create mode 100644 java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListVmwareEngineNetworksResponse.java create mode 100644 java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListVmwareEngineNetworksResponseOrBuilder.java create mode 100644 java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/LocationName.java create mode 100644 java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/NetworkConfig.java create mode 100644 java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/NetworkConfigOrBuilder.java create mode 100644 java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/NetworkPolicy.java create mode 100644 java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/NetworkPolicyName.java create mode 100644 java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/NetworkPolicyOrBuilder.java create mode 100644 java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/NodeType.java create mode 100644 java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/NodeTypeConfig.java create mode 100644 java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/NodeTypeConfigOrBuilder.java create mode 100644 java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/NodeTypeName.java create mode 100644 java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/NodeTypeOrBuilder.java create mode 100644 java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/Nsx.java create mode 100644 java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/NsxOrBuilder.java create mode 100644 java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/OperationMetadata.java create mode 100644 java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/OperationMetadataOrBuilder.java create mode 100644 java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/PrivateCloud.java create mode 100644 java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/PrivateCloudName.java create mode 100644 java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/PrivateCloudOrBuilder.java create mode 100644 java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ResetNsxCredentialsRequest.java create mode 100644 java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ResetNsxCredentialsRequestOrBuilder.java create mode 100644 java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ResetVcenterCredentialsRequest.java create mode 100644 java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ResetVcenterCredentialsRequestOrBuilder.java create mode 100644 java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ShowNsxCredentialsRequest.java create mode 100644 java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ShowNsxCredentialsRequestOrBuilder.java create mode 100644 java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ShowVcenterCredentialsRequest.java create mode 100644 java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ShowVcenterCredentialsRequestOrBuilder.java create mode 100644 java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/Subnet.java create mode 100644 java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/SubnetOrBuilder.java create mode 100644 java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/UndeletePrivateCloudRequest.java create mode 100644 java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/UndeletePrivateCloudRequestOrBuilder.java create mode 100644 java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/UpdateClusterRequest.java create mode 100644 java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/UpdateClusterRequestOrBuilder.java create mode 100644 java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/UpdateNetworkPolicyRequest.java create mode 100644 java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/UpdateNetworkPolicyRequestOrBuilder.java create mode 100644 java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/UpdatePrivateCloudRequest.java create mode 100644 java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/UpdatePrivateCloudRequestOrBuilder.java create mode 100644 java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/UpdateVmwareEngineNetworkRequest.java create mode 100644 java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/UpdateVmwareEngineNetworkRequestOrBuilder.java create mode 100644 java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/Vcenter.java create mode 100644 java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/VcenterOrBuilder.java create mode 100644 java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/VmwareEngineNetwork.java create mode 100644 java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/VmwareEngineNetworkName.java create mode 100644 java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/VmwareEngineNetworkOrBuilder.java create mode 100644 java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/VmwareengineProto.java create mode 100644 java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/proto/google/cloud/vmwareengine/v1/vmwareengine.proto diff --git a/gapic-libraries-bom/pom.xml b/gapic-libraries-bom/pom.xml index 61ab27ecfb06..640550f5897b 100644 --- a/gapic-libraries-bom/pom.xml +++ b/gapic-libraries-bom/pom.xml @@ -938,6 +938,13 @@ pom import + + com.google.cloud + google-cloud-vmwareengine-bom + 0.0.1-SNAPSHOT + pom + import + com.google.cloud google-cloud-vpcaccess-bom diff --git a/java-accessapproval/google-cloud-accessapproval-bom/pom.xml b/java-accessapproval/google-cloud-accessapproval-bom/pom.xml index ca6874d595bb..f9aabeea6b0d 100644 --- a/java-accessapproval/google-cloud-accessapproval-bom/pom.xml +++ b/java-accessapproval/google-cloud-accessapproval-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-accessapproval/pom.xml b/java-accessapproval/pom.xml index 3cc9496ae10d..08fff770ad25 100644 --- a/java-accessapproval/pom.xml +++ b/java-accessapproval/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-accesscontextmanager/google-identity-accesscontextmanager-bom/pom.xml b/java-accesscontextmanager/google-identity-accesscontextmanager-bom/pom.xml index 9fecfd08a9d4..c6c9811ab77b 100644 --- a/java-accesscontextmanager/google-identity-accesscontextmanager-bom/pom.xml +++ b/java-accesscontextmanager/google-identity-accesscontextmanager-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-accesscontextmanager/pom.xml b/java-accesscontextmanager/pom.xml index e303bce4335f..9bac1a07f1a4 100644 --- a/java-accesscontextmanager/pom.xml +++ b/java-accesscontextmanager/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-aiplatform/google-cloud-aiplatform-bom/pom.xml b/java-aiplatform/google-cloud-aiplatform-bom/pom.xml index d12408879e87..57a14a3af272 100644 --- a/java-aiplatform/google-cloud-aiplatform-bom/pom.xml +++ b/java-aiplatform/google-cloud-aiplatform-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-aiplatform/pom.xml b/java-aiplatform/pom.xml index f8eebd4f4ca2..e5d51dd5bb8e 100644 --- a/java-aiplatform/pom.xml +++ b/java-aiplatform/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-analytics-admin/google-analytics-admin-bom/pom.xml b/java-analytics-admin/google-analytics-admin-bom/pom.xml index ff04ef554897..3658cddf97f6 100644 --- a/java-analytics-admin/google-analytics-admin-bom/pom.xml +++ b/java-analytics-admin/google-analytics-admin-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-analytics-admin/pom.xml b/java-analytics-admin/pom.xml index 9c383e6f1d4f..a47260c35403 100644 --- a/java-analytics-admin/pom.xml +++ b/java-analytics-admin/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-analytics-data/google-analytics-data-bom/pom.xml b/java-analytics-data/google-analytics-data-bom/pom.xml index 60b05cde0890..7224c7614c04 100644 --- a/java-analytics-data/google-analytics-data-bom/pom.xml +++ b/java-analytics-data/google-analytics-data-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-analytics-data/pom.xml b/java-analytics-data/pom.xml index bdfbe15c7a48..dffc866bff1a 100644 --- a/java-analytics-data/pom.xml +++ b/java-analytics-data/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-analyticshub/google-cloud-analyticshub-bom/pom.xml b/java-analyticshub/google-cloud-analyticshub-bom/pom.xml index 0808ec8d8dcc..370ff2492aa6 100644 --- a/java-analyticshub/google-cloud-analyticshub-bom/pom.xml +++ b/java-analyticshub/google-cloud-analyticshub-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-analyticshub/pom.xml b/java-analyticshub/pom.xml index 6e4fb41ba87a..7ba82dacc28b 100644 --- a/java-analyticshub/pom.xml +++ b/java-analyticshub/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-api-gateway/google-cloud-api-gateway-bom/pom.xml b/java-api-gateway/google-cloud-api-gateway-bom/pom.xml index e6b0b1191101..ba1c5bbd981b 100644 --- a/java-api-gateway/google-cloud-api-gateway-bom/pom.xml +++ b/java-api-gateway/google-cloud-api-gateway-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-api-gateway/pom.xml b/java-api-gateway/pom.xml index dd5857308d9d..762454a9b088 100644 --- a/java-api-gateway/pom.xml +++ b/java-api-gateway/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-apigee-connect/google-cloud-apigee-connect-bom/pom.xml b/java-apigee-connect/google-cloud-apigee-connect-bom/pom.xml index 3c458a3ef5be..7022611e2f51 100644 --- a/java-apigee-connect/google-cloud-apigee-connect-bom/pom.xml +++ b/java-apigee-connect/google-cloud-apigee-connect-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-apigee-connect/pom.xml b/java-apigee-connect/pom.xml index 99e16f60ef50..fbd71d21daa6 100644 --- a/java-apigee-connect/pom.xml +++ b/java-apigee-connect/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-apigee-registry/google-cloud-apigee-registry-bom/pom.xml b/java-apigee-registry/google-cloud-apigee-registry-bom/pom.xml index 9bb7a4f2022e..e1f88502b1ce 100644 --- a/java-apigee-registry/google-cloud-apigee-registry-bom/pom.xml +++ b/java-apigee-registry/google-cloud-apigee-registry-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-apigee-registry/pom.xml b/java-apigee-registry/pom.xml index 146cedad23d5..11dc12d1d916 100644 --- a/java-apigee-registry/pom.xml +++ b/java-apigee-registry/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-apikeys/google-cloud-apikeys-bom/pom.xml b/java-apikeys/google-cloud-apikeys-bom/pom.xml index c2ebf0114ad8..4c01712e537f 100644 --- a/java-apikeys/google-cloud-apikeys-bom/pom.xml +++ b/java-apikeys/google-cloud-apikeys-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-apikeys/pom.xml b/java-apikeys/pom.xml index 2865cdc906c5..d62cf11fc886 100644 --- a/java-apikeys/pom.xml +++ b/java-apikeys/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-appengine-admin/google-cloud-appengine-admin-bom/pom.xml b/java-appengine-admin/google-cloud-appengine-admin-bom/pom.xml index e3bddec1e73b..74fbb4ccbf68 100644 --- a/java-appengine-admin/google-cloud-appengine-admin-bom/pom.xml +++ b/java-appengine-admin/google-cloud-appengine-admin-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-appengine-admin/pom.xml b/java-appengine-admin/pom.xml index aa3e41ee6ffa..b86c3865c392 100644 --- a/java-appengine-admin/pom.xml +++ b/java-appengine-admin/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-area120-tables/google-area120-tables-bom/pom.xml b/java-area120-tables/google-area120-tables-bom/pom.xml index 2be3f40b2808..e848a367ecd0 100644 --- a/java-area120-tables/google-area120-tables-bom/pom.xml +++ b/java-area120-tables/google-area120-tables-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-area120-tables/pom.xml b/java-area120-tables/pom.xml index f6485d73db1d..6dbae6f2cff2 100644 --- a/java-area120-tables/pom.xml +++ b/java-area120-tables/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-artifact-registry/google-cloud-artifact-registry-bom/pom.xml b/java-artifact-registry/google-cloud-artifact-registry-bom/pom.xml index fca37819883b..cf39900642ad 100644 --- a/java-artifact-registry/google-cloud-artifact-registry-bom/pom.xml +++ b/java-artifact-registry/google-cloud-artifact-registry-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-artifact-registry/pom.xml b/java-artifact-registry/pom.xml index 047a1ad0232c..50e2934a6cf3 100644 --- a/java-artifact-registry/pom.xml +++ b/java-artifact-registry/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-asset/google-cloud-asset-bom/pom.xml b/java-asset/google-cloud-asset-bom/pom.xml index 73e2494dda26..858009032c05 100644 --- a/java-asset/google-cloud-asset-bom/pom.xml +++ b/java-asset/google-cloud-asset-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-asset/pom.xml b/java-asset/pom.xml index 61760160fd2c..84d27038a525 100644 --- a/java-asset/pom.xml +++ b/java-asset/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-assured-workloads/google-cloud-assured-workloads-bom/pom.xml b/java-assured-workloads/google-cloud-assured-workloads-bom/pom.xml index 463148e0e663..3945f194fcae 100644 --- a/java-assured-workloads/google-cloud-assured-workloads-bom/pom.xml +++ b/java-assured-workloads/google-cloud-assured-workloads-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-assured-workloads/pom.xml b/java-assured-workloads/pom.xml index 99acff5bb695..91a328f2a4ed 100644 --- a/java-assured-workloads/pom.xml +++ b/java-assured-workloads/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-automl/google-cloud-automl-bom/pom.xml b/java-automl/google-cloud-automl-bom/pom.xml index 9ca6dafcc258..d60d2a7c65dd 100644 --- a/java-automl/google-cloud-automl-bom/pom.xml +++ b/java-automl/google-cloud-automl-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-automl/pom.xml b/java-automl/pom.xml index 6ff6e43e091f..17e1c4fd4d2b 100644 --- a/java-automl/pom.xml +++ b/java-automl/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-bare-metal-solution/google-cloud-bare-metal-solution-bom/pom.xml b/java-bare-metal-solution/google-cloud-bare-metal-solution-bom/pom.xml index 29f84d24bd25..e4b6381073b3 100644 --- a/java-bare-metal-solution/google-cloud-bare-metal-solution-bom/pom.xml +++ b/java-bare-metal-solution/google-cloud-bare-metal-solution-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-bare-metal-solution/pom.xml b/java-bare-metal-solution/pom.xml index 0a933aae65e7..2587405fc040 100644 --- a/java-bare-metal-solution/pom.xml +++ b/java-bare-metal-solution/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-batch/google-cloud-batch-bom/pom.xml b/java-batch/google-cloud-batch-bom/pom.xml index fc38b864394b..bc4f5c1c5cca 100644 --- a/java-batch/google-cloud-batch-bom/pom.xml +++ b/java-batch/google-cloud-batch-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-batch/pom.xml b/java-batch/pom.xml index 450a2e0badad..f2b8ef250ed6 100644 --- a/java-batch/pom.xml +++ b/java-batch/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-beyondcorp-appconnections/google-cloud-beyondcorp-appconnections-bom/pom.xml b/java-beyondcorp-appconnections/google-cloud-beyondcorp-appconnections-bom/pom.xml index 95245c7b693a..d828b7993083 100644 --- a/java-beyondcorp-appconnections/google-cloud-beyondcorp-appconnections-bom/pom.xml +++ b/java-beyondcorp-appconnections/google-cloud-beyondcorp-appconnections-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-beyondcorp-appconnections/pom.xml b/java-beyondcorp-appconnections/pom.xml index 59042fe3a574..5898e520a2e0 100644 --- a/java-beyondcorp-appconnections/pom.xml +++ b/java-beyondcorp-appconnections/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-beyondcorp-appconnectors/google-cloud-beyondcorp-appconnectors-bom/pom.xml b/java-beyondcorp-appconnectors/google-cloud-beyondcorp-appconnectors-bom/pom.xml index 0618453b6995..db71da1d815c 100644 --- a/java-beyondcorp-appconnectors/google-cloud-beyondcorp-appconnectors-bom/pom.xml +++ b/java-beyondcorp-appconnectors/google-cloud-beyondcorp-appconnectors-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-beyondcorp-appconnectors/pom.xml b/java-beyondcorp-appconnectors/pom.xml index 5bc1d66d03c0..4702b78537d7 100644 --- a/java-beyondcorp-appconnectors/pom.xml +++ b/java-beyondcorp-appconnectors/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-beyondcorp-appgateways/google-cloud-beyondcorp-appgateways-bom/pom.xml b/java-beyondcorp-appgateways/google-cloud-beyondcorp-appgateways-bom/pom.xml index 63a1499e1eaf..8cdff97ab9df 100644 --- a/java-beyondcorp-appgateways/google-cloud-beyondcorp-appgateways-bom/pom.xml +++ b/java-beyondcorp-appgateways/google-cloud-beyondcorp-appgateways-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-beyondcorp-appgateways/pom.xml b/java-beyondcorp-appgateways/pom.xml index 44a1d02a6592..7d88b4b7023b 100644 --- a/java-beyondcorp-appgateways/pom.xml +++ b/java-beyondcorp-appgateways/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-beyondcorp-clientconnectorservices/google-cloud-beyondcorp-clientconnectorservices-bom/pom.xml b/java-beyondcorp-clientconnectorservices/google-cloud-beyondcorp-clientconnectorservices-bom/pom.xml index 7f87c1a8c0b6..b32d3fa047ff 100644 --- a/java-beyondcorp-clientconnectorservices/google-cloud-beyondcorp-clientconnectorservices-bom/pom.xml +++ b/java-beyondcorp-clientconnectorservices/google-cloud-beyondcorp-clientconnectorservices-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-beyondcorp-clientconnectorservices/pom.xml b/java-beyondcorp-clientconnectorservices/pom.xml index 7435ccbd76c5..91237424ff58 100644 --- a/java-beyondcorp-clientconnectorservices/pom.xml +++ b/java-beyondcorp-clientconnectorservices/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-beyondcorp-clientgateways/google-cloud-beyondcorp-clientgateways-bom/pom.xml b/java-beyondcorp-clientgateways/google-cloud-beyondcorp-clientgateways-bom/pom.xml index 5256cd1e976e..2106685e61c3 100644 --- a/java-beyondcorp-clientgateways/google-cloud-beyondcorp-clientgateways-bom/pom.xml +++ b/java-beyondcorp-clientgateways/google-cloud-beyondcorp-clientgateways-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-beyondcorp-clientgateways/pom.xml b/java-beyondcorp-clientgateways/pom.xml index 77e68365bb39..acbeaf9b9a39 100644 --- a/java-beyondcorp-clientgateways/pom.xml +++ b/java-beyondcorp-clientgateways/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-bigquery-data-exchange/google-cloud-bigquery-data-exchange-bom/pom.xml b/java-bigquery-data-exchange/google-cloud-bigquery-data-exchange-bom/pom.xml index 8ec459e1457d..19576e5c9d9d 100644 --- a/java-bigquery-data-exchange/google-cloud-bigquery-data-exchange-bom/pom.xml +++ b/java-bigquery-data-exchange/google-cloud-bigquery-data-exchange-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-bigquery-data-exchange/pom.xml b/java-bigquery-data-exchange/pom.xml index a472a03516be..75493ead1e7f 100644 --- a/java-bigquery-data-exchange/pom.xml +++ b/java-bigquery-data-exchange/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-bigqueryconnection/google-cloud-bigqueryconnection-bom/pom.xml b/java-bigqueryconnection/google-cloud-bigqueryconnection-bom/pom.xml index 415d7b45268a..11a59f8810fb 100644 --- a/java-bigqueryconnection/google-cloud-bigqueryconnection-bom/pom.xml +++ b/java-bigqueryconnection/google-cloud-bigqueryconnection-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-bigqueryconnection/pom.xml b/java-bigqueryconnection/pom.xml index c7ead9c4877a..7405e73d232a 100644 --- a/java-bigqueryconnection/pom.xml +++ b/java-bigqueryconnection/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy-bom/pom.xml b/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy-bom/pom.xml index 8932666f92f9..1ce72935aeeb 100644 --- a/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy-bom/pom.xml +++ b/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-bigquerydatapolicy/pom.xml b/java-bigquerydatapolicy/pom.xml index 47c70d8b3390..171ec0ca6ac8 100644 --- a/java-bigquerydatapolicy/pom.xml +++ b/java-bigquerydatapolicy/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer-bom/pom.xml b/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer-bom/pom.xml index 071b68ee7f9e..44b8a80adcbc 100644 --- a/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer-bom/pom.xml +++ b/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-bigquerydatatransfer/pom.xml b/java-bigquerydatatransfer/pom.xml index d61238fe9766..ecf77834bf6a 100644 --- a/java-bigquerydatatransfer/pom.xml +++ b/java-bigquerydatatransfer/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-bigquerymigration/google-cloud-bigquerymigration-bom/pom.xml b/java-bigquerymigration/google-cloud-bigquerymigration-bom/pom.xml index df62e8be0c2e..ca8802564042 100644 --- a/java-bigquerymigration/google-cloud-bigquerymigration-bom/pom.xml +++ b/java-bigquerymigration/google-cloud-bigquerymigration-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-bigquerymigration/pom.xml b/java-bigquerymigration/pom.xml index 0fc73824202e..fa2ee9f80c4b 100644 --- a/java-bigquerymigration/pom.xml +++ b/java-bigquerymigration/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-bigqueryreservation/google-cloud-bigqueryreservation-bom/pom.xml b/java-bigqueryreservation/google-cloud-bigqueryreservation-bom/pom.xml index b21ce7e5f29c..7c6bb602c6ca 100644 --- a/java-bigqueryreservation/google-cloud-bigqueryreservation-bom/pom.xml +++ b/java-bigqueryreservation/google-cloud-bigqueryreservation-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-bigqueryreservation/pom.xml b/java-bigqueryreservation/pom.xml index 3b6797edb6b2..44c5c2cd52bf 100644 --- a/java-bigqueryreservation/pom.xml +++ b/java-bigqueryreservation/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-billing/google-cloud-billing-bom/pom.xml b/java-billing/google-cloud-billing-bom/pom.xml index b034ad178386..2608466fb61e 100644 --- a/java-billing/google-cloud-billing-bom/pom.xml +++ b/java-billing/google-cloud-billing-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-billing/pom.xml b/java-billing/pom.xml index bc3dc8becb15..6d09b030ba06 100644 --- a/java-billing/pom.xml +++ b/java-billing/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-billingbudgets/google-cloud-billingbudgets-bom/pom.xml b/java-billingbudgets/google-cloud-billingbudgets-bom/pom.xml index f3913f9ed84b..7e410a691ae7 100644 --- a/java-billingbudgets/google-cloud-billingbudgets-bom/pom.xml +++ b/java-billingbudgets/google-cloud-billingbudgets-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-billingbudgets/pom.xml b/java-billingbudgets/pom.xml index f882b03e358d..46cb918d82c4 100644 --- a/java-billingbudgets/pom.xml +++ b/java-billingbudgets/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-binary-authorization/google-cloud-binary-authorization-bom/pom.xml b/java-binary-authorization/google-cloud-binary-authorization-bom/pom.xml index fc7a4d664fee..186b4f62b2a8 100644 --- a/java-binary-authorization/google-cloud-binary-authorization-bom/pom.xml +++ b/java-binary-authorization/google-cloud-binary-authorization-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-binary-authorization/pom.xml b/java-binary-authorization/pom.xml index 424493f266b1..ee4937490f40 100644 --- a/java-binary-authorization/pom.xml +++ b/java-binary-authorization/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-certificate-manager/google-cloud-certificate-manager-bom/pom.xml b/java-certificate-manager/google-cloud-certificate-manager-bom/pom.xml index f8988d6fd85c..67689d6238f9 100644 --- a/java-certificate-manager/google-cloud-certificate-manager-bom/pom.xml +++ b/java-certificate-manager/google-cloud-certificate-manager-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-certificate-manager/pom.xml b/java-certificate-manager/pom.xml index a78dbd36580d..f52579553c1e 100644 --- a/java-certificate-manager/pom.xml +++ b/java-certificate-manager/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-channel/google-cloud-channel-bom/pom.xml b/java-channel/google-cloud-channel-bom/pom.xml index c9b52e53a69f..d9ab63e9daa2 100644 --- a/java-channel/google-cloud-channel-bom/pom.xml +++ b/java-channel/google-cloud-channel-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-channel/pom.xml b/java-channel/pom.xml index e897bb4e4143..668ac94f7621 100644 --- a/java-channel/pom.xml +++ b/java-channel/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-cloudbuild/google-cloud-build-bom/pom.xml b/java-cloudbuild/google-cloud-build-bom/pom.xml index 3a0192f54ba9..b623098f4757 100644 --- a/java-cloudbuild/google-cloud-build-bom/pom.xml +++ b/java-cloudbuild/google-cloud-build-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-cloudbuild/pom.xml b/java-cloudbuild/pom.xml index 4a2f07520152..a28c36e2b285 100644 --- a/java-cloudbuild/pom.xml +++ b/java-cloudbuild/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement-bom/pom.xml b/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement-bom/pom.xml index 1c58abdf557f..c9ae0076b281 100644 --- a/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement-bom/pom.xml +++ b/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-cloudcommerceconsumerprocurement/pom.xml b/java-cloudcommerceconsumerprocurement/pom.xml index a7a37708c2df..2406c802c24a 100644 --- a/java-cloudcommerceconsumerprocurement/pom.xml +++ b/java-cloudcommerceconsumerprocurement/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-compute/google-cloud-compute-bom/pom.xml b/java-compute/google-cloud-compute-bom/pom.xml index 1187ca1e13ec..f2b335c53f05 100644 --- a/java-compute/google-cloud-compute-bom/pom.xml +++ b/java-compute/google-cloud-compute-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-compute/pom.xml b/java-compute/pom.xml index 4e776400cb2c..f45537fddb5e 100644 --- a/java-compute/pom.xml +++ b/java-compute/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-contact-center-insights/google-cloud-contact-center-insights-bom/pom.xml b/java-contact-center-insights/google-cloud-contact-center-insights-bom/pom.xml index 0fd6b8b84795..add4cd455bd8 100644 --- a/java-contact-center-insights/google-cloud-contact-center-insights-bom/pom.xml +++ b/java-contact-center-insights/google-cloud-contact-center-insights-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-contact-center-insights/pom.xml b/java-contact-center-insights/pom.xml index 3ae6c30cfe33..94fb4f40e9ab 100644 --- a/java-contact-center-insights/pom.xml +++ b/java-contact-center-insights/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-container/google-cloud-container-bom/pom.xml b/java-container/google-cloud-container-bom/pom.xml index 75671a6e72b2..1b00d214a56a 100644 --- a/java-container/google-cloud-container-bom/pom.xml +++ b/java-container/google-cloud-container-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-container/pom.xml b/java-container/pom.xml index 5179c7a66ed7..ddc3c6ae0489 100644 --- a/java-container/pom.xml +++ b/java-container/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-containeranalysis/google-cloud-containeranalysis-bom/pom.xml b/java-containeranalysis/google-cloud-containeranalysis-bom/pom.xml index b64b86b07c7b..0d0c141e92f1 100644 --- a/java-containeranalysis/google-cloud-containeranalysis-bom/pom.xml +++ b/java-containeranalysis/google-cloud-containeranalysis-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-containeranalysis/pom.xml b/java-containeranalysis/pom.xml index 8fa17a3d1e8d..f87aa927c1ae 100644 --- a/java-containeranalysis/pom.xml +++ b/java-containeranalysis/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-contentwarehouse/google-cloud-contentwarehouse-bom/pom.xml b/java-contentwarehouse/google-cloud-contentwarehouse-bom/pom.xml index 1bebaa89e672..c554036119fc 100644 --- a/java-contentwarehouse/google-cloud-contentwarehouse-bom/pom.xml +++ b/java-contentwarehouse/google-cloud-contentwarehouse-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-contentwarehouse/pom.xml b/java-contentwarehouse/pom.xml index 3dc7f1de7230..5adb4bf743bf 100644 --- a/java-contentwarehouse/pom.xml +++ b/java-contentwarehouse/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-data-fusion/google-cloud-data-fusion-bom/pom.xml b/java-data-fusion/google-cloud-data-fusion-bom/pom.xml index af76f550e2d0..7775e7896a26 100644 --- a/java-data-fusion/google-cloud-data-fusion-bom/pom.xml +++ b/java-data-fusion/google-cloud-data-fusion-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-data-fusion/pom.xml b/java-data-fusion/pom.xml index 8a112b47e504..9d1eef5fa100 100644 --- a/java-data-fusion/pom.xml +++ b/java-data-fusion/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-datacatalog/google-cloud-datacatalog-bom/pom.xml b/java-datacatalog/google-cloud-datacatalog-bom/pom.xml index 79d62668379f..04b3ac5a89a9 100644 --- a/java-datacatalog/google-cloud-datacatalog-bom/pom.xml +++ b/java-datacatalog/google-cloud-datacatalog-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-datacatalog/pom.xml b/java-datacatalog/pom.xml index 029633db851a..03ed8aea2484 100644 --- a/java-datacatalog/pom.xml +++ b/java-datacatalog/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-dataflow/google-cloud-dataflow-bom/pom.xml b/java-dataflow/google-cloud-dataflow-bom/pom.xml index 9ecca7f2050f..97d17c135465 100644 --- a/java-dataflow/google-cloud-dataflow-bom/pom.xml +++ b/java-dataflow/google-cloud-dataflow-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-dataflow/pom.xml b/java-dataflow/pom.xml index a38763df9159..0fdcdd2375b0 100644 --- a/java-dataflow/pom.xml +++ b/java-dataflow/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-dataform/google-cloud-dataform-bom/pom.xml b/java-dataform/google-cloud-dataform-bom/pom.xml index 8650c5b4247a..b3878848bd10 100644 --- a/java-dataform/google-cloud-dataform-bom/pom.xml +++ b/java-dataform/google-cloud-dataform-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-dataform/pom.xml b/java-dataform/pom.xml index 74692010609c..abfbe3a67a0e 100644 --- a/java-dataform/pom.xml +++ b/java-dataform/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-datalabeling/google-cloud-datalabeling-bom/pom.xml b/java-datalabeling/google-cloud-datalabeling-bom/pom.xml index ebb19c99493d..02eff4fdf52f 100644 --- a/java-datalabeling/google-cloud-datalabeling-bom/pom.xml +++ b/java-datalabeling/google-cloud-datalabeling-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-datalabeling/pom.xml b/java-datalabeling/pom.xml index 7726035d3adb..ea7773ab2cb8 100644 --- a/java-datalabeling/pom.xml +++ b/java-datalabeling/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-dataplex/google-cloud-dataplex-bom/pom.xml b/java-dataplex/google-cloud-dataplex-bom/pom.xml index 27da5882368a..9441e6317568 100644 --- a/java-dataplex/google-cloud-dataplex-bom/pom.xml +++ b/java-dataplex/google-cloud-dataplex-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-dataplex/pom.xml b/java-dataplex/pom.xml index dc2e616d6af2..239f25c1326c 100644 --- a/java-dataplex/pom.xml +++ b/java-dataplex/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-dataproc-metastore/google-cloud-dataproc-metastore-bom/pom.xml b/java-dataproc-metastore/google-cloud-dataproc-metastore-bom/pom.xml index df787ecb26c7..9c1b51efd3b2 100644 --- a/java-dataproc-metastore/google-cloud-dataproc-metastore-bom/pom.xml +++ b/java-dataproc-metastore/google-cloud-dataproc-metastore-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-dataproc-metastore/pom.xml b/java-dataproc-metastore/pom.xml index b52fda157375..7b866e4bc035 100644 --- a/java-dataproc-metastore/pom.xml +++ b/java-dataproc-metastore/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-dataproc/google-cloud-dataproc-bom/pom.xml b/java-dataproc/google-cloud-dataproc-bom/pom.xml index ee1665f4e160..87d2aa187a7e 100644 --- a/java-dataproc/google-cloud-dataproc-bom/pom.xml +++ b/java-dataproc/google-cloud-dataproc-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-dataproc/pom.xml b/java-dataproc/pom.xml index dbaa02b36772..31435dc3a66c 100644 --- a/java-dataproc/pom.xml +++ b/java-dataproc/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-datastream/google-cloud-datastream-bom/pom.xml b/java-datastream/google-cloud-datastream-bom/pom.xml index b2a76118a515..cccb2c93d6e3 100644 --- a/java-datastream/google-cloud-datastream-bom/pom.xml +++ b/java-datastream/google-cloud-datastream-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-datastream/pom.xml b/java-datastream/pom.xml index fbd196f872bd..2f552ed9a68f 100644 --- a/java-datastream/pom.xml +++ b/java-datastream/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-debugger-client/google-cloud-debugger-client-bom/pom.xml b/java-debugger-client/google-cloud-debugger-client-bom/pom.xml index b8028838044a..4dae1c8f717e 100644 --- a/java-debugger-client/google-cloud-debugger-client-bom/pom.xml +++ b/java-debugger-client/google-cloud-debugger-client-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-debugger-client/pom.xml b/java-debugger-client/pom.xml index 6207c65fb39d..14ca087ee512 100644 --- a/java-debugger-client/pom.xml +++ b/java-debugger-client/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-deploy/google-cloud-deploy-bom/pom.xml b/java-deploy/google-cloud-deploy-bom/pom.xml index 4d7d36cfcfbc..2056716bc54f 100644 --- a/java-deploy/google-cloud-deploy-bom/pom.xml +++ b/java-deploy/google-cloud-deploy-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-deploy/pom.xml b/java-deploy/pom.xml index 2ac916d5f82b..7b940f704073 100644 --- a/java-deploy/pom.xml +++ b/java-deploy/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx-bom/pom.xml b/java-dialogflow-cx/google-cloud-dialogflow-cx-bom/pom.xml index d8aa8bc02b03..f4aed94b1543 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx-bom/pom.xml +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-dialogflow-cx/pom.xml b/java-dialogflow-cx/pom.xml index 154797045bba..f05dd3ddbdad 100644 --- a/java-dialogflow-cx/pom.xml +++ b/java-dialogflow-cx/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-dialogflow/google-cloud-dialogflow-bom/pom.xml b/java-dialogflow/google-cloud-dialogflow-bom/pom.xml index 5ca14c6d291a..19efad899968 100644 --- a/java-dialogflow/google-cloud-dialogflow-bom/pom.xml +++ b/java-dialogflow/google-cloud-dialogflow-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-dialogflow/pom.xml b/java-dialogflow/pom.xml index 9c7961950046..1544d8cbbbf6 100644 --- a/java-dialogflow/pom.xml +++ b/java-dialogflow/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-discoveryengine/google-cloud-discoveryengine-bom/pom.xml b/java-discoveryengine/google-cloud-discoveryengine-bom/pom.xml index 7a580ef58a90..8f4e5cb5ee4a 100644 --- a/java-discoveryengine/google-cloud-discoveryengine-bom/pom.xml +++ b/java-discoveryengine/google-cloud-discoveryengine-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-discoveryengine/pom.xml b/java-discoveryengine/pom.xml index 6ee442943acb..8f1ced815ce6 100644 --- a/java-discoveryengine/pom.xml +++ b/java-discoveryengine/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-distributedcloudedge/google-cloud-distributedcloudedge-bom/pom.xml b/java-distributedcloudedge/google-cloud-distributedcloudedge-bom/pom.xml index 8a95d94f703a..fdf8f226b6f2 100644 --- a/java-distributedcloudedge/google-cloud-distributedcloudedge-bom/pom.xml +++ b/java-distributedcloudedge/google-cloud-distributedcloudedge-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-distributedcloudedge/pom.xml b/java-distributedcloudedge/pom.xml index 0e91d69df4c7..8a1de50220f8 100644 --- a/java-distributedcloudedge/pom.xml +++ b/java-distributedcloudedge/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-dlp/google-cloud-dlp-bom/pom.xml b/java-dlp/google-cloud-dlp-bom/pom.xml index 4c50c1972c5f..4872f2a5b40d 100644 --- a/java-dlp/google-cloud-dlp-bom/pom.xml +++ b/java-dlp/google-cloud-dlp-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-dlp/pom.xml b/java-dlp/pom.xml index 6c1d1c85595d..176119cce059 100644 --- a/java-dlp/pom.xml +++ b/java-dlp/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-dms/google-cloud-dms-bom/pom.xml b/java-dms/google-cloud-dms-bom/pom.xml index b26f770746f1..ae0d6fe4acfe 100644 --- a/java-dms/google-cloud-dms-bom/pom.xml +++ b/java-dms/google-cloud-dms-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-dms/pom.xml b/java-dms/pom.xml index e35f34261d9a..f2b97df9a77c 100644 --- a/java-dms/pom.xml +++ b/java-dms/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-dns/pom.xml b/java-dns/pom.xml index 753516f8550e..1457fa922eff 100644 --- a/java-dns/pom.xml +++ b/java-dns/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-document-ai/google-cloud-document-ai-bom/pom.xml b/java-document-ai/google-cloud-document-ai-bom/pom.xml index ad19aebe8c53..ee0d63ab2e36 100644 --- a/java-document-ai/google-cloud-document-ai-bom/pom.xml +++ b/java-document-ai/google-cloud-document-ai-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-document-ai/pom.xml b/java-document-ai/pom.xml index b19af6bbb7fc..8d4fba936646 100644 --- a/java-document-ai/pom.xml +++ b/java-document-ai/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-domains/google-cloud-domains-bom/pom.xml b/java-domains/google-cloud-domains-bom/pom.xml index 21f77bb7ba2f..d1642ebe6a39 100644 --- a/java-domains/google-cloud-domains-bom/pom.xml +++ b/java-domains/google-cloud-domains-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-domains/pom.xml b/java-domains/pom.xml index 359d47389f06..586859f73043 100644 --- a/java-domains/pom.xml +++ b/java-domains/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph-bom/pom.xml b/java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph-bom/pom.xml index 3b3e473841d6..2ae600f520b7 100644 --- a/java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph-bom/pom.xml +++ b/java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-enterpriseknowledgegraph/pom.xml b/java-enterpriseknowledgegraph/pom.xml index 0e53555884e5..d5766a259fa4 100644 --- a/java-enterpriseknowledgegraph/pom.xml +++ b/java-enterpriseknowledgegraph/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-errorreporting/google-cloud-errorreporting-bom/pom.xml b/java-errorreporting/google-cloud-errorreporting-bom/pom.xml index 85828bb2163e..0c5097fe9c50 100644 --- a/java-errorreporting/google-cloud-errorreporting-bom/pom.xml +++ b/java-errorreporting/google-cloud-errorreporting-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-errorreporting/pom.xml b/java-errorreporting/pom.xml index c31db0930255..5457ff5bb018 100644 --- a/java-errorreporting/pom.xml +++ b/java-errorreporting/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-essential-contacts/google-cloud-essential-contacts-bom/pom.xml b/java-essential-contacts/google-cloud-essential-contacts-bom/pom.xml index ae708077cb81..5de8b6732e07 100644 --- a/java-essential-contacts/google-cloud-essential-contacts-bom/pom.xml +++ b/java-essential-contacts/google-cloud-essential-contacts-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-essential-contacts/pom.xml b/java-essential-contacts/pom.xml index 0823e18ff438..c511ac6e4968 100644 --- a/java-essential-contacts/pom.xml +++ b/java-essential-contacts/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-eventarc-publishing/google-cloud-eventarc-publishing-bom/pom.xml b/java-eventarc-publishing/google-cloud-eventarc-publishing-bom/pom.xml index 4a29af53df51..12e21a113014 100644 --- a/java-eventarc-publishing/google-cloud-eventarc-publishing-bom/pom.xml +++ b/java-eventarc-publishing/google-cloud-eventarc-publishing-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-eventarc-publishing/pom.xml b/java-eventarc-publishing/pom.xml index 452c12e94f20..591837821791 100644 --- a/java-eventarc-publishing/pom.xml +++ b/java-eventarc-publishing/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-eventarc/google-cloud-eventarc-bom/pom.xml b/java-eventarc/google-cloud-eventarc-bom/pom.xml index e649c9ef117a..7f5b732d7c59 100644 --- a/java-eventarc/google-cloud-eventarc-bom/pom.xml +++ b/java-eventarc/google-cloud-eventarc-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-eventarc/pom.xml b/java-eventarc/pom.xml index 29bc01a031f0..12afc06c71f5 100644 --- a/java-eventarc/pom.xml +++ b/java-eventarc/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-filestore/google-cloud-filestore-bom/pom.xml b/java-filestore/google-cloud-filestore-bom/pom.xml index 07464cb18199..c14ad11d704e 100644 --- a/java-filestore/google-cloud-filestore-bom/pom.xml +++ b/java-filestore/google-cloud-filestore-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-filestore/pom.xml b/java-filestore/pom.xml index ba467d10b196..39d87881905e 100644 --- a/java-filestore/pom.xml +++ b/java-filestore/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-functions/google-cloud-functions-bom/pom.xml b/java-functions/google-cloud-functions-bom/pom.xml index 4e82e32f895f..402e935c595f 100644 --- a/java-functions/google-cloud-functions-bom/pom.xml +++ b/java-functions/google-cloud-functions-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-functions/pom.xml b/java-functions/pom.xml index 6d65dbf4312a..f8b1656066fa 100644 --- a/java-functions/pom.xml +++ b/java-functions/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-game-servers/google-cloud-game-servers-bom/pom.xml b/java-game-servers/google-cloud-game-servers-bom/pom.xml index b80cf2cbf459..74bb3a62510f 100644 --- a/java-game-servers/google-cloud-game-servers-bom/pom.xml +++ b/java-game-servers/google-cloud-game-servers-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-game-servers/pom.xml b/java-game-servers/pom.xml index fb2031be14f8..aa069971624b 100644 --- a/java-game-servers/pom.xml +++ b/java-game-servers/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-gke-backup/google-cloud-gke-backup-bom/pom.xml b/java-gke-backup/google-cloud-gke-backup-bom/pom.xml index 21a59e51793c..477fcfc24c8d 100644 --- a/java-gke-backup/google-cloud-gke-backup-bom/pom.xml +++ b/java-gke-backup/google-cloud-gke-backup-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-gke-backup/pom.xml b/java-gke-backup/pom.xml index 0fb990f0b836..b85180bab923 100644 --- a/java-gke-backup/pom.xml +++ b/java-gke-backup/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-gke-connect-gateway/google-cloud-gke-connect-gateway-bom/pom.xml b/java-gke-connect-gateway/google-cloud-gke-connect-gateway-bom/pom.xml index 655f1ce32f1d..0e2fb46ae30e 100644 --- a/java-gke-connect-gateway/google-cloud-gke-connect-gateway-bom/pom.xml +++ b/java-gke-connect-gateway/google-cloud-gke-connect-gateway-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-gke-connect-gateway/pom.xml b/java-gke-connect-gateway/pom.xml index 33d59e8638e6..48162462111f 100644 --- a/java-gke-connect-gateway/pom.xml +++ b/java-gke-connect-gateway/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-gke-multi-cloud/google-cloud-gke-multi-cloud-bom/pom.xml b/java-gke-multi-cloud/google-cloud-gke-multi-cloud-bom/pom.xml index 79eb7585da76..0695c66a1214 100644 --- a/java-gke-multi-cloud/google-cloud-gke-multi-cloud-bom/pom.xml +++ b/java-gke-multi-cloud/google-cloud-gke-multi-cloud-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-gke-multi-cloud/pom.xml b/java-gke-multi-cloud/pom.xml index 5d029e7da44c..b870e083acdd 100644 --- a/java-gke-multi-cloud/pom.xml +++ b/java-gke-multi-cloud/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-gkehub/google-cloud-gkehub-bom/pom.xml b/java-gkehub/google-cloud-gkehub-bom/pom.xml index 67c9d9952b1c..78508fe1b459 100644 --- a/java-gkehub/google-cloud-gkehub-bom/pom.xml +++ b/java-gkehub/google-cloud-gkehub-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-gkehub/pom.xml b/java-gkehub/pom.xml index 8cea076b283d..fe61328a1b63 100644 --- a/java-gkehub/pom.xml +++ b/java-gkehub/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-grafeas/pom.xml b/java-grafeas/pom.xml index 4bab7e5d282c..ae0e93ee35da 100644 --- a/java-grafeas/pom.xml +++ b/java-grafeas/pom.xml @@ -15,7 +15,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-gsuite-addons/google-cloud-gsuite-addons-bom/pom.xml b/java-gsuite-addons/google-cloud-gsuite-addons-bom/pom.xml index 1cbba5657b3f..aad57a62d913 100644 --- a/java-gsuite-addons/google-cloud-gsuite-addons-bom/pom.xml +++ b/java-gsuite-addons/google-cloud-gsuite-addons-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-gsuite-addons/pom.xml b/java-gsuite-addons/pom.xml index 11f48cf400c0..922359c7e03a 100644 --- a/java-gsuite-addons/pom.xml +++ b/java-gsuite-addons/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-iam-admin/google-iam-admin-bom/pom.xml b/java-iam-admin/google-iam-admin-bom/pom.xml index f73c8129e744..c04f78e4b4a1 100644 --- a/java-iam-admin/google-iam-admin-bom/pom.xml +++ b/java-iam-admin/google-iam-admin-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-iam-admin/pom.xml b/java-iam-admin/pom.xml index ea3e73eb2115..a180d25cdfc6 100644 --- a/java-iam-admin/pom.xml +++ b/java-iam-admin/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-iamcredentials/google-cloud-iamcredentials-bom/pom.xml b/java-iamcredentials/google-cloud-iamcredentials-bom/pom.xml index bccf344843ff..abb7aadc07c2 100644 --- a/java-iamcredentials/google-cloud-iamcredentials-bom/pom.xml +++ b/java-iamcredentials/google-cloud-iamcredentials-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-iamcredentials/pom.xml b/java-iamcredentials/pom.xml index 9fcad85d9ee5..62938c9f5a16 100644 --- a/java-iamcredentials/pom.xml +++ b/java-iamcredentials/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-ids/google-cloud-ids-bom/pom.xml b/java-ids/google-cloud-ids-bom/pom.xml index 7afea4408def..89f985b20c5e 100644 --- a/java-ids/google-cloud-ids-bom/pom.xml +++ b/java-ids/google-cloud-ids-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-ids/pom.xml b/java-ids/pom.xml index 84ea301e181c..ba3565c2a7fc 100644 --- a/java-ids/pom.xml +++ b/java-ids/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-iot/google-cloud-iot-bom/pom.xml b/java-iot/google-cloud-iot-bom/pom.xml index 25643f39b7fc..112b40dade0a 100644 --- a/java-iot/google-cloud-iot-bom/pom.xml +++ b/java-iot/google-cloud-iot-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-iot/pom.xml b/java-iot/pom.xml index 389c823c85fd..1f77301b6da7 100644 --- a/java-iot/pom.xml +++ b/java-iot/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-kms/google-cloud-kms-bom/pom.xml b/java-kms/google-cloud-kms-bom/pom.xml index 458d91f72027..b97327ac5b2a 100644 --- a/java-kms/google-cloud-kms-bom/pom.xml +++ b/java-kms/google-cloud-kms-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-kms/pom.xml b/java-kms/pom.xml index 946ad694131e..e4f9d799e57a 100644 --- a/java-kms/pom.xml +++ b/java-kms/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-language/google-cloud-language-bom/pom.xml b/java-language/google-cloud-language-bom/pom.xml index 47f84567a41c..36b448d2566b 100644 --- a/java-language/google-cloud-language-bom/pom.xml +++ b/java-language/google-cloud-language-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-language/pom.xml b/java-language/pom.xml index 3aacfbe7166a..66836d03849e 100644 --- a/java-language/pom.xml +++ b/java-language/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-life-sciences/google-cloud-life-sciences-bom/pom.xml b/java-life-sciences/google-cloud-life-sciences-bom/pom.xml index 7be124f80b19..3b41430cdee8 100644 --- a/java-life-sciences/google-cloud-life-sciences-bom/pom.xml +++ b/java-life-sciences/google-cloud-life-sciences-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-life-sciences/pom.xml b/java-life-sciences/pom.xml index 2e47676c8fb0..f3c02ab944c0 100644 --- a/java-life-sciences/pom.xml +++ b/java-life-sciences/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-managed-identities/google-cloud-managed-identities-bom/pom.xml b/java-managed-identities/google-cloud-managed-identities-bom/pom.xml index e390e53b1f75..fd8953c23cf2 100644 --- a/java-managed-identities/google-cloud-managed-identities-bom/pom.xml +++ b/java-managed-identities/google-cloud-managed-identities-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-managed-identities/pom.xml b/java-managed-identities/pom.xml index d35fbddd269f..1ad652efd10a 100644 --- a/java-managed-identities/pom.xml +++ b/java-managed-identities/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-maps-routing/google-maps-routing-bom/pom.xml b/java-maps-routing/google-maps-routing-bom/pom.xml index 8ef4da396d70..3e6005db1f91 100644 --- a/java-maps-routing/google-maps-routing-bom/pom.xml +++ b/java-maps-routing/google-maps-routing-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-maps-routing/pom.xml b/java-maps-routing/pom.xml index 9d5aa604322e..f6c633e11ba4 100644 --- a/java-maps-routing/pom.xml +++ b/java-maps-routing/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-mediatranslation/google-cloud-mediatranslation-bom/pom.xml b/java-mediatranslation/google-cloud-mediatranslation-bom/pom.xml index ccaf48685222..8ec187c1ce29 100644 --- a/java-mediatranslation/google-cloud-mediatranslation-bom/pom.xml +++ b/java-mediatranslation/google-cloud-mediatranslation-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-mediatranslation/pom.xml b/java-mediatranslation/pom.xml index 2f31fab99eeb..05d280fb38aa 100644 --- a/java-mediatranslation/pom.xml +++ b/java-mediatranslation/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-memcache/google-cloud-memcache-bom/pom.xml b/java-memcache/google-cloud-memcache-bom/pom.xml index a83ae01f0032..237783acc28c 100644 --- a/java-memcache/google-cloud-memcache-bom/pom.xml +++ b/java-memcache/google-cloud-memcache-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-memcache/pom.xml b/java-memcache/pom.xml index 1910e57f3415..0dbcd3e32ba8 100644 --- a/java-memcache/pom.xml +++ b/java-memcache/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-monitoring-dashboards/google-cloud-monitoring-dashboard-bom/pom.xml b/java-monitoring-dashboards/google-cloud-monitoring-dashboard-bom/pom.xml index 01de89c09380..dcd9a2102614 100644 --- a/java-monitoring-dashboards/google-cloud-monitoring-dashboard-bom/pom.xml +++ b/java-monitoring-dashboards/google-cloud-monitoring-dashboard-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-monitoring-dashboards/pom.xml b/java-monitoring-dashboards/pom.xml index 543d5e81ec6a..b35fbd7ba6a4 100644 --- a/java-monitoring-dashboards/pom.xml +++ b/java-monitoring-dashboards/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-monitoring/google-cloud-monitoring-bom/pom.xml b/java-monitoring/google-cloud-monitoring-bom/pom.xml index a11f11ec43fe..29f28a34ad5e 100644 --- a/java-monitoring/google-cloud-monitoring-bom/pom.xml +++ b/java-monitoring/google-cloud-monitoring-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-monitoring/pom.xml b/java-monitoring/pom.xml index 9fa788796756..be3777c9d510 100644 --- a/java-monitoring/pom.xml +++ b/java-monitoring/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-network-management/google-cloud-network-management-bom/pom.xml b/java-network-management/google-cloud-network-management-bom/pom.xml index 32d8792c0876..bdff11234796 100644 --- a/java-network-management/google-cloud-network-management-bom/pom.xml +++ b/java-network-management/google-cloud-network-management-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-network-management/pom.xml b/java-network-management/pom.xml index 501cebb529fb..4558896cbc9d 100644 --- a/java-network-management/pom.xml +++ b/java-network-management/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-network-security/google-cloud-network-security-bom/pom.xml b/java-network-security/google-cloud-network-security-bom/pom.xml index 240d67f55f63..9cca26797f31 100644 --- a/java-network-security/google-cloud-network-security-bom/pom.xml +++ b/java-network-security/google-cloud-network-security-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-network-security/pom.xml b/java-network-security/pom.xml index 91f5b1e74e54..e3608dfe6b4c 100644 --- a/java-network-security/pom.xml +++ b/java-network-security/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-networkconnectivity/google-cloud-networkconnectivity-bom/pom.xml b/java-networkconnectivity/google-cloud-networkconnectivity-bom/pom.xml index 32a0e38a5121..25cd571f814d 100644 --- a/java-networkconnectivity/google-cloud-networkconnectivity-bom/pom.xml +++ b/java-networkconnectivity/google-cloud-networkconnectivity-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-networkconnectivity/pom.xml b/java-networkconnectivity/pom.xml index 2ebf649267cf..d1870f01282c 100644 --- a/java-networkconnectivity/pom.xml +++ b/java-networkconnectivity/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-notebooks/google-cloud-notebooks-bom/pom.xml b/java-notebooks/google-cloud-notebooks-bom/pom.xml index 3403106e3867..e236b3155bc3 100644 --- a/java-notebooks/google-cloud-notebooks-bom/pom.xml +++ b/java-notebooks/google-cloud-notebooks-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-notebooks/pom.xml b/java-notebooks/pom.xml index ce709f9e5006..7a44fd50e87e 100644 --- a/java-notebooks/pom.xml +++ b/java-notebooks/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-notification/pom.xml b/java-notification/pom.xml index 324f0e3d78da..e30ca5ab8ef5 100644 --- a/java-notification/pom.xml +++ b/java-notification/pom.xml @@ -15,7 +15,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-optimization/google-cloud-optimization-bom/pom.xml b/java-optimization/google-cloud-optimization-bom/pom.xml index db134b1cab8d..e3c486f7b5f1 100644 --- a/java-optimization/google-cloud-optimization-bom/pom.xml +++ b/java-optimization/google-cloud-optimization-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-optimization/pom.xml b/java-optimization/pom.xml index a50eaff655f6..982000dc9a88 100644 --- a/java-optimization/pom.xml +++ b/java-optimization/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-orchestration-airflow/google-cloud-orchestration-airflow-bom/pom.xml b/java-orchestration-airflow/google-cloud-orchestration-airflow-bom/pom.xml index 41ec2a6e7395..8d1f5f283d01 100644 --- a/java-orchestration-airflow/google-cloud-orchestration-airflow-bom/pom.xml +++ b/java-orchestration-airflow/google-cloud-orchestration-airflow-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-orchestration-airflow/pom.xml b/java-orchestration-airflow/pom.xml index 2bfff1e816d4..d80be2b3be2d 100644 --- a/java-orchestration-airflow/pom.xml +++ b/java-orchestration-airflow/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-orgpolicy/google-cloud-orgpolicy-bom/pom.xml b/java-orgpolicy/google-cloud-orgpolicy-bom/pom.xml index b87ae1d501ef..68fb17df3b5d 100644 --- a/java-orgpolicy/google-cloud-orgpolicy-bom/pom.xml +++ b/java-orgpolicy/google-cloud-orgpolicy-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-orgpolicy/pom.xml b/java-orgpolicy/pom.xml index 7f27c9be3fee..af962e67b799 100644 --- a/java-orgpolicy/pom.xml +++ b/java-orgpolicy/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-os-config/google-cloud-os-config-bom/pom.xml b/java-os-config/google-cloud-os-config-bom/pom.xml index 35778cdbfb3e..fd96df71a4bd 100644 --- a/java-os-config/google-cloud-os-config-bom/pom.xml +++ b/java-os-config/google-cloud-os-config-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-os-config/pom.xml b/java-os-config/pom.xml index cc90ecd15eb4..8e892d0f2d74 100644 --- a/java-os-config/pom.xml +++ b/java-os-config/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-os-login/google-cloud-os-login-bom/pom.xml b/java-os-login/google-cloud-os-login-bom/pom.xml index 16e4406a9927..3dc7512aeeed 100644 --- a/java-os-login/google-cloud-os-login-bom/pom.xml +++ b/java-os-login/google-cloud-os-login-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-os-login/pom.xml b/java-os-login/pom.xml index a5d0703180cd..ee5be7a77d53 100644 --- a/java-os-login/pom.xml +++ b/java-os-login/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-phishingprotection/google-cloud-phishingprotection-bom/pom.xml b/java-phishingprotection/google-cloud-phishingprotection-bom/pom.xml index c023df85f677..0c54d1af8bc2 100644 --- a/java-phishingprotection/google-cloud-phishingprotection-bom/pom.xml +++ b/java-phishingprotection/google-cloud-phishingprotection-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-phishingprotection/pom.xml b/java-phishingprotection/pom.xml index 1996c3127414..03f4254912d7 100644 --- a/java-phishingprotection/pom.xml +++ b/java-phishingprotection/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-policy-troubleshooter/google-cloud-policy-troubleshooter-bom/pom.xml b/java-policy-troubleshooter/google-cloud-policy-troubleshooter-bom/pom.xml index ce258252cb4b..25bc06c0a792 100644 --- a/java-policy-troubleshooter/google-cloud-policy-troubleshooter-bom/pom.xml +++ b/java-policy-troubleshooter/google-cloud-policy-troubleshooter-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-policy-troubleshooter/pom.xml b/java-policy-troubleshooter/pom.xml index a10863ad67b5..7d0408894eb0 100644 --- a/java-policy-troubleshooter/pom.xml +++ b/java-policy-troubleshooter/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-private-catalog/google-cloud-private-catalog-bom/pom.xml b/java-private-catalog/google-cloud-private-catalog-bom/pom.xml index 332d1c64611a..7718b677af72 100644 --- a/java-private-catalog/google-cloud-private-catalog-bom/pom.xml +++ b/java-private-catalog/google-cloud-private-catalog-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-private-catalog/pom.xml b/java-private-catalog/pom.xml index 5b96a04fadec..2c3360eac681 100644 --- a/java-private-catalog/pom.xml +++ b/java-private-catalog/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-profiler/google-cloud-profiler-bom/pom.xml b/java-profiler/google-cloud-profiler-bom/pom.xml index 875d42a5fb1d..70a03a259191 100644 --- a/java-profiler/google-cloud-profiler-bom/pom.xml +++ b/java-profiler/google-cloud-profiler-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-profiler/pom.xml b/java-profiler/pom.xml index 864f4846b826..841aa80256bf 100644 --- a/java-profiler/pom.xml +++ b/java-profiler/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-publicca/google-cloud-publicca-bom/pom.xml b/java-publicca/google-cloud-publicca-bom/pom.xml index cf128ad10cfd..fee6358566e7 100644 --- a/java-publicca/google-cloud-publicca-bom/pom.xml +++ b/java-publicca/google-cloud-publicca-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-publicca/pom.xml b/java-publicca/pom.xml index 194c69041537..c1fdd0c74ccf 100644 --- a/java-publicca/pom.xml +++ b/java-publicca/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-recaptchaenterprise/google-cloud-recaptchaenterprise-bom/pom.xml b/java-recaptchaenterprise/google-cloud-recaptchaenterprise-bom/pom.xml index 8a6c82bfd924..f4593761c8b7 100644 --- a/java-recaptchaenterprise/google-cloud-recaptchaenterprise-bom/pom.xml +++ b/java-recaptchaenterprise/google-cloud-recaptchaenterprise-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-recaptchaenterprise/pom.xml b/java-recaptchaenterprise/pom.xml index 736730f21ba8..f6b9e64ad171 100644 --- a/java-recaptchaenterprise/pom.xml +++ b/java-recaptchaenterprise/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-recommendations-ai/google-cloud-recommendations-ai-bom/pom.xml b/java-recommendations-ai/google-cloud-recommendations-ai-bom/pom.xml index 4094cfd28e98..038961107350 100644 --- a/java-recommendations-ai/google-cloud-recommendations-ai-bom/pom.xml +++ b/java-recommendations-ai/google-cloud-recommendations-ai-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-recommendations-ai/pom.xml b/java-recommendations-ai/pom.xml index aa50df7e7f38..5d4d60210273 100644 --- a/java-recommendations-ai/pom.xml +++ b/java-recommendations-ai/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-recommender/google-cloud-recommender-bom/pom.xml b/java-recommender/google-cloud-recommender-bom/pom.xml index f71c5d0330a0..1215a20ffbc2 100644 --- a/java-recommender/google-cloud-recommender-bom/pom.xml +++ b/java-recommender/google-cloud-recommender-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-recommender/pom.xml b/java-recommender/pom.xml index 8858ab20a4eb..9fdd6ec67039 100644 --- a/java-recommender/pom.xml +++ b/java-recommender/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-redis/google-cloud-redis-bom/pom.xml b/java-redis/google-cloud-redis-bom/pom.xml index f841fcf84172..8f451174c835 100644 --- a/java-redis/google-cloud-redis-bom/pom.xml +++ b/java-redis/google-cloud-redis-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-redis/pom.xml b/java-redis/pom.xml index 72e171c1c338..3f8295434c88 100644 --- a/java-redis/pom.xml +++ b/java-redis/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-resource-settings/google-cloud-resource-settings-bom/pom.xml b/java-resource-settings/google-cloud-resource-settings-bom/pom.xml index 71b1062848f9..6f5acb4e769f 100644 --- a/java-resource-settings/google-cloud-resource-settings-bom/pom.xml +++ b/java-resource-settings/google-cloud-resource-settings-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-resource-settings/pom.xml b/java-resource-settings/pom.xml index 80049d0a2595..0b8521686c8a 100644 --- a/java-resource-settings/pom.xml +++ b/java-resource-settings/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-resourcemanager/google-cloud-resourcemanager-bom/pom.xml b/java-resourcemanager/google-cloud-resourcemanager-bom/pom.xml index 2d0827c185af..6505b728c08a 100644 --- a/java-resourcemanager/google-cloud-resourcemanager-bom/pom.xml +++ b/java-resourcemanager/google-cloud-resourcemanager-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-resourcemanager/pom.xml b/java-resourcemanager/pom.xml index f6af223318f8..7ca974c34e58 100644 --- a/java-resourcemanager/pom.xml +++ b/java-resourcemanager/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-retail/google-cloud-retail-bom/pom.xml b/java-retail/google-cloud-retail-bom/pom.xml index b867dfa49e99..f2c0b88925bb 100644 --- a/java-retail/google-cloud-retail-bom/pom.xml +++ b/java-retail/google-cloud-retail-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-retail/pom.xml b/java-retail/pom.xml index 86888aae6e36..07c24c22a18e 100644 --- a/java-retail/pom.xml +++ b/java-retail/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-run/google-cloud-run-bom/pom.xml b/java-run/google-cloud-run-bom/pom.xml index 0c3533f62cc8..bdcb7d62e766 100644 --- a/java-run/google-cloud-run-bom/pom.xml +++ b/java-run/google-cloud-run-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-run/pom.xml b/java-run/pom.xml index 01e1343603ef..3bb8d5b28710 100644 --- a/java-run/pom.xml +++ b/java-run/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-scheduler/google-cloud-scheduler-bom/pom.xml b/java-scheduler/google-cloud-scheduler-bom/pom.xml index 9a6505550136..0c591b4c5c6a 100644 --- a/java-scheduler/google-cloud-scheduler-bom/pom.xml +++ b/java-scheduler/google-cloud-scheduler-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-scheduler/pom.xml b/java-scheduler/pom.xml index 59cc64688f70..dd94ffded1c2 100644 --- a/java-scheduler/pom.xml +++ b/java-scheduler/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-secretmanager/google-cloud-secretmanager-bom/pom.xml b/java-secretmanager/google-cloud-secretmanager-bom/pom.xml index fd9f3677363a..4f3e39b91a87 100644 --- a/java-secretmanager/google-cloud-secretmanager-bom/pom.xml +++ b/java-secretmanager/google-cloud-secretmanager-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-secretmanager/pom.xml b/java-secretmanager/pom.xml index c982bd04376d..5f3c29ffbc96 100644 --- a/java-secretmanager/pom.xml +++ b/java-secretmanager/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-security-private-ca/google-cloud-security-private-ca-bom/pom.xml b/java-security-private-ca/google-cloud-security-private-ca-bom/pom.xml index c0aa9e509950..c7f3cb8e8521 100644 --- a/java-security-private-ca/google-cloud-security-private-ca-bom/pom.xml +++ b/java-security-private-ca/google-cloud-security-private-ca-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-security-private-ca/pom.xml b/java-security-private-ca/pom.xml index f83723fa587f..75ca699f6138 100644 --- a/java-security-private-ca/pom.xml +++ b/java-security-private-ca/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-securitycenter-settings/google-cloud-securitycenter-settings-bom/pom.xml b/java-securitycenter-settings/google-cloud-securitycenter-settings-bom/pom.xml index 9adaf4a5d9e3..ba41f67fee7a 100644 --- a/java-securitycenter-settings/google-cloud-securitycenter-settings-bom/pom.xml +++ b/java-securitycenter-settings/google-cloud-securitycenter-settings-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-securitycenter-settings/pom.xml b/java-securitycenter-settings/pom.xml index 5b97c8cc3aac..6d667a142afd 100644 --- a/java-securitycenter-settings/pom.xml +++ b/java-securitycenter-settings/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-securitycenter/google-cloud-securitycenter-bom/pom.xml b/java-securitycenter/google-cloud-securitycenter-bom/pom.xml index 32266bec19c1..7f4b45020488 100644 --- a/java-securitycenter/google-cloud-securitycenter-bom/pom.xml +++ b/java-securitycenter/google-cloud-securitycenter-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-securitycenter/pom.xml b/java-securitycenter/pom.xml index 38737a18569e..d99879c2f630 100644 --- a/java-securitycenter/pom.xml +++ b/java-securitycenter/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-service-control/google-cloud-service-control-bom/pom.xml b/java-service-control/google-cloud-service-control-bom/pom.xml index 0fdb0be13fb8..bc890a88f701 100644 --- a/java-service-control/google-cloud-service-control-bom/pom.xml +++ b/java-service-control/google-cloud-service-control-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-service-control/pom.xml b/java-service-control/pom.xml index 787df57704a1..cfcbbd462eb8 100644 --- a/java-service-control/pom.xml +++ b/java-service-control/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-service-management/google-cloud-service-management-bom/pom.xml b/java-service-management/google-cloud-service-management-bom/pom.xml index 363d0f1f74df..f98e6df86799 100644 --- a/java-service-management/google-cloud-service-management-bom/pom.xml +++ b/java-service-management/google-cloud-service-management-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-service-management/pom.xml b/java-service-management/pom.xml index b1a93a00c519..84fe12b710f8 100644 --- a/java-service-management/pom.xml +++ b/java-service-management/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-service-usage/google-cloud-service-usage-bom/pom.xml b/java-service-usage/google-cloud-service-usage-bom/pom.xml index 573eb4ab01bd..de31c76439a1 100644 --- a/java-service-usage/google-cloud-service-usage-bom/pom.xml +++ b/java-service-usage/google-cloud-service-usage-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-service-usage/pom.xml b/java-service-usage/pom.xml index e3d5695e14b4..f7bec720202b 100644 --- a/java-service-usage/pom.xml +++ b/java-service-usage/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-servicedirectory/google-cloud-servicedirectory-bom/pom.xml b/java-servicedirectory/google-cloud-servicedirectory-bom/pom.xml index 1e8887d0db0f..8c028582684a 100644 --- a/java-servicedirectory/google-cloud-servicedirectory-bom/pom.xml +++ b/java-servicedirectory/google-cloud-servicedirectory-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-servicedirectory/pom.xml b/java-servicedirectory/pom.xml index b8713dc94938..081478328204 100644 --- a/java-servicedirectory/pom.xml +++ b/java-servicedirectory/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-shell/google-cloud-shell-bom/pom.xml b/java-shell/google-cloud-shell-bom/pom.xml index 0787dae22a40..235166bbc926 100644 --- a/java-shell/google-cloud-shell-bom/pom.xml +++ b/java-shell/google-cloud-shell-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-shell/pom.xml b/java-shell/pom.xml index 6b5a9069ea37..d16db920fad6 100644 --- a/java-shell/pom.xml +++ b/java-shell/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-speech/google-cloud-speech-bom/pom.xml b/java-speech/google-cloud-speech-bom/pom.xml index abf3f866e206..b2eaa9afb69c 100644 --- a/java-speech/google-cloud-speech-bom/pom.xml +++ b/java-speech/google-cloud-speech-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-speech/pom.xml b/java-speech/pom.xml index 141fdf1b8e1f..0f8f9ad441af 100644 --- a/java-speech/pom.xml +++ b/java-speech/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-storage-transfer/google-cloud-storage-transfer-bom/pom.xml b/java-storage-transfer/google-cloud-storage-transfer-bom/pom.xml index b779865ecf6e..2966d8f623ab 100644 --- a/java-storage-transfer/google-cloud-storage-transfer-bom/pom.xml +++ b/java-storage-transfer/google-cloud-storage-transfer-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-storage-transfer/pom.xml b/java-storage-transfer/pom.xml index d756fef7cd82..a9515dd6436d 100644 --- a/java-storage-transfer/pom.xml +++ b/java-storage-transfer/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-talent/google-cloud-talent-bom/pom.xml b/java-talent/google-cloud-talent-bom/pom.xml index bc315491d9a7..4cd0e8397254 100644 --- a/java-talent/google-cloud-talent-bom/pom.xml +++ b/java-talent/google-cloud-talent-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-talent/pom.xml b/java-talent/pom.xml index 9e8a1608e9cb..af189d0e52a0 100644 --- a/java-talent/pom.xml +++ b/java-talent/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-tasks/google-cloud-tasks-bom/pom.xml b/java-tasks/google-cloud-tasks-bom/pom.xml index f1e5d6c91f2b..11692a551ace 100644 --- a/java-tasks/google-cloud-tasks-bom/pom.xml +++ b/java-tasks/google-cloud-tasks-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-tasks/pom.xml b/java-tasks/pom.xml index b1b110d1579a..aa9570f1f9f9 100644 --- a/java-tasks/pom.xml +++ b/java-tasks/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-texttospeech/google-cloud-texttospeech-bom/pom.xml b/java-texttospeech/google-cloud-texttospeech-bom/pom.xml index 1510963d9b88..746a8fba003b 100644 --- a/java-texttospeech/google-cloud-texttospeech-bom/pom.xml +++ b/java-texttospeech/google-cloud-texttospeech-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-texttospeech/pom.xml b/java-texttospeech/pom.xml index d068451018c6..d1fc658bb104 100644 --- a/java-texttospeech/pom.xml +++ b/java-texttospeech/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-tpu/google-cloud-tpu-bom/pom.xml b/java-tpu/google-cloud-tpu-bom/pom.xml index c0a79c13f974..76dfc6f76ac0 100644 --- a/java-tpu/google-cloud-tpu-bom/pom.xml +++ b/java-tpu/google-cloud-tpu-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-tpu/pom.xml b/java-tpu/pom.xml index 8cca5d7c0a54..bc649fe97228 100644 --- a/java-tpu/pom.xml +++ b/java-tpu/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-trace/google-cloud-trace-bom/pom.xml b/java-trace/google-cloud-trace-bom/pom.xml index b208facaca38..cc6c8e197a1a 100644 --- a/java-trace/google-cloud-trace-bom/pom.xml +++ b/java-trace/google-cloud-trace-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-trace/pom.xml b/java-trace/pom.xml index d0a26615e4d8..afd6466e1e2f 100644 --- a/java-trace/pom.xml +++ b/java-trace/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-translate/google-cloud-translate-bom/pom.xml b/java-translate/google-cloud-translate-bom/pom.xml index 1a193b6816c1..8ec56e16b3c6 100644 --- a/java-translate/google-cloud-translate-bom/pom.xml +++ b/java-translate/google-cloud-translate-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-translate/pom.xml b/java-translate/pom.xml index aba7767450ff..71b9d57524b6 100644 --- a/java-translate/pom.xml +++ b/java-translate/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-video-intelligence/google-cloud-video-intelligence-bom/pom.xml b/java-video-intelligence/google-cloud-video-intelligence-bom/pom.xml index 8040a56eee73..34e2bb089ccc 100644 --- a/java-video-intelligence/google-cloud-video-intelligence-bom/pom.xml +++ b/java-video-intelligence/google-cloud-video-intelligence-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-video-intelligence/pom.xml b/java-video-intelligence/pom.xml index 1f3ec32b8457..2fde71dfb1b6 100644 --- a/java-video-intelligence/pom.xml +++ b/java-video-intelligence/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-video-live-stream/google-cloud-live-stream-bom/pom.xml b/java-video-live-stream/google-cloud-live-stream-bom/pom.xml index 22bba7b49d73..8cfbbf4f9d44 100644 --- a/java-video-live-stream/google-cloud-live-stream-bom/pom.xml +++ b/java-video-live-stream/google-cloud-live-stream-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-video-live-stream/pom.xml b/java-video-live-stream/pom.xml index 553e98ddaf35..dc0a6fe9bb72 100644 --- a/java-video-live-stream/pom.xml +++ b/java-video-live-stream/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-video-stitcher/google-cloud-video-stitcher-bom/pom.xml b/java-video-stitcher/google-cloud-video-stitcher-bom/pom.xml index dba872a24285..8a49c8fd8da9 100644 --- a/java-video-stitcher/google-cloud-video-stitcher-bom/pom.xml +++ b/java-video-stitcher/google-cloud-video-stitcher-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-video-stitcher/pom.xml b/java-video-stitcher/pom.xml index 9b1f5e969233..8e7564c43ec9 100644 --- a/java-video-stitcher/pom.xml +++ b/java-video-stitcher/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-video-transcoder/google-cloud-video-transcoder-bom/pom.xml b/java-video-transcoder/google-cloud-video-transcoder-bom/pom.xml index a89f01a4364f..1bb21eb84d96 100644 --- a/java-video-transcoder/google-cloud-video-transcoder-bom/pom.xml +++ b/java-video-transcoder/google-cloud-video-transcoder-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-video-transcoder/pom.xml b/java-video-transcoder/pom.xml index 2f2f989b1948..f1efffa6f43e 100644 --- a/java-video-transcoder/pom.xml +++ b/java-video-transcoder/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-vision/google-cloud-vision-bom/pom.xml b/java-vision/google-cloud-vision-bom/pom.xml index 145dd26f4643..ef241df4dcc4 100644 --- a/java-vision/google-cloud-vision-bom/pom.xml +++ b/java-vision/google-cloud-vision-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-vision/pom.xml b/java-vision/pom.xml index 22195bbbc7a0..840a55e46418 100644 --- a/java-vision/pom.xml +++ b/java-vision/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-vmmigration/google-cloud-vmmigration-bom/pom.xml b/java-vmmigration/google-cloud-vmmigration-bom/pom.xml index a15c3f1906bd..85337253200e 100644 --- a/java-vmmigration/google-cloud-vmmigration-bom/pom.xml +++ b/java-vmmigration/google-cloud-vmmigration-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-vmmigration/pom.xml b/java-vmmigration/pom.xml index a3c6c13c6c45..30dd35228a50 100644 --- a/java-vmmigration/pom.xml +++ b/java-vmmigration/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-vmwareengine/.OwlBot.yaml b/java-vmwareengine/.OwlBot.yaml new file mode 100644 index 000000000000..fbe04974dfd9 --- /dev/null +++ b/java-vmwareengine/.OwlBot.yaml @@ -0,0 +1,33 @@ +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + + +deep-remove-regex: +- "/java-vmwareengine/grpc-google-.*/src" +- "/java-vmwareengine/proto-google-.*/src" +- "/java-vmwareengine/google-.*/src" + +deep-preserve-regex: +- "/java-vmwareengine/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + +deep-copy-regex: +- source: "/google/cloud/vmwareengine/(v.*)/.*-java/proto-google-.*/src" + dest: "/owl-bot-staging/java-vmwareengine/$1/proto-google-cloud-vmwareengine-$1/src" +- source: "/google/cloud/vmwareengine/(v.*)/.*-java/grpc-google-.*/src" + dest: "/owl-bot-staging/java-vmwareengine/$1/grpc-google-cloud-vmwareengine-$1/src" +- source: "/google/cloud/vmwareengine/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-vmwareengine/$1/google-cloud-vmwareengine/src" + + +api-name: java-vmwareengine \ No newline at end of file diff --git a/java-vmwareengine/.repo-metadata.json b/java-vmwareengine/.repo-metadata.json new file mode 100644 index 000000000000..bb8f61532229 --- /dev/null +++ b/java-vmwareengine/.repo-metadata.json @@ -0,0 +1,16 @@ +{ + "api_shortname": "vmwareengine", + "name_pretty": "Google Cloud VMware Engine", + "product_documentation": "https://cloud.google.com/vmware-engine/", + "api_description": "Easily lift and shift your VMware-based applications to Google Cloud without changes to your apps, tools, or processes.", + "client_documentation": "https://cloud.google.com/java/docs/reference/google-cloud-vmwareengine/latest/overview", + "release_level": "preview", + "transport": "grpc", + "language": "java", + "repo": "googleapis/java-vmwareengine", + "repo_short": "java-vmwareengine", + "distribution_name": "com.google.cloud:google-cloud-vmwareengine", + "api_id": "vmwareengine.googleapis.com", + "library_type": "GAPIC_AUTO", + "requires_billing": true +} \ No newline at end of file diff --git a/java-vmwareengine/README.md b/java-vmwareengine/README.md new file mode 100644 index 000000000000..3223ea44f875 --- /dev/null +++ b/java-vmwareengine/README.md @@ -0,0 +1,201 @@ +# Google Google Cloud VMware Engine Client for Java + +Java idiomatic client for [Google Cloud VMware Engine][product-docs]. + +[![Maven][maven-version-image]][maven-version-link] +![Stability][stability-image] + +- [Product Documentation][product-docs] +- [Client Library Documentation][javadocs] + +> Note: This client is a work-in-progress, and may occasionally +> make backwards-incompatible changes. + + +## Quickstart + + +If you are using Maven, add this to your pom.xml file: + + +```xml + + com.google.cloud + google-cloud-vmwareengine + 0.0.0 + +``` + +If you are using Gradle without BOM, add this to your dependencies: + +```Groovy +implementation 'com.google.cloud:google-cloud-vmwareengine:0.0.0' +``` + +If you are using SBT, add this to your dependencies: + +```Scala +libraryDependencies += "com.google.cloud" % "google-cloud-vmwareengine" % "0.0.0" +``` + +## Authentication + +See the [Authentication][authentication] section in the base directory's README. + +## Authorization + +The client application making API calls must be granted [authorization scopes][auth-scopes] required for the desired Google Cloud VMware Engine APIs, and the authenticated principal must have the [IAM role(s)][predefined-iam-roles] required to access GCP resources using the Google Cloud VMware Engine API calls. + +## Getting Started + +### Prerequisites + +You will need a [Google Cloud Platform Console][developer-console] project with the Google Cloud VMware Engine [API enabled][enable-api]. +You will need to [enable billing][enable-billing] to use Google Google Cloud VMware Engine. +[Follow these instructions][create-project] to get your project set up. You will also need to set up the local development environment by +[installing the Google Cloud SDK][cloud-sdk] and running the following commands in command line: +`gcloud auth login` and `gcloud config set project [YOUR PROJECT ID]`. + +### Installation and setup + +You'll need to obtain the `google-cloud-vmwareengine` library. See the [Quickstart](#quickstart) section +to add `google-cloud-vmwareengine` as a dependency in your code. + +## About Google Cloud VMware Engine + + +[Google Cloud VMware Engine][product-docs] Easily lift and shift your VMware-based applications to Google Cloud without changes to your apps, tools, or processes. + +See the [Google Cloud VMware Engine client library docs][javadocs] to learn how to +use this Google Cloud VMware Engine Client Library. + + + + + + +## Troubleshooting + +To get help, follow the instructions in the [shared Troubleshooting document][troubleshooting]. + +## Transport + +Google Cloud VMware Engine uses gRPC for the transport layer. + +## Supported Java Versions + +Java 8 or above is required for using this client. + +Google's Java client libraries, +[Google Cloud Client Libraries][cloudlibs] +and +[Google Cloud API Libraries][apilibs], +follow the +[Oracle Java SE support roadmap][oracle] +(see the Oracle Java SE Product Releases section). + +### For new development + +In general, new feature development occurs with support for the lowest Java +LTS version covered by Oracle's Premier Support (which typically lasts 5 years +from initial General Availability). If the minimum required JVM for a given +library is changed, it is accompanied by a [semver][semver] major release. + +Java 11 and (in September 2021) Java 17 are the best choices for new +development. + +### Keeping production systems current + +Google tests its client libraries with all current LTS versions covered by +Oracle's Extended Support (which typically lasts 8 years from initial +General Availability). + +#### Legacy support + +Google's client libraries support legacy versions of Java runtimes with long +term stable libraries that don't receive feature updates on a best efforts basis +as it may not be possible to backport all patches. + +Google provides updates on a best efforts basis to apps that continue to use +Java 7, though apps might need to upgrade to current versions of the library +that supports their JVM. + +#### Where to find specific information + +The latest versions and the supported Java versions are identified on +the individual GitHub repository `github.com/GoogleAPIs/java-SERVICENAME` +and on [google-cloud-java][g-c-j]. + +## Versioning + + +This library follows [Semantic Versioning](http://semver.org/). + + +It is currently in major version zero (``0.y.z``), which means that anything may change at any time +and the public API should not be considered stable. + + +## Contributing + + +Contributions to this library are always welcome and highly encouraged. + +See [CONTRIBUTING][contributing] for more information how to get started. + +Please note that this project is released with a Contributor Code of Conduct. By participating in +this project you agree to abide by its terms. See [Code of Conduct][code-of-conduct] for more +information. + + +## License + +Apache 2.0 - See [LICENSE][license] for more information. + +## CI Status + +Java Version | Status +------------ | ------ +Java 8 | [![Kokoro CI][kokoro-badge-image-2]][kokoro-badge-link-2] +Java 8 OSX | [![Kokoro CI][kokoro-badge-image-3]][kokoro-badge-link-3] +Java 8 Windows | [![Kokoro CI][kokoro-badge-image-4]][kokoro-badge-link-4] +Java 11 | [![Kokoro CI][kokoro-badge-image-5]][kokoro-badge-link-5] + +Java is a registered trademark of Oracle and/or its affiliates. + +[product-docs]: https://cloud.google.com/vmware-engine/ +[javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-vmwareengine/latest/overview +[kokoro-badge-image-1]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-vmwareengine/java7.svg +[kokoro-badge-link-1]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-vmwareengine/java7.html +[kokoro-badge-image-2]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-vmwareengine/java8.svg +[kokoro-badge-link-2]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-vmwareengine/java8.html +[kokoro-badge-image-3]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-vmwareengine/java8-osx.svg +[kokoro-badge-link-3]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-vmwareengine/java8-osx.html +[kokoro-badge-image-4]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-vmwareengine/java8-win.svg +[kokoro-badge-link-4]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-vmwareengine/java8-win.html +[kokoro-badge-image-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-vmwareengine/java11.svg +[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-vmwareengine/java11.html +[stability-image]: https://img.shields.io/badge/stability-preview-yellow +[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-vmwareengine.svg +[maven-version-link]: https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-vmwareengine&core=gav +[authentication]: https://github.com/googleapis/google-cloud-java#authentication +[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes +[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles +[iam-policy]: https://cloud.google.com/iam/docs/overview#cloud-iam-policy +[developer-console]: https://console.developers.google.com/ +[create-project]: https://cloud.google.com/resource-manager/docs/creating-managing-projects +[cloud-sdk]: https://cloud.google.com/sdk/ +[troubleshooting]: https://github.com/googleapis/google-cloud-common/blob/main/troubleshooting/readme.md#troubleshooting +[contributing]: https://github.com/googleapis/java-vmwareengine/blob/main/CONTRIBUTING.md +[code-of-conduct]: https://github.com/googleapis/java-vmwareengine/blob/main/CODE_OF_CONDUCT.md#contributor-code-of-conduct +[license]: https://github.com/googleapis/java-vmwareengine/blob/main/LICENSE +[enable-billing]: https://cloud.google.com/apis/docs/getting-started#enabling_billing +[enable-api]: https://console.cloud.google.com/flows/enableapi?apiid=vmwareengine.googleapis.com +[libraries-bom]: https://github.com/GoogleCloudPlatform/cloud-opensource-java/wiki/The-Google-Cloud-Platform-Libraries-BOM +[shell_img]: https://gstatic.com/cloudssh/images/open-btn.png + +[semver]: https://semver.org/ +[cloudlibs]: https://cloud.google.com/apis/docs/client-libraries-explained +[apilibs]: https://cloud.google.com/apis/docs/client-libraries-explained#google_api_client_libraries +[oracle]: https://www.oracle.com/java/technologies/java-se-support-roadmap.html +[g-c-j]: http://github.com/googleapis/google-cloud-java diff --git a/java-vmwareengine/google-cloud-vmwareengine-bom/pom.xml b/java-vmwareengine/google-cloud-vmwareengine-bom/pom.xml new file mode 100644 index 000000000000..73c3d26592a6 --- /dev/null +++ b/java-vmwareengine/google-cloud-vmwareengine-bom/pom.xml @@ -0,0 +1,44 @@ + + + 4.0.0 + com.google.cloud + google-cloud-vmwareengine-bom + 0.0.1-SNAPSHOT + pom + + + com.google.cloud + google-cloud-pom-parent + 1.1.0-SNAPSHOT + ../../google-cloud-pom-parent/pom.xml + + + Google Google Cloud VMware Engine BOM + + BOM for Google Cloud VMware Engine + + + + true + + + + + + com.google.cloud + google-cloud-vmwareengine + 0.0.1-SNAPSHOT + + + com.google.api.grpc + grpc-google-cloud-vmwareengine-v1 + 0.0.1-SNAPSHOT + + + com.google.api.grpc + proto-google-cloud-vmwareengine-v1 + 0.0.1-SNAPSHOT + + + + diff --git a/java-vmwareengine/google-cloud-vmwareengine/pom.xml b/java-vmwareengine/google-cloud-vmwareengine/pom.xml new file mode 100644 index 000000000000..99a00c231c66 --- /dev/null +++ b/java-vmwareengine/google-cloud-vmwareengine/pom.xml @@ -0,0 +1,113 @@ + + + 4.0.0 + com.google.cloud + google-cloud-vmwareengine + 0.0.1-SNAPSHOT + jar + Google Google Cloud VMware Engine + Google Cloud VMware Engine Easily lift and shift your VMware-based applications to Google Cloud without changes to your apps, tools, or processes. + + com.google.cloud + google-cloud-vmwareengine-parent + 0.0.1-SNAPSHOT + + + google-cloud-vmwareengine + + + + io.grpc + grpc-api + + + io.grpc + grpc-stub + + + io.grpc + grpc-protobuf + + + com.google.api + api-common + + + com.google.protobuf + protobuf-java + + + com.google.api.grpc + proto-google-common-protos + + + + com.google.api.grpc + proto-google-cloud-vmwareengine-v1 + + + com.google.guava + guava + + + com.google.api + gax + + + com.google.api + gax-grpc + + + com.google.api + gax-httpjson + + + com.google.api.grpc + grpc-google-common-protos + + + com.google.api.grpc + proto-google-iam-v1 + + + com.google.api.grpc + grpc-google-iam-v1 + + + org.threeten + threetenbp + + + + + junit + junit + test + + + + com.google.api.grpc + grpc-google-cloud-vmwareengine-v1 + test + + + + com.google.api + gax + testlib + test + + + com.google.api + gax-grpc + testlib + test + + + com.google.api + gax-httpjson + testlib + test + + + \ No newline at end of file diff --git a/java-vmwareengine/google-cloud-vmwareengine/src/main/java/com/google/cloud/vmwareengine/v1/VmwareEngineClient.java b/java-vmwareengine/google-cloud-vmwareengine/src/main/java/com/google/cloud/vmwareengine/v1/VmwareEngineClient.java new file mode 100644 index 000000000000..a6ef11f456da --- /dev/null +++ b/java-vmwareengine/google-cloud-vmwareengine/src/main/java/com/google/cloud/vmwareengine/v1/VmwareEngineClient.java @@ -0,0 +1,6304 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.vmwareengine.v1; + +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.httpjson.longrunning.OperationsClient; +import com.google.api.gax.longrunning.OperationFuture; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +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.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.vmwareengine.v1.stub.VmwareEngineStub; +import com.google.cloud.vmwareengine.v1.stub.VmwareEngineStubSettings; +import com.google.common.util.concurrent.MoreExecutors; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: VMwareEngine manages VMware's private clusters in the Cloud. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+ *   PrivateCloudName name = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]");
+ *   PrivateCloud response = vmwareEngineClient.getPrivateCloud(name);
+ * }
+ * }
+ * + *

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

The surface of this class includes several types of Java methods for each of the API's + * methods: + * + *

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

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 VmwareEngineSettings 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
+ * VmwareEngineSettings vmwareEngineSettings =
+ *     VmwareEngineSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create(vmwareEngineSettings);
+ * }
+ * + *

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
+ * VmwareEngineSettings vmwareEngineSettings =
+ *     VmwareEngineSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create(vmwareEngineSettings);
+ * }
+ * + *

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

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * VmwareEngineSettings vmwareEngineSettings = VmwareEngineSettings.newHttpJsonBuilder().build();
+ * VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create(vmwareEngineSettings);
+ * }
+ * + *

Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@Generated("by gapic-generator-java") +public class VmwareEngineClient implements BackgroundResource { + private final VmwareEngineSettings settings; + private final VmwareEngineStub stub; + private final OperationsClient httpJsonOperationsClient; + private final com.google.longrunning.OperationsClient operationsClient; + + /** Constructs an instance of VmwareEngineClient with default settings. */ + public static final VmwareEngineClient create() throws IOException { + return create(VmwareEngineSettings.newBuilder().build()); + } + + /** + * Constructs an instance of VmwareEngineClient, 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 VmwareEngineClient create(VmwareEngineSettings settings) throws IOException { + return new VmwareEngineClient(settings); + } + + /** + * Constructs an instance of VmwareEngineClient, using the given stub for making calls. This is + * for advanced usage - prefer using create(VmwareEngineSettings). + */ + public static final VmwareEngineClient create(VmwareEngineStub stub) { + return new VmwareEngineClient(stub); + } + + /** + * Constructs an instance of VmwareEngineClient, 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 VmwareEngineClient(VmwareEngineSettings settings) throws IOException { + this.settings = settings; + this.stub = ((VmwareEngineStubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); + } + + protected VmwareEngineClient(VmwareEngineStub stub) { + this.settings = null; + this.stub = stub; + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); + } + + public final VmwareEngineSettings getSettings() { + return settings; + } + + public VmwareEngineStub getStub() { + return stub; + } + + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + public final com.google.longrunning.OperationsClient getOperationsClient() { + return operationsClient; + } + + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + @BetaApi + public final OperationsClient getHttpJsonOperationsClient() { + return httpJsonOperationsClient; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists `PrivateCloud` resources in a given project and location. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   for (PrivateCloud element : vmwareEngineClient.listPrivateClouds(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The resource name of the private cloud to be queried for clusters. + * Resource names are schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. For example: + * `projects/my-project/locations/us-west1-a` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListPrivateCloudsPagedResponse listPrivateClouds(LocationName parent) { + ListPrivateCloudsRequest request = + ListPrivateCloudsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listPrivateClouds(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists `PrivateCloud` resources in a given project and location. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   for (PrivateCloud element : vmwareEngineClient.listPrivateClouds(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The resource name of the private cloud to be queried for clusters. + * Resource names are schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. For example: + * `projects/my-project/locations/us-west1-a` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListPrivateCloudsPagedResponse listPrivateClouds(String parent) { + ListPrivateCloudsRequest request = + ListPrivateCloudsRequest.newBuilder().setParent(parent).build(); + return listPrivateClouds(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists `PrivateCloud` resources in a given project and location. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   ListPrivateCloudsRequest request =
+   *       ListPrivateCloudsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   for (PrivateCloud element : vmwareEngineClient.listPrivateClouds(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 ListPrivateCloudsPagedResponse listPrivateClouds(ListPrivateCloudsRequest request) { + return listPrivateCloudsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists `PrivateCloud` resources in a given project and location. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   ListPrivateCloudsRequest request =
+   *       ListPrivateCloudsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   ApiFuture future =
+   *       vmwareEngineClient.listPrivateCloudsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (PrivateCloud element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listPrivateCloudsPagedCallable() { + return stub.listPrivateCloudsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists `PrivateCloud` resources in a given project and location. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   ListPrivateCloudsRequest request =
+   *       ListPrivateCloudsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   while (true) {
+   *     ListPrivateCloudsResponse response =
+   *         vmwareEngineClient.listPrivateCloudsCallable().call(request);
+   *     for (PrivateCloud element : response.getPrivateCloudsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listPrivateCloudsCallable() { + return stub.listPrivateCloudsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves a `PrivateCloud` resource by its resource name. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   PrivateCloudName name = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]");
+   *   PrivateCloud response = vmwareEngineClient.getPrivateCloud(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the private cloud to retrieve. Resource names are + * schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. For example: + * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final PrivateCloud getPrivateCloud(PrivateCloudName name) { + GetPrivateCloudRequest request = + GetPrivateCloudRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getPrivateCloud(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves a `PrivateCloud` resource by its resource name. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   String name = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString();
+   *   PrivateCloud response = vmwareEngineClient.getPrivateCloud(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the private cloud to retrieve. Resource names are + * schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. For example: + * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final PrivateCloud getPrivateCloud(String name) { + GetPrivateCloudRequest request = GetPrivateCloudRequest.newBuilder().setName(name).build(); + return getPrivateCloud(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves a `PrivateCloud` resource by its resource name. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   GetPrivateCloudRequest request =
+   *       GetPrivateCloudRequest.newBuilder()
+   *           .setName(PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString())
+   *           .build();
+   *   PrivateCloud response = vmwareEngineClient.getPrivateCloud(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 PrivateCloud getPrivateCloud(GetPrivateCloudRequest request) { + return getPrivateCloudCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves a `PrivateCloud` resource by its resource name. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   GetPrivateCloudRequest request =
+   *       GetPrivateCloudRequest.newBuilder()
+   *           .setName(PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       vmwareEngineClient.getPrivateCloudCallable().futureCall(request);
+   *   // Do something.
+   *   PrivateCloud response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getPrivateCloudCallable() { + return stub.getPrivateCloudCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new `PrivateCloud` resource in a given project and location. Private clouds can only + * be created in zones, regional private clouds are not supported. + * + *

Creating a private cloud also creates a [management + * cluster](https://cloud.google.com/vmware-engine/docs/concepts-vmware-components) for that + * private cloud. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   PrivateCloud privateCloud = PrivateCloud.newBuilder().build();
+   *   String privateCloudId = "privateCloudId573896493";
+   *   PrivateCloud response =
+   *       vmwareEngineClient.createPrivateCloudAsync(parent, privateCloud, privateCloudId).get();
+   * }
+   * }
+ * + * @param parent Required. The resource name of the location to create the new private cloud in. + * Resource names are schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. For example: + * `projects/my-project/locations/us-west1-a` + * @param privateCloud Required. The initial description of the new private cloud. + * @param privateCloudId Required. The user-provided identifier of the private cloud to be + * created. This identifier must be unique among each `PrivateCloud` within the parent and + * becomes the final token in the name URI. The identifier must meet the following + * requirements: + *
    + *
  • Only contains 1-63 alphanumeric characters and hyphens + *
  • Begins with an alphabetical character + *
  • Ends with a non-hyphen character + *
  • Not formatted as a UUID + *
  • Complies with [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034) (section 3.5) + *
+ * + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createPrivateCloudAsync( + LocationName parent, PrivateCloud privateCloud, String privateCloudId) { + CreatePrivateCloudRequest request = + CreatePrivateCloudRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setPrivateCloud(privateCloud) + .setPrivateCloudId(privateCloudId) + .build(); + return createPrivateCloudAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new `PrivateCloud` resource in a given project and location. Private clouds can only + * be created in zones, regional private clouds are not supported. + * + *

Creating a private cloud also creates a [management + * cluster](https://cloud.google.com/vmware-engine/docs/concepts-vmware-components) for that + * private cloud. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   PrivateCloud privateCloud = PrivateCloud.newBuilder().build();
+   *   String privateCloudId = "privateCloudId573896493";
+   *   PrivateCloud response =
+   *       vmwareEngineClient.createPrivateCloudAsync(parent, privateCloud, privateCloudId).get();
+   * }
+   * }
+ * + * @param parent Required. The resource name of the location to create the new private cloud in. + * Resource names are schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. For example: + * `projects/my-project/locations/us-west1-a` + * @param privateCloud Required. The initial description of the new private cloud. + * @param privateCloudId Required. The user-provided identifier of the private cloud to be + * created. This identifier must be unique among each `PrivateCloud` within the parent and + * becomes the final token in the name URI. The identifier must meet the following + * requirements: + *
    + *
  • Only contains 1-63 alphanumeric characters and hyphens + *
  • Begins with an alphabetical character + *
  • Ends with a non-hyphen character + *
  • Not formatted as a UUID + *
  • Complies with [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034) (section 3.5) + *
+ * + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createPrivateCloudAsync( + String parent, PrivateCloud privateCloud, String privateCloudId) { + CreatePrivateCloudRequest request = + CreatePrivateCloudRequest.newBuilder() + .setParent(parent) + .setPrivateCloud(privateCloud) + .setPrivateCloudId(privateCloudId) + .build(); + return createPrivateCloudAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new `PrivateCloud` resource in a given project and location. Private clouds can only + * be created in zones, regional private clouds are not supported. + * + *

Creating a private cloud also creates a [management + * cluster](https://cloud.google.com/vmware-engine/docs/concepts-vmware-components) for that + * private cloud. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   CreatePrivateCloudRequest request =
+   *       CreatePrivateCloudRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPrivateCloudId("privateCloudId573896493")
+   *           .setPrivateCloud(PrivateCloud.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .setValidateOnly(true)
+   *           .build();
+   *   PrivateCloud response = vmwareEngineClient.createPrivateCloudAsync(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 createPrivateCloudAsync( + CreatePrivateCloudRequest request) { + return createPrivateCloudOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new `PrivateCloud` resource in a given project and location. Private clouds can only + * be created in zones, regional private clouds are not supported. + * + *

Creating a private cloud also creates a [management + * cluster](https://cloud.google.com/vmware-engine/docs/concepts-vmware-components) for that + * private cloud. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   CreatePrivateCloudRequest request =
+   *       CreatePrivateCloudRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPrivateCloudId("privateCloudId573896493")
+   *           .setPrivateCloud(PrivateCloud.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .setValidateOnly(true)
+   *           .build();
+   *   OperationFuture future =
+   *       vmwareEngineClient.createPrivateCloudOperationCallable().futureCall(request);
+   *   // Do something.
+   *   PrivateCloud response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + createPrivateCloudOperationCallable() { + return stub.createPrivateCloudOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new `PrivateCloud` resource in a given project and location. Private clouds can only + * be created in zones, regional private clouds are not supported. + * + *

Creating a private cloud also creates a [management + * cluster](https://cloud.google.com/vmware-engine/docs/concepts-vmware-components) for that + * private cloud. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   CreatePrivateCloudRequest request =
+   *       CreatePrivateCloudRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPrivateCloudId("privateCloudId573896493")
+   *           .setPrivateCloud(PrivateCloud.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .setValidateOnly(true)
+   *           .build();
+   *   ApiFuture future =
+   *       vmwareEngineClient.createPrivateCloudCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable createPrivateCloudCallable() { + return stub.createPrivateCloudCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Modifies a `PrivateCloud` resource. Only the following fields can be updated: `description`. + * Only fields specified in `updateMask` are applied. + * + *

During operation processing, the resource is temporarily in the `ACTIVE` state before the + * operation fully completes. For that period of time, you can't update the resource. Use the + * operation status to determine when the processing fully completes. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   PrivateCloud privateCloud = PrivateCloud.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   PrivateCloud response =
+   *       vmwareEngineClient.updatePrivateCloudAsync(privateCloud, updateMask).get();
+   * }
+   * }
+ * + * @param privateCloud Required. Private cloud description. + * @param updateMask Required. Field mask is used to specify the fields to be overwritten in the + * `PrivateCloud` resource by the update. The fields specified in `updateMask` are relative to + * the resource, not the full request. A field will be overwritten if it is in the mask. If + * the user does not provide a mask then all fields will be overwritten. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture updatePrivateCloudAsync( + PrivateCloud privateCloud, FieldMask updateMask) { + UpdatePrivateCloudRequest request = + UpdatePrivateCloudRequest.newBuilder() + .setPrivateCloud(privateCloud) + .setUpdateMask(updateMask) + .build(); + return updatePrivateCloudAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Modifies a `PrivateCloud` resource. Only the following fields can be updated: `description`. + * Only fields specified in `updateMask` are applied. + * + *

During operation processing, the resource is temporarily in the `ACTIVE` state before the + * operation fully completes. For that period of time, you can't update the resource. Use the + * operation status to determine when the processing fully completes. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   UpdatePrivateCloudRequest request =
+   *       UpdatePrivateCloudRequest.newBuilder()
+   *           .setPrivateCloud(PrivateCloud.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   PrivateCloud response = vmwareEngineClient.updatePrivateCloudAsync(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 updatePrivateCloudAsync( + UpdatePrivateCloudRequest request) { + return updatePrivateCloudOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Modifies a `PrivateCloud` resource. Only the following fields can be updated: `description`. + * Only fields specified in `updateMask` are applied. + * + *

During operation processing, the resource is temporarily in the `ACTIVE` state before the + * operation fully completes. For that period of time, you can't update the resource. Use the + * operation status to determine when the processing fully completes. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   UpdatePrivateCloudRequest request =
+   *       UpdatePrivateCloudRequest.newBuilder()
+   *           .setPrivateCloud(PrivateCloud.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   OperationFuture future =
+   *       vmwareEngineClient.updatePrivateCloudOperationCallable().futureCall(request);
+   *   // Do something.
+   *   PrivateCloud response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + updatePrivateCloudOperationCallable() { + return stub.updatePrivateCloudOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Modifies a `PrivateCloud` resource. Only the following fields can be updated: `description`. + * Only fields specified in `updateMask` are applied. + * + *

During operation processing, the resource is temporarily in the `ACTIVE` state before the + * operation fully completes. For that period of time, you can't update the resource. Use the + * operation status to determine when the processing fully completes. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   UpdatePrivateCloudRequest request =
+   *       UpdatePrivateCloudRequest.newBuilder()
+   *           .setPrivateCloud(PrivateCloud.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   ApiFuture future =
+   *       vmwareEngineClient.updatePrivateCloudCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable updatePrivateCloudCallable() { + return stub.updatePrivateCloudCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Schedules a `PrivateCloud` resource for deletion. + * + *

A `PrivateCloud` resource scheduled for deletion has `PrivateCloud.state` set to `DELETED` + * and `expireTime` set to the time when deletion is final and can no longer be reversed. The + * delete operation is marked as done as soon as the `PrivateCloud` is successfully scheduled for + * deletion (this also applies when `delayHours` is set to zero), and the operation is not kept in + * pending state until `PrivateCloud` is purged. `PrivateCloud` can be restored using + * `UndeletePrivateCloud` method before the `expireTime` elapses. When `expireTime` is reached, + * deletion is final and all private cloud resources are irreversibly removed and billing stops. + * During the final removal process, `PrivateCloud.state` is set to `PURGING`. `PrivateCloud` can + * be polled using standard `GET` method for the whole period of deletion and purging. It will not + * be returned only when it is completely purged. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   PrivateCloudName name = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]");
+   *   PrivateCloud response = vmwareEngineClient.deletePrivateCloudAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The resource name of the private cloud to delete. Resource names are + * schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. For example: + * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deletePrivateCloudAsync( + PrivateCloudName name) { + DeletePrivateCloudRequest request = + DeletePrivateCloudRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return deletePrivateCloudAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Schedules a `PrivateCloud` resource for deletion. + * + *

A `PrivateCloud` resource scheduled for deletion has `PrivateCloud.state` set to `DELETED` + * and `expireTime` set to the time when deletion is final and can no longer be reversed. The + * delete operation is marked as done as soon as the `PrivateCloud` is successfully scheduled for + * deletion (this also applies when `delayHours` is set to zero), and the operation is not kept in + * pending state until `PrivateCloud` is purged. `PrivateCloud` can be restored using + * `UndeletePrivateCloud` method before the `expireTime` elapses. When `expireTime` is reached, + * deletion is final and all private cloud resources are irreversibly removed and billing stops. + * During the final removal process, `PrivateCloud.state` is set to `PURGING`. `PrivateCloud` can + * be polled using standard `GET` method for the whole period of deletion and purging. It will not + * be returned only when it is completely purged. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   String name = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString();
+   *   PrivateCloud response = vmwareEngineClient.deletePrivateCloudAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The resource name of the private cloud to delete. Resource names are + * schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. For example: + * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deletePrivateCloudAsync( + String name) { + DeletePrivateCloudRequest request = + DeletePrivateCloudRequest.newBuilder().setName(name).build(); + return deletePrivateCloudAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Schedules a `PrivateCloud` resource for deletion. + * + *

A `PrivateCloud` resource scheduled for deletion has `PrivateCloud.state` set to `DELETED` + * and `expireTime` set to the time when deletion is final and can no longer be reversed. The + * delete operation is marked as done as soon as the `PrivateCloud` is successfully scheduled for + * deletion (this also applies when `delayHours` is set to zero), and the operation is not kept in + * pending state until `PrivateCloud` is purged. `PrivateCloud` can be restored using + * `UndeletePrivateCloud` method before the `expireTime` elapses. When `expireTime` is reached, + * deletion is final and all private cloud resources are irreversibly removed and billing stops. + * During the final removal process, `PrivateCloud.state` is set to `PURGING`. `PrivateCloud` can + * be polled using standard `GET` method for the whole period of deletion and purging. It will not + * be returned only when it is completely purged. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   DeletePrivateCloudRequest request =
+   *       DeletePrivateCloudRequest.newBuilder()
+   *           .setName(PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString())
+   *           .setRequestId("requestId693933066")
+   *           .setForce(true)
+   *           .setDelayHours(475821395)
+   *           .build();
+   *   PrivateCloud response = vmwareEngineClient.deletePrivateCloudAsync(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 deletePrivateCloudAsync( + DeletePrivateCloudRequest request) { + return deletePrivateCloudOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Schedules a `PrivateCloud` resource for deletion. + * + *

A `PrivateCloud` resource scheduled for deletion has `PrivateCloud.state` set to `DELETED` + * and `expireTime` set to the time when deletion is final and can no longer be reversed. The + * delete operation is marked as done as soon as the `PrivateCloud` is successfully scheduled for + * deletion (this also applies when `delayHours` is set to zero), and the operation is not kept in + * pending state until `PrivateCloud` is purged. `PrivateCloud` can be restored using + * `UndeletePrivateCloud` method before the `expireTime` elapses. When `expireTime` is reached, + * deletion is final and all private cloud resources are irreversibly removed and billing stops. + * During the final removal process, `PrivateCloud.state` is set to `PURGING`. `PrivateCloud` can + * be polled using standard `GET` method for the whole period of deletion and purging. It will not + * be returned only when it is completely purged. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   DeletePrivateCloudRequest request =
+   *       DeletePrivateCloudRequest.newBuilder()
+   *           .setName(PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString())
+   *           .setRequestId("requestId693933066")
+   *           .setForce(true)
+   *           .setDelayHours(475821395)
+   *           .build();
+   *   OperationFuture future =
+   *       vmwareEngineClient.deletePrivateCloudOperationCallable().futureCall(request);
+   *   // Do something.
+   *   PrivateCloud response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + deletePrivateCloudOperationCallable() { + return stub.deletePrivateCloudOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Schedules a `PrivateCloud` resource for deletion. + * + *

A `PrivateCloud` resource scheduled for deletion has `PrivateCloud.state` set to `DELETED` + * and `expireTime` set to the time when deletion is final and can no longer be reversed. The + * delete operation is marked as done as soon as the `PrivateCloud` is successfully scheduled for + * deletion (this also applies when `delayHours` is set to zero), and the operation is not kept in + * pending state until `PrivateCloud` is purged. `PrivateCloud` can be restored using + * `UndeletePrivateCloud` method before the `expireTime` elapses. When `expireTime` is reached, + * deletion is final and all private cloud resources are irreversibly removed and billing stops. + * During the final removal process, `PrivateCloud.state` is set to `PURGING`. `PrivateCloud` can + * be polled using standard `GET` method for the whole period of deletion and purging. It will not + * be returned only when it is completely purged. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   DeletePrivateCloudRequest request =
+   *       DeletePrivateCloudRequest.newBuilder()
+   *           .setName(PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString())
+   *           .setRequestId("requestId693933066")
+   *           .setForce(true)
+   *           .setDelayHours(475821395)
+   *           .build();
+   *   ApiFuture future =
+   *       vmwareEngineClient.deletePrivateCloudCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable deletePrivateCloudCallable() { + return stub.deletePrivateCloudCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Restores a private cloud that was previously scheduled for deletion by `DeletePrivateCloud`. A + * `PrivateCloud` resource scheduled for deletion has `PrivateCloud.state` set to `DELETED` and + * `PrivateCloud.expireTime` set to the time when deletion can no longer be reversed. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   PrivateCloudName name = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]");
+   *   PrivateCloud response = vmwareEngineClient.undeletePrivateCloudAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The resource name of the private cloud scheduled for deletion. Resource + * names are schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. For example: + * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture undeletePrivateCloudAsync( + PrivateCloudName name) { + UndeletePrivateCloudRequest request = + UndeletePrivateCloudRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return undeletePrivateCloudAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Restores a private cloud that was previously scheduled for deletion by `DeletePrivateCloud`. A + * `PrivateCloud` resource scheduled for deletion has `PrivateCloud.state` set to `DELETED` and + * `PrivateCloud.expireTime` set to the time when deletion can no longer be reversed. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   String name = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString();
+   *   PrivateCloud response = vmwareEngineClient.undeletePrivateCloudAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The resource name of the private cloud scheduled for deletion. Resource + * names are schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. For example: + * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture undeletePrivateCloudAsync( + String name) { + UndeletePrivateCloudRequest request = + UndeletePrivateCloudRequest.newBuilder().setName(name).build(); + return undeletePrivateCloudAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Restores a private cloud that was previously scheduled for deletion by `DeletePrivateCloud`. A + * `PrivateCloud` resource scheduled for deletion has `PrivateCloud.state` set to `DELETED` and + * `PrivateCloud.expireTime` set to the time when deletion can no longer be reversed. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   UndeletePrivateCloudRequest request =
+   *       UndeletePrivateCloudRequest.newBuilder()
+   *           .setName(PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   PrivateCloud response = vmwareEngineClient.undeletePrivateCloudAsync(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 undeletePrivateCloudAsync( + UndeletePrivateCloudRequest request) { + return undeletePrivateCloudOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Restores a private cloud that was previously scheduled for deletion by `DeletePrivateCloud`. A + * `PrivateCloud` resource scheduled for deletion has `PrivateCloud.state` set to `DELETED` and + * `PrivateCloud.expireTime` set to the time when deletion can no longer be reversed. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   UndeletePrivateCloudRequest request =
+   *       UndeletePrivateCloudRequest.newBuilder()
+   *           .setName(PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   OperationFuture future =
+   *       vmwareEngineClient.undeletePrivateCloudOperationCallable().futureCall(request);
+   *   // Do something.
+   *   PrivateCloud response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + undeletePrivateCloudOperationCallable() { + return stub.undeletePrivateCloudOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Restores a private cloud that was previously scheduled for deletion by `DeletePrivateCloud`. A + * `PrivateCloud` resource scheduled for deletion has `PrivateCloud.state` set to `DELETED` and + * `PrivateCloud.expireTime` set to the time when deletion can no longer be reversed. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   UndeletePrivateCloudRequest request =
+   *       UndeletePrivateCloudRequest.newBuilder()
+   *           .setName(PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   ApiFuture future =
+   *       vmwareEngineClient.undeletePrivateCloudCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + undeletePrivateCloudCallable() { + return stub.undeletePrivateCloudCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists `Cluster` resources in a given private cloud. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   PrivateCloudName parent = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]");
+   *   for (Cluster element : vmwareEngineClient.listClusters(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The resource name of the private cloud to query for clusters. Resource + * names are schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. For example: + * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListClustersPagedResponse listClusters(PrivateCloudName parent) { + ListClustersRequest request = + ListClustersRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listClusters(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists `Cluster` resources in a given private cloud. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   String parent = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString();
+   *   for (Cluster element : vmwareEngineClient.listClusters(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The resource name of the private cloud to query for clusters. Resource + * names are schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. For example: + * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListClustersPagedResponse listClusters(String parent) { + ListClustersRequest request = ListClustersRequest.newBuilder().setParent(parent).build(); + return listClusters(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists `Cluster` resources in a given private cloud. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   ListClustersRequest request =
+   *       ListClustersRequest.newBuilder()
+   *           .setParent(
+   *               PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   for (Cluster element : vmwareEngineClient.listClusters(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 ListClustersPagedResponse listClusters(ListClustersRequest request) { + return listClustersPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists `Cluster` resources in a given private cloud. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   ListClustersRequest request =
+   *       ListClustersRequest.newBuilder()
+   *           .setParent(
+   *               PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   ApiFuture future =
+   *       vmwareEngineClient.listClustersPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Cluster element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listClustersPagedCallable() { + return stub.listClustersPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists `Cluster` resources in a given private cloud. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   ListClustersRequest request =
+   *       ListClustersRequest.newBuilder()
+   *           .setParent(
+   *               PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   while (true) {
+   *     ListClustersResponse response = vmwareEngineClient.listClustersCallable().call(request);
+   *     for (Cluster element : response.getClustersList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listClustersCallable() { + return stub.listClustersCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves a `Cluster` resource by its resource name. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   ClusterName name = ClusterName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[CLUSTER]");
+   *   Cluster response = vmwareEngineClient.getCluster(name);
+   * }
+   * }
+ * + * @param name Required. The cluster resource name to retrieve. Resource names are schemeless URIs + * that follow the conventions in https://cloud.google.com/apis/design/resource_names. For + * example: + * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud/clusters/my-cluster` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Cluster getCluster(ClusterName name) { + GetClusterRequest request = + GetClusterRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getCluster(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves a `Cluster` resource by its resource name. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   String name =
+   *       ClusterName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[CLUSTER]").toString();
+   *   Cluster response = vmwareEngineClient.getCluster(name);
+   * }
+   * }
+ * + * @param name Required. The cluster resource name to retrieve. Resource names are schemeless URIs + * that follow the conventions in https://cloud.google.com/apis/design/resource_names. For + * example: + * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud/clusters/my-cluster` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Cluster getCluster(String name) { + GetClusterRequest request = GetClusterRequest.newBuilder().setName(name).build(); + return getCluster(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves a `Cluster` resource by its resource name. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   GetClusterRequest request =
+   *       GetClusterRequest.newBuilder()
+   *           .setName(
+   *               ClusterName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[CLUSTER]")
+   *                   .toString())
+   *           .build();
+   *   Cluster response = vmwareEngineClient.getCluster(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 Cluster getCluster(GetClusterRequest request) { + return getClusterCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves a `Cluster` resource by its resource name. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   GetClusterRequest request =
+   *       GetClusterRequest.newBuilder()
+   *           .setName(
+   *               ClusterName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[CLUSTER]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future = vmwareEngineClient.getClusterCallable().futureCall(request);
+   *   // Do something.
+   *   Cluster response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getClusterCallable() { + return stub.getClusterCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new cluster in a given private cloud. Creating a new cluster provides additional + * nodes for use in the parent private cloud and requires sufficient [node + * quota](https://cloud.google.com/vmware-engine/quotas). + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   PrivateCloudName parent = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]");
+   *   Cluster cluster = Cluster.newBuilder().build();
+   *   String clusterId = "clusterId561939637";
+   *   Cluster response = vmwareEngineClient.createClusterAsync(parent, cluster, clusterId).get();
+   * }
+   * }
+ * + * @param parent Required. The resource name of the private cloud to create a new cluster in. + * Resource names are schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. For example: + * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud` + * @param cluster Required. The initial description of the new cluster. + * @param clusterId Required. The user-provided identifier of the new `Cluster`. This identifier + * must be unique among clusters within the parent and becomes the final token in the name + * URI. The identifier must meet the following requirements: + *
    + *
  • Only contains 1-63 alphanumeric characters and hyphens + *
  • Begins with an alphabetical character + *
  • Ends with a non-hyphen character + *
  • Not formatted as a UUID + *
  • Complies with [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034) (section 3.5) + *
+ * + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createClusterAsync( + PrivateCloudName parent, Cluster cluster, String clusterId) { + CreateClusterRequest request = + CreateClusterRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setCluster(cluster) + .setClusterId(clusterId) + .build(); + return createClusterAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new cluster in a given private cloud. Creating a new cluster provides additional + * nodes for use in the parent private cloud and requires sufficient [node + * quota](https://cloud.google.com/vmware-engine/quotas). + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   String parent = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString();
+   *   Cluster cluster = Cluster.newBuilder().build();
+   *   String clusterId = "clusterId561939637";
+   *   Cluster response = vmwareEngineClient.createClusterAsync(parent, cluster, clusterId).get();
+   * }
+   * }
+ * + * @param parent Required. The resource name of the private cloud to create a new cluster in. + * Resource names are schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. For example: + * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud` + * @param cluster Required. The initial description of the new cluster. + * @param clusterId Required. The user-provided identifier of the new `Cluster`. This identifier + * must be unique among clusters within the parent and becomes the final token in the name + * URI. The identifier must meet the following requirements: + *
    + *
  • Only contains 1-63 alphanumeric characters and hyphens + *
  • Begins with an alphabetical character + *
  • Ends with a non-hyphen character + *
  • Not formatted as a UUID + *
  • Complies with [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034) (section 3.5) + *
+ * + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createClusterAsync( + String parent, Cluster cluster, String clusterId) { + CreateClusterRequest request = + CreateClusterRequest.newBuilder() + .setParent(parent) + .setCluster(cluster) + .setClusterId(clusterId) + .build(); + return createClusterAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new cluster in a given private cloud. Creating a new cluster provides additional + * nodes for use in the parent private cloud and requires sufficient [node + * quota](https://cloud.google.com/vmware-engine/quotas). + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   CreateClusterRequest request =
+   *       CreateClusterRequest.newBuilder()
+   *           .setParent(
+   *               PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString())
+   *           .setClusterId("clusterId561939637")
+   *           .setCluster(Cluster.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .setValidateOnly(true)
+   *           .build();
+   *   Cluster response = vmwareEngineClient.createClusterAsync(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 createClusterAsync( + CreateClusterRequest request) { + return createClusterOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new cluster in a given private cloud. Creating a new cluster provides additional + * nodes for use in the parent private cloud and requires sufficient [node + * quota](https://cloud.google.com/vmware-engine/quotas). + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   CreateClusterRequest request =
+   *       CreateClusterRequest.newBuilder()
+   *           .setParent(
+   *               PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString())
+   *           .setClusterId("clusterId561939637")
+   *           .setCluster(Cluster.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .setValidateOnly(true)
+   *           .build();
+   *   OperationFuture future =
+   *       vmwareEngineClient.createClusterOperationCallable().futureCall(request);
+   *   // Do something.
+   *   Cluster response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + createClusterOperationCallable() { + return stub.createClusterOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new cluster in a given private cloud. Creating a new cluster provides additional + * nodes for use in the parent private cloud and requires sufficient [node + * quota](https://cloud.google.com/vmware-engine/quotas). + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   CreateClusterRequest request =
+   *       CreateClusterRequest.newBuilder()
+   *           .setParent(
+   *               PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString())
+   *           .setClusterId("clusterId561939637")
+   *           .setCluster(Cluster.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .setValidateOnly(true)
+   *           .build();
+   *   ApiFuture future = vmwareEngineClient.createClusterCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable createClusterCallable() { + return stub.createClusterCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Modifies a `Cluster` resource. Only the following fields can be updated: + * `node_type_configs.*.node_count`. Only fields specified in `updateMask` are applied. + * + *

During operation processing, the resource is temporarily in the `ACTIVE` state before the + * operation fully completes. For that period of time, you can't update the resource. Use the + * operation status to determine when the processing fully completes. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   Cluster cluster = Cluster.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   Cluster response = vmwareEngineClient.updateClusterAsync(cluster, updateMask).get();
+   * }
+   * }
+ * + * @param cluster Required. The description of the cluster. + * @param updateMask Required. Field mask is used to specify the fields to be overwritten in the + * `Cluster` resource by the update. The fields specified in the `updateMask` are relative to + * the resource, not the full request. A field will be overwritten if it is in the mask. If + * the user does not provide a mask then all fields will be overwritten. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture updateClusterAsync( + Cluster cluster, FieldMask updateMask) { + UpdateClusterRequest request = + UpdateClusterRequest.newBuilder().setCluster(cluster).setUpdateMask(updateMask).build(); + return updateClusterAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Modifies a `Cluster` resource. Only the following fields can be updated: + * `node_type_configs.*.node_count`. Only fields specified in `updateMask` are applied. + * + *

During operation processing, the resource is temporarily in the `ACTIVE` state before the + * operation fully completes. For that period of time, you can't update the resource. Use the + * operation status to determine when the processing fully completes. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   UpdateClusterRequest request =
+   *       UpdateClusterRequest.newBuilder()
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setCluster(Cluster.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .setValidateOnly(true)
+   *           .build();
+   *   Cluster response = vmwareEngineClient.updateClusterAsync(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 updateClusterAsync( + UpdateClusterRequest request) { + return updateClusterOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Modifies a `Cluster` resource. Only the following fields can be updated: + * `node_type_configs.*.node_count`. Only fields specified in `updateMask` are applied. + * + *

During operation processing, the resource is temporarily in the `ACTIVE` state before the + * operation fully completes. For that period of time, you can't update the resource. Use the + * operation status to determine when the processing fully completes. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   UpdateClusterRequest request =
+   *       UpdateClusterRequest.newBuilder()
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setCluster(Cluster.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .setValidateOnly(true)
+   *           .build();
+   *   OperationFuture future =
+   *       vmwareEngineClient.updateClusterOperationCallable().futureCall(request);
+   *   // Do something.
+   *   Cluster response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + updateClusterOperationCallable() { + return stub.updateClusterOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Modifies a `Cluster` resource. Only the following fields can be updated: + * `node_type_configs.*.node_count`. Only fields specified in `updateMask` are applied. + * + *

During operation processing, the resource is temporarily in the `ACTIVE` state before the + * operation fully completes. For that period of time, you can't update the resource. Use the + * operation status to determine when the processing fully completes. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   UpdateClusterRequest request =
+   *       UpdateClusterRequest.newBuilder()
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setCluster(Cluster.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .setValidateOnly(true)
+   *           .build();
+   *   ApiFuture future = vmwareEngineClient.updateClusterCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable updateClusterCallable() { + return stub.updateClusterCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a `Cluster` resource. To avoid unintended data loss, migrate or gracefully shut down + * any workloads running on the cluster before deletion. You cannot delete the management cluster + * of a private cloud using this method. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   ClusterName name = ClusterName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[CLUSTER]");
+   *   vmwareEngineClient.deleteClusterAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The resource name of the cluster to delete. Resource names are schemeless + * URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. + * For example: + * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud/clusters/my-cluster` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteClusterAsync(ClusterName name) { + DeleteClusterRequest request = + DeleteClusterRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return deleteClusterAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a `Cluster` resource. To avoid unintended data loss, migrate or gracefully shut down + * any workloads running on the cluster before deletion. You cannot delete the management cluster + * of a private cloud using this method. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   String name =
+   *       ClusterName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[CLUSTER]").toString();
+   *   vmwareEngineClient.deleteClusterAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The resource name of the cluster to delete. Resource names are schemeless + * URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. + * For example: + * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud/clusters/my-cluster` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteClusterAsync(String name) { + DeleteClusterRequest request = DeleteClusterRequest.newBuilder().setName(name).build(); + return deleteClusterAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a `Cluster` resource. To avoid unintended data loss, migrate or gracefully shut down + * any workloads running on the cluster before deletion. You cannot delete the management cluster + * of a private cloud using this method. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   DeleteClusterRequest request =
+   *       DeleteClusterRequest.newBuilder()
+   *           .setName(
+   *               ClusterName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[CLUSTER]")
+   *                   .toString())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   vmwareEngineClient.deleteClusterAsync(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 deleteClusterAsync( + DeleteClusterRequest request) { + return deleteClusterOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a `Cluster` resource. To avoid unintended data loss, migrate or gracefully shut down + * any workloads running on the cluster before deletion. You cannot delete the management cluster + * of a private cloud using this method. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   DeleteClusterRequest request =
+   *       DeleteClusterRequest.newBuilder()
+   *           .setName(
+   *               ClusterName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[CLUSTER]")
+   *                   .toString())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   OperationFuture future =
+   *       vmwareEngineClient.deleteClusterOperationCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final OperationCallable + deleteClusterOperationCallable() { + return stub.deleteClusterOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a `Cluster` resource. To avoid unintended data loss, migrate or gracefully shut down + * any workloads running on the cluster before deletion. You cannot delete the management cluster + * of a private cloud using this method. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   DeleteClusterRequest request =
+   *       DeleteClusterRequest.newBuilder()
+   *           .setName(
+   *               ClusterName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[CLUSTER]")
+   *                   .toString())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   ApiFuture future = vmwareEngineClient.deleteClusterCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable deleteClusterCallable() { + return stub.deleteClusterCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists subnets in a given private cloud. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   PrivateCloudName parent = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]");
+   *   for (Subnet element : vmwareEngineClient.listSubnets(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The resource name of the private cloud to be queried for subnets. + * Resource names are schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. For example: + * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListSubnetsPagedResponse listSubnets(PrivateCloudName parent) { + ListSubnetsRequest request = + ListSubnetsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listSubnets(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists subnets in a given private cloud. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   String parent = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString();
+   *   for (Subnet element : vmwareEngineClient.listSubnets(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The resource name of the private cloud to be queried for subnets. + * Resource names are schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. For example: + * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListSubnetsPagedResponse listSubnets(String parent) { + ListSubnetsRequest request = ListSubnetsRequest.newBuilder().setParent(parent).build(); + return listSubnets(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists subnets in a given private cloud. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   ListSubnetsRequest request =
+   *       ListSubnetsRequest.newBuilder()
+   *           .setParent(
+   *               PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (Subnet element : vmwareEngineClient.listSubnets(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 ListSubnetsPagedResponse listSubnets(ListSubnetsRequest request) { + return listSubnetsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists subnets in a given private cloud. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   ListSubnetsRequest request =
+   *       ListSubnetsRequest.newBuilder()
+   *           .setParent(
+   *               PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future = vmwareEngineClient.listSubnetsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Subnet element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listSubnetsPagedCallable() { + return stub.listSubnetsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists subnets in a given private cloud. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   ListSubnetsRequest request =
+   *       ListSubnetsRequest.newBuilder()
+   *           .setParent(
+   *               PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListSubnetsResponse response = vmwareEngineClient.listSubnetsCallable().call(request);
+   *     for (Subnet element : response.getSubnetsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listSubnetsCallable() { + return stub.listSubnetsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists node types + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   for (NodeType element : vmwareEngineClient.listNodeTypes(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The resource name of the location to be queried for node types. + * Resource names are schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. For example: + * `projects/my-project/locations/us-west1-a` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListNodeTypesPagedResponse listNodeTypes(LocationName parent) { + ListNodeTypesRequest request = + ListNodeTypesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listNodeTypes(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists node types + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   for (NodeType element : vmwareEngineClient.listNodeTypes(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The resource name of the location to be queried for node types. + * Resource names are schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. For example: + * `projects/my-project/locations/us-west1-a` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListNodeTypesPagedResponse listNodeTypes(String parent) { + ListNodeTypesRequest request = ListNodeTypesRequest.newBuilder().setParent(parent).build(); + return listNodeTypes(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists node types + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   ListNodeTypesRequest request =
+   *       ListNodeTypesRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .build();
+   *   for (NodeType element : vmwareEngineClient.listNodeTypes(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 ListNodeTypesPagedResponse listNodeTypes(ListNodeTypesRequest request) { + return listNodeTypesPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists node types + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   ListNodeTypesRequest request =
+   *       ListNodeTypesRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .build();
+   *   ApiFuture future =
+   *       vmwareEngineClient.listNodeTypesPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (NodeType element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listNodeTypesPagedCallable() { + return stub.listNodeTypesPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists node types + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   ListNodeTypesRequest request =
+   *       ListNodeTypesRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .build();
+   *   while (true) {
+   *     ListNodeTypesResponse response = vmwareEngineClient.listNodeTypesCallable().call(request);
+   *     for (NodeType element : response.getNodeTypesList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listNodeTypesCallable() { + return stub.listNodeTypesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single `NodeType`. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   NodeTypeName name = NodeTypeName.of("[PROJECT]", "[LOCATION]", "[NODE_TYPE]");
+   *   NodeType response = vmwareEngineClient.getNodeType(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the node type to retrieve. Resource names are + * schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. For example: + * `projects/my-proj/locations/us-west1-a/nodeTypes/standard-72` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final NodeType getNodeType(NodeTypeName name) { + GetNodeTypeRequest request = + GetNodeTypeRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getNodeType(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single `NodeType`. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   String name = NodeTypeName.of("[PROJECT]", "[LOCATION]", "[NODE_TYPE]").toString();
+   *   NodeType response = vmwareEngineClient.getNodeType(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the node type to retrieve. Resource names are + * schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. For example: + * `projects/my-proj/locations/us-west1-a/nodeTypes/standard-72` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final NodeType getNodeType(String name) { + GetNodeTypeRequest request = GetNodeTypeRequest.newBuilder().setName(name).build(); + return getNodeType(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single `NodeType`. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   GetNodeTypeRequest request =
+   *       GetNodeTypeRequest.newBuilder()
+   *           .setName(NodeTypeName.of("[PROJECT]", "[LOCATION]", "[NODE_TYPE]").toString())
+   *           .build();
+   *   NodeType response = vmwareEngineClient.getNodeType(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 NodeType getNodeType(GetNodeTypeRequest request) { + return getNodeTypeCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single `NodeType`. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   GetNodeTypeRequest request =
+   *       GetNodeTypeRequest.newBuilder()
+   *           .setName(NodeTypeName.of("[PROJECT]", "[LOCATION]", "[NODE_TYPE]").toString())
+   *           .build();
+   *   ApiFuture future = vmwareEngineClient.getNodeTypeCallable().futureCall(request);
+   *   // Do something.
+   *   NodeType response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getNodeTypeCallable() { + return stub.getNodeTypeCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of credentials for NSX appliance. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   PrivateCloudName privateCloud =
+   *       PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]");
+   *   Credentials response = vmwareEngineClient.showNsxCredentials(privateCloud);
+   * }
+   * }
+ * + * @param privateCloud Required. The resource name of the private cloud to be queried for + * credentials. Resource names are schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. For example: + * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Credentials showNsxCredentials(PrivateCloudName privateCloud) { + ShowNsxCredentialsRequest request = + ShowNsxCredentialsRequest.newBuilder() + .setPrivateCloud(privateCloud == null ? null : privateCloud.toString()) + .build(); + return showNsxCredentials(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of credentials for NSX appliance. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   String privateCloud =
+   *       PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString();
+   *   Credentials response = vmwareEngineClient.showNsxCredentials(privateCloud);
+   * }
+   * }
+ * + * @param privateCloud Required. The resource name of the private cloud to be queried for + * credentials. Resource names are schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. For example: + * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Credentials showNsxCredentials(String privateCloud) { + ShowNsxCredentialsRequest request = + ShowNsxCredentialsRequest.newBuilder().setPrivateCloud(privateCloud).build(); + return showNsxCredentials(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of credentials for NSX appliance. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   ShowNsxCredentialsRequest request =
+   *       ShowNsxCredentialsRequest.newBuilder()
+   *           .setPrivateCloud(
+   *               PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString())
+   *           .build();
+   *   Credentials response = vmwareEngineClient.showNsxCredentials(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 Credentials showNsxCredentials(ShowNsxCredentialsRequest request) { + return showNsxCredentialsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of credentials for NSX appliance. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   ShowNsxCredentialsRequest request =
+   *       ShowNsxCredentialsRequest.newBuilder()
+   *           .setPrivateCloud(
+   *               PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       vmwareEngineClient.showNsxCredentialsCallable().futureCall(request);
+   *   // Do something.
+   *   Credentials response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable showNsxCredentialsCallable() { + return stub.showNsxCredentialsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of credentials for Vcenter appliance. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   PrivateCloudName privateCloud =
+   *       PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]");
+   *   Credentials response = vmwareEngineClient.showVcenterCredentials(privateCloud);
+   * }
+   * }
+ * + * @param privateCloud Required. The resource name of the private cloud to be queried for + * credentials. Resource names are schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. For example: + * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Credentials showVcenterCredentials(PrivateCloudName privateCloud) { + ShowVcenterCredentialsRequest request = + ShowVcenterCredentialsRequest.newBuilder() + .setPrivateCloud(privateCloud == null ? null : privateCloud.toString()) + .build(); + return showVcenterCredentials(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of credentials for Vcenter appliance. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   String privateCloud =
+   *       PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString();
+   *   Credentials response = vmwareEngineClient.showVcenterCredentials(privateCloud);
+   * }
+   * }
+ * + * @param privateCloud Required. The resource name of the private cloud to be queried for + * credentials. Resource names are schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. For example: + * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Credentials showVcenterCredentials(String privateCloud) { + ShowVcenterCredentialsRequest request = + ShowVcenterCredentialsRequest.newBuilder().setPrivateCloud(privateCloud).build(); + return showVcenterCredentials(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of credentials for Vcenter appliance. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   ShowVcenterCredentialsRequest request =
+   *       ShowVcenterCredentialsRequest.newBuilder()
+   *           .setPrivateCloud(
+   *               PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString())
+   *           .build();
+   *   Credentials response = vmwareEngineClient.showVcenterCredentials(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 Credentials showVcenterCredentials(ShowVcenterCredentialsRequest request) { + return showVcenterCredentialsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of credentials for Vcenter appliance. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   ShowVcenterCredentialsRequest request =
+   *       ShowVcenterCredentialsRequest.newBuilder()
+   *           .setPrivateCloud(
+   *               PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       vmwareEngineClient.showVcenterCredentialsCallable().futureCall(request);
+   *   // Do something.
+   *   Credentials response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + showVcenterCredentialsCallable() { + return stub.showVcenterCredentialsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Resets credentials of the NSX appliance. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   PrivateCloudName privateCloud =
+   *       PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]");
+   *   PrivateCloud response = vmwareEngineClient.resetNsxCredentialsAsync(privateCloud).get();
+   * }
+   * }
+ * + * @param privateCloud Required. The resource name of the private cloud to reset credentials for. + * Resource names are schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. For example: + * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture resetNsxCredentialsAsync( + PrivateCloudName privateCloud) { + ResetNsxCredentialsRequest request = + ResetNsxCredentialsRequest.newBuilder() + .setPrivateCloud(privateCloud == null ? null : privateCloud.toString()) + .build(); + return resetNsxCredentialsAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Resets credentials of the NSX appliance. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   String privateCloud =
+   *       PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString();
+   *   PrivateCloud response = vmwareEngineClient.resetNsxCredentialsAsync(privateCloud).get();
+   * }
+   * }
+ * + * @param privateCloud Required. The resource name of the private cloud to reset credentials for. + * Resource names are schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. For example: + * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture resetNsxCredentialsAsync( + String privateCloud) { + ResetNsxCredentialsRequest request = + ResetNsxCredentialsRequest.newBuilder().setPrivateCloud(privateCloud).build(); + return resetNsxCredentialsAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Resets credentials of the NSX appliance. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   ResetNsxCredentialsRequest request =
+   *       ResetNsxCredentialsRequest.newBuilder()
+   *           .setPrivateCloud(
+   *               PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   PrivateCloud response = vmwareEngineClient.resetNsxCredentialsAsync(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 resetNsxCredentialsAsync( + ResetNsxCredentialsRequest request) { + return resetNsxCredentialsOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Resets credentials of the NSX appliance. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   ResetNsxCredentialsRequest request =
+   *       ResetNsxCredentialsRequest.newBuilder()
+   *           .setPrivateCloud(
+   *               PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   OperationFuture future =
+   *       vmwareEngineClient.resetNsxCredentialsOperationCallable().futureCall(request);
+   *   // Do something.
+   *   PrivateCloud response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + resetNsxCredentialsOperationCallable() { + return stub.resetNsxCredentialsOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Resets credentials of the NSX appliance. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   ResetNsxCredentialsRequest request =
+   *       ResetNsxCredentialsRequest.newBuilder()
+   *           .setPrivateCloud(
+   *               PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   ApiFuture future =
+   *       vmwareEngineClient.resetNsxCredentialsCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable resetNsxCredentialsCallable() { + return stub.resetNsxCredentialsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Resets credentials of the Vcenter appliance. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   PrivateCloudName privateCloud =
+   *       PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]");
+   *   PrivateCloud response = vmwareEngineClient.resetVcenterCredentialsAsync(privateCloud).get();
+   * }
+   * }
+ * + * @param privateCloud Required. The resource name of the private cloud to reset credentials for. + * Resource names are schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. For example: + * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture resetVcenterCredentialsAsync( + PrivateCloudName privateCloud) { + ResetVcenterCredentialsRequest request = + ResetVcenterCredentialsRequest.newBuilder() + .setPrivateCloud(privateCloud == null ? null : privateCloud.toString()) + .build(); + return resetVcenterCredentialsAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Resets credentials of the Vcenter appliance. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   String privateCloud =
+   *       PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString();
+   *   PrivateCloud response = vmwareEngineClient.resetVcenterCredentialsAsync(privateCloud).get();
+   * }
+   * }
+ * + * @param privateCloud Required. The resource name of the private cloud to reset credentials for. + * Resource names are schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. For example: + * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture resetVcenterCredentialsAsync( + String privateCloud) { + ResetVcenterCredentialsRequest request = + ResetVcenterCredentialsRequest.newBuilder().setPrivateCloud(privateCloud).build(); + return resetVcenterCredentialsAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Resets credentials of the Vcenter appliance. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   ResetVcenterCredentialsRequest request =
+   *       ResetVcenterCredentialsRequest.newBuilder()
+   *           .setPrivateCloud(
+   *               PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   PrivateCloud response = vmwareEngineClient.resetVcenterCredentialsAsync(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 resetVcenterCredentialsAsync( + ResetVcenterCredentialsRequest request) { + return resetVcenterCredentialsOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Resets credentials of the Vcenter appliance. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   ResetVcenterCredentialsRequest request =
+   *       ResetVcenterCredentialsRequest.newBuilder()
+   *           .setPrivateCloud(
+   *               PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   OperationFuture future =
+   *       vmwareEngineClient.resetVcenterCredentialsOperationCallable().futureCall(request);
+   *   // Do something.
+   *   PrivateCloud response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + resetVcenterCredentialsOperationCallable() { + return stub.resetVcenterCredentialsOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Resets credentials of the Vcenter appliance. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   ResetVcenterCredentialsRequest request =
+   *       ResetVcenterCredentialsRequest.newBuilder()
+   *           .setPrivateCloud(
+   *               PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   ApiFuture future =
+   *       vmwareEngineClient.resetVcenterCredentialsCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + resetVcenterCredentialsCallable() { + return stub.resetVcenterCredentialsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new HCX activation key in a given private cloud. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   PrivateCloudName parent = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]");
+   *   HcxActivationKey hcxActivationKey = HcxActivationKey.newBuilder().build();
+   *   String hcxActivationKeyId = "hcxActivationKeyId-645871673";
+   *   HcxActivationKey response =
+   *       vmwareEngineClient
+   *           .createHcxActivationKeyAsync(parent, hcxActivationKey, hcxActivationKeyId)
+   *           .get();
+   * }
+   * }
+ * + * @param parent Required. The resource name of the private cloud to create the key for. Resource + * names are schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. For example: + * `projects/my-project/locations/us-central1/privateClouds/my-cloud` + * @param hcxActivationKey Required. The initial description of a new HCX activation key. When + * creating a new key, this field must be an empty object. + * @param hcxActivationKeyId Required. The user-provided identifier of the `HcxActivationKey` to + * be created. This identifier must be unique among `HcxActivationKey` resources within the + * parent and becomes the final token in the name URI. The identifier must meet the following + * requirements: + *
    + *
  • Only contains 1-63 alphanumeric characters and hyphens + *
  • Begins with an alphabetical character + *
  • Ends with a non-hyphen character + *
  • Not formatted as a UUID + *
  • Complies with [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034) (section 3.5) + *
+ * + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createHcxActivationKeyAsync( + PrivateCloudName parent, HcxActivationKey hcxActivationKey, String hcxActivationKeyId) { + CreateHcxActivationKeyRequest request = + CreateHcxActivationKeyRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setHcxActivationKey(hcxActivationKey) + .setHcxActivationKeyId(hcxActivationKeyId) + .build(); + return createHcxActivationKeyAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new HCX activation key in a given private cloud. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   String parent = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString();
+   *   HcxActivationKey hcxActivationKey = HcxActivationKey.newBuilder().build();
+   *   String hcxActivationKeyId = "hcxActivationKeyId-645871673";
+   *   HcxActivationKey response =
+   *       vmwareEngineClient
+   *           .createHcxActivationKeyAsync(parent, hcxActivationKey, hcxActivationKeyId)
+   *           .get();
+   * }
+   * }
+ * + * @param parent Required. The resource name of the private cloud to create the key for. Resource + * names are schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. For example: + * `projects/my-project/locations/us-central1/privateClouds/my-cloud` + * @param hcxActivationKey Required. The initial description of a new HCX activation key. When + * creating a new key, this field must be an empty object. + * @param hcxActivationKeyId Required. The user-provided identifier of the `HcxActivationKey` to + * be created. This identifier must be unique among `HcxActivationKey` resources within the + * parent and becomes the final token in the name URI. The identifier must meet the following + * requirements: + *
    + *
  • Only contains 1-63 alphanumeric characters and hyphens + *
  • Begins with an alphabetical character + *
  • Ends with a non-hyphen character + *
  • Not formatted as a UUID + *
  • Complies with [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034) (section 3.5) + *
+ * + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createHcxActivationKeyAsync( + String parent, HcxActivationKey hcxActivationKey, String hcxActivationKeyId) { + CreateHcxActivationKeyRequest request = + CreateHcxActivationKeyRequest.newBuilder() + .setParent(parent) + .setHcxActivationKey(hcxActivationKey) + .setHcxActivationKeyId(hcxActivationKeyId) + .build(); + return createHcxActivationKeyAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new HCX activation key in a given private cloud. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   CreateHcxActivationKeyRequest request =
+   *       CreateHcxActivationKeyRequest.newBuilder()
+   *           .setParent(
+   *               PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString())
+   *           .setHcxActivationKey(HcxActivationKey.newBuilder().build())
+   *           .setHcxActivationKeyId("hcxActivationKeyId-645871673")
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   HcxActivationKey response = vmwareEngineClient.createHcxActivationKeyAsync(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 createHcxActivationKeyAsync( + CreateHcxActivationKeyRequest request) { + return createHcxActivationKeyOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new HCX activation key in a given private cloud. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   CreateHcxActivationKeyRequest request =
+   *       CreateHcxActivationKeyRequest.newBuilder()
+   *           .setParent(
+   *               PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString())
+   *           .setHcxActivationKey(HcxActivationKey.newBuilder().build())
+   *           .setHcxActivationKeyId("hcxActivationKeyId-645871673")
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   OperationFuture future =
+   *       vmwareEngineClient.createHcxActivationKeyOperationCallable().futureCall(request);
+   *   // Do something.
+   *   HcxActivationKey response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + createHcxActivationKeyOperationCallable() { + return stub.createHcxActivationKeyOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new HCX activation key in a given private cloud. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   CreateHcxActivationKeyRequest request =
+   *       CreateHcxActivationKeyRequest.newBuilder()
+   *           .setParent(
+   *               PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString())
+   *           .setHcxActivationKey(HcxActivationKey.newBuilder().build())
+   *           .setHcxActivationKeyId("hcxActivationKeyId-645871673")
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   ApiFuture future =
+   *       vmwareEngineClient.createHcxActivationKeyCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + createHcxActivationKeyCallable() { + return stub.createHcxActivationKeyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists `HcxActivationKey` resources in a given private cloud. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   PrivateCloudName parent = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]");
+   *   for (HcxActivationKey element :
+   *       vmwareEngineClient.listHcxActivationKeys(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The resource name of the private cloud to be queried for HCX activation + * keys. Resource names are schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. For example: + * `projects/my-project/locations/us-central1/privateClouds/my-cloud` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListHcxActivationKeysPagedResponse listHcxActivationKeys(PrivateCloudName parent) { + ListHcxActivationKeysRequest request = + ListHcxActivationKeysRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listHcxActivationKeys(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists `HcxActivationKey` resources in a given private cloud. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   String parent = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString();
+   *   for (HcxActivationKey element :
+   *       vmwareEngineClient.listHcxActivationKeys(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The resource name of the private cloud to be queried for HCX activation + * keys. Resource names are schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. For example: + * `projects/my-project/locations/us-central1/privateClouds/my-cloud` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListHcxActivationKeysPagedResponse listHcxActivationKeys(String parent) { + ListHcxActivationKeysRequest request = + ListHcxActivationKeysRequest.newBuilder().setParent(parent).build(); + return listHcxActivationKeys(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists `HcxActivationKey` resources in a given private cloud. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   ListHcxActivationKeysRequest request =
+   *       ListHcxActivationKeysRequest.newBuilder()
+   *           .setParent(
+   *               PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (HcxActivationKey element :
+   *       vmwareEngineClient.listHcxActivationKeys(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 ListHcxActivationKeysPagedResponse listHcxActivationKeys( + ListHcxActivationKeysRequest request) { + return listHcxActivationKeysPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists `HcxActivationKey` resources in a given private cloud. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   ListHcxActivationKeysRequest request =
+   *       ListHcxActivationKeysRequest.newBuilder()
+   *           .setParent(
+   *               PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       vmwareEngineClient.listHcxActivationKeysPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (HcxActivationKey element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listHcxActivationKeysPagedCallable() { + return stub.listHcxActivationKeysPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists `HcxActivationKey` resources in a given private cloud. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   ListHcxActivationKeysRequest request =
+   *       ListHcxActivationKeysRequest.newBuilder()
+   *           .setParent(
+   *               PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListHcxActivationKeysResponse response =
+   *         vmwareEngineClient.listHcxActivationKeysCallable().call(request);
+   *     for (HcxActivationKey element : response.getHcxActivationKeysList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listHcxActivationKeysCallable() { + return stub.listHcxActivationKeysCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves a `HcxActivationKey` resource by its resource name. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   HcxActivationKeyName name =
+   *       HcxActivationKeyName.of(
+   *           "[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[HCX_ACTIVATION_KEY]");
+   *   HcxActivationKey response = vmwareEngineClient.getHcxActivationKey(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the HCX activation key to retrieve. Resource names + * are schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. For example: + * `projects/my-project/locations/us-west1/privateClouds/my-cloud/hcxActivationKeys/my-key` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final HcxActivationKey getHcxActivationKey(HcxActivationKeyName name) { + GetHcxActivationKeyRequest request = + GetHcxActivationKeyRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getHcxActivationKey(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves a `HcxActivationKey` resource by its resource name. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   String name =
+   *       HcxActivationKeyName.of(
+   *               "[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[HCX_ACTIVATION_KEY]")
+   *           .toString();
+   *   HcxActivationKey response = vmwareEngineClient.getHcxActivationKey(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the HCX activation key to retrieve. Resource names + * are schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. For example: + * `projects/my-project/locations/us-west1/privateClouds/my-cloud/hcxActivationKeys/my-key` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final HcxActivationKey getHcxActivationKey(String name) { + GetHcxActivationKeyRequest request = + GetHcxActivationKeyRequest.newBuilder().setName(name).build(); + return getHcxActivationKey(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves a `HcxActivationKey` resource by its resource name. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   GetHcxActivationKeyRequest request =
+   *       GetHcxActivationKeyRequest.newBuilder()
+   *           .setName(
+   *               HcxActivationKeyName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[HCX_ACTIVATION_KEY]")
+   *                   .toString())
+   *           .build();
+   *   HcxActivationKey response = vmwareEngineClient.getHcxActivationKey(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 HcxActivationKey getHcxActivationKey(GetHcxActivationKeyRequest request) { + return getHcxActivationKeyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves a `HcxActivationKey` resource by its resource name. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   GetHcxActivationKeyRequest request =
+   *       GetHcxActivationKeyRequest.newBuilder()
+   *           .setName(
+   *               HcxActivationKeyName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[HCX_ACTIVATION_KEY]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       vmwareEngineClient.getHcxActivationKeyCallable().futureCall(request);
+   *   // Do something.
+   *   HcxActivationKey response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + getHcxActivationKeyCallable() { + return stub.getHcxActivationKeyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves a `NetworkPolicy` resource by its resource name. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   NetworkPolicyName name = NetworkPolicyName.of("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]");
+   *   NetworkPolicy response = vmwareEngineClient.getNetworkPolicy(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the network policy to retrieve. Resource names are + * schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. For example: + * `projects/my-project/locations/us-central1/networkPolicies/my-network-policy` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final NetworkPolicy getNetworkPolicy(NetworkPolicyName name) { + GetNetworkPolicyRequest request = + GetNetworkPolicyRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getNetworkPolicy(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves a `NetworkPolicy` resource by its resource name. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   String name = NetworkPolicyName.of("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]").toString();
+   *   NetworkPolicy response = vmwareEngineClient.getNetworkPolicy(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the network policy to retrieve. Resource names are + * schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. For example: + * `projects/my-project/locations/us-central1/networkPolicies/my-network-policy` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final NetworkPolicy getNetworkPolicy(String name) { + GetNetworkPolicyRequest request = GetNetworkPolicyRequest.newBuilder().setName(name).build(); + return getNetworkPolicy(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves a `NetworkPolicy` resource by its resource name. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   GetNetworkPolicyRequest request =
+   *       GetNetworkPolicyRequest.newBuilder()
+   *           .setName(
+   *               NetworkPolicyName.of("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]").toString())
+   *           .build();
+   *   NetworkPolicy response = vmwareEngineClient.getNetworkPolicy(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 NetworkPolicy getNetworkPolicy(GetNetworkPolicyRequest request) { + return getNetworkPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves a `NetworkPolicy` resource by its resource name. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   GetNetworkPolicyRequest request =
+   *       GetNetworkPolicyRequest.newBuilder()
+   *           .setName(
+   *               NetworkPolicyName.of("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       vmwareEngineClient.getNetworkPolicyCallable().futureCall(request);
+   *   // Do something.
+   *   NetworkPolicy response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getNetworkPolicyCallable() { + return stub.getNetworkPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists `NetworkPolicy` resources in a specified project and location. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   for (NetworkPolicy element : vmwareEngineClient.listNetworkPolicies(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The resource name of the location (region) to query for network + * policies. Resource names are schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. For example: + * `projects/my-project/locations/us-central1` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListNetworkPoliciesPagedResponse listNetworkPolicies(LocationName parent) { + ListNetworkPoliciesRequest request = + ListNetworkPoliciesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listNetworkPolicies(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists `NetworkPolicy` resources in a specified project and location. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   for (NetworkPolicy element : vmwareEngineClient.listNetworkPolicies(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The resource name of the location (region) to query for network + * policies. Resource names are schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. For example: + * `projects/my-project/locations/us-central1` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListNetworkPoliciesPagedResponse listNetworkPolicies(String parent) { + ListNetworkPoliciesRequest request = + ListNetworkPoliciesRequest.newBuilder().setParent(parent).build(); + return listNetworkPolicies(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists `NetworkPolicy` resources in a specified project and location. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   ListNetworkPoliciesRequest request =
+   *       ListNetworkPoliciesRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   for (NetworkPolicy element : vmwareEngineClient.listNetworkPolicies(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 ListNetworkPoliciesPagedResponse listNetworkPolicies( + ListNetworkPoliciesRequest request) { + return listNetworkPoliciesPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists `NetworkPolicy` resources in a specified project and location. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   ListNetworkPoliciesRequest request =
+   *       ListNetworkPoliciesRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   ApiFuture future =
+   *       vmwareEngineClient.listNetworkPoliciesPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (NetworkPolicy element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listNetworkPoliciesPagedCallable() { + return stub.listNetworkPoliciesPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists `NetworkPolicy` resources in a specified project and location. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   ListNetworkPoliciesRequest request =
+   *       ListNetworkPoliciesRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   while (true) {
+   *     ListNetworkPoliciesResponse response =
+   *         vmwareEngineClient.listNetworkPoliciesCallable().call(request);
+   *     for (NetworkPolicy element : response.getNetworkPoliciesList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listNetworkPoliciesCallable() { + return stub.listNetworkPoliciesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new network policy in a given VMware Engine network of a project and location + * (region). A new network policy cannot be created if another network policy already exists in + * the same scope. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   NetworkPolicy networkPolicy = NetworkPolicy.newBuilder().build();
+   *   String networkPolicyId = "networkPolicyId-727262661";
+   *   NetworkPolicy response =
+   *       vmwareEngineClient.createNetworkPolicyAsync(parent, networkPolicy, networkPolicyId).get();
+   * }
+   * }
+ * + * @param parent Required. The resource name of the location (region) to create the new network + * policy in. Resource names are schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. For example: + * `projects/my-project/locations/us-central1` + * @param networkPolicy Required. The network policy configuration to use in the request. + * @param networkPolicyId Required. The user-provided identifier of the network policy to be + * created. This identifier must be unique within parent + * `projects/{my-project}/locations/{us-central1}/networkPolicies` and becomes the final token + * in the name URI. The identifier must meet the following requirements: + *
    + *
  • Only contains 1-63 alphanumeric characters and hyphens + *
  • Begins with an alphabetical character + *
  • Ends with a non-hyphen character + *
  • Not formatted as a UUID + *
  • Complies with [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034) (section 3.5) + *
+ * + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createNetworkPolicyAsync( + LocationName parent, NetworkPolicy networkPolicy, String networkPolicyId) { + CreateNetworkPolicyRequest request = + CreateNetworkPolicyRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setNetworkPolicy(networkPolicy) + .setNetworkPolicyId(networkPolicyId) + .build(); + return createNetworkPolicyAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new network policy in a given VMware Engine network of a project and location + * (region). A new network policy cannot be created if another network policy already exists in + * the same scope. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   NetworkPolicy networkPolicy = NetworkPolicy.newBuilder().build();
+   *   String networkPolicyId = "networkPolicyId-727262661";
+   *   NetworkPolicy response =
+   *       vmwareEngineClient.createNetworkPolicyAsync(parent, networkPolicy, networkPolicyId).get();
+   * }
+   * }
+ * + * @param parent Required. The resource name of the location (region) to create the new network + * policy in. Resource names are schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. For example: + * `projects/my-project/locations/us-central1` + * @param networkPolicy Required. The network policy configuration to use in the request. + * @param networkPolicyId Required. The user-provided identifier of the network policy to be + * created. This identifier must be unique within parent + * `projects/{my-project}/locations/{us-central1}/networkPolicies` and becomes the final token + * in the name URI. The identifier must meet the following requirements: + *
    + *
  • Only contains 1-63 alphanumeric characters and hyphens + *
  • Begins with an alphabetical character + *
  • Ends with a non-hyphen character + *
  • Not formatted as a UUID + *
  • Complies with [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034) (section 3.5) + *
+ * + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createNetworkPolicyAsync( + String parent, NetworkPolicy networkPolicy, String networkPolicyId) { + CreateNetworkPolicyRequest request = + CreateNetworkPolicyRequest.newBuilder() + .setParent(parent) + .setNetworkPolicy(networkPolicy) + .setNetworkPolicyId(networkPolicyId) + .build(); + return createNetworkPolicyAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new network policy in a given VMware Engine network of a project and location + * (region). A new network policy cannot be created if another network policy already exists in + * the same scope. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   CreateNetworkPolicyRequest request =
+   *       CreateNetworkPolicyRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setNetworkPolicyId("networkPolicyId-727262661")
+   *           .setNetworkPolicy(NetworkPolicy.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   NetworkPolicy response = vmwareEngineClient.createNetworkPolicyAsync(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 createNetworkPolicyAsync( + CreateNetworkPolicyRequest request) { + return createNetworkPolicyOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new network policy in a given VMware Engine network of a project and location + * (region). A new network policy cannot be created if another network policy already exists in + * the same scope. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   CreateNetworkPolicyRequest request =
+   *       CreateNetworkPolicyRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setNetworkPolicyId("networkPolicyId-727262661")
+   *           .setNetworkPolicy(NetworkPolicy.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   OperationFuture future =
+   *       vmwareEngineClient.createNetworkPolicyOperationCallable().futureCall(request);
+   *   // Do something.
+   *   NetworkPolicy response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + createNetworkPolicyOperationCallable() { + return stub.createNetworkPolicyOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new network policy in a given VMware Engine network of a project and location + * (region). A new network policy cannot be created if another network policy already exists in + * the same scope. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   CreateNetworkPolicyRequest request =
+   *       CreateNetworkPolicyRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setNetworkPolicyId("networkPolicyId-727262661")
+   *           .setNetworkPolicy(NetworkPolicy.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   ApiFuture future =
+   *       vmwareEngineClient.createNetworkPolicyCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable createNetworkPolicyCallable() { + return stub.createNetworkPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Modifies a `NetworkPolicy` resource. Only the following fields can be updated: + * `internet_access`, `external_ip`, `edge_services_cidr`. Only fields specified in `updateMask` + * are applied. When updating a network policy, the external IP network service can only be + * disabled if there are no external IP addresses present in the scope of the policy. Also, a + * `NetworkService` cannot be updated when `NetworkService.state` is set to `RECONCILING`. + * + *

During operation processing, the resource is temporarily in the `ACTIVE` state before the + * operation fully completes. For that period of time, you can't update the resource. Use the + * operation status to determine when the processing fully completes. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   NetworkPolicy networkPolicy = NetworkPolicy.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   NetworkPolicy response =
+   *       vmwareEngineClient.updateNetworkPolicyAsync(networkPolicy, updateMask).get();
+   * }
+   * }
+ * + * @param networkPolicy Required. Network policy description. + * @param updateMask Required. Field mask is used to specify the fields to be overwritten in the + * `NetworkPolicy` resource by the update. The fields specified in the `update_mask` are + * relative to the resource, not the full request. A field will be overwritten if it is in the + * mask. If the user does not provide a mask then all fields will be overwritten. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture updateNetworkPolicyAsync( + NetworkPolicy networkPolicy, FieldMask updateMask) { + UpdateNetworkPolicyRequest request = + UpdateNetworkPolicyRequest.newBuilder() + .setNetworkPolicy(networkPolicy) + .setUpdateMask(updateMask) + .build(); + return updateNetworkPolicyAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Modifies a `NetworkPolicy` resource. Only the following fields can be updated: + * `internet_access`, `external_ip`, `edge_services_cidr`. Only fields specified in `updateMask` + * are applied. When updating a network policy, the external IP network service can only be + * disabled if there are no external IP addresses present in the scope of the policy. Also, a + * `NetworkService` cannot be updated when `NetworkService.state` is set to `RECONCILING`. + * + *

During operation processing, the resource is temporarily in the `ACTIVE` state before the + * operation fully completes. For that period of time, you can't update the resource. Use the + * operation status to determine when the processing fully completes. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   UpdateNetworkPolicyRequest request =
+   *       UpdateNetworkPolicyRequest.newBuilder()
+   *           .setNetworkPolicy(NetworkPolicy.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   NetworkPolicy response = vmwareEngineClient.updateNetworkPolicyAsync(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 updateNetworkPolicyAsync( + UpdateNetworkPolicyRequest request) { + return updateNetworkPolicyOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Modifies a `NetworkPolicy` resource. Only the following fields can be updated: + * `internet_access`, `external_ip`, `edge_services_cidr`. Only fields specified in `updateMask` + * are applied. When updating a network policy, the external IP network service can only be + * disabled if there are no external IP addresses present in the scope of the policy. Also, a + * `NetworkService` cannot be updated when `NetworkService.state` is set to `RECONCILING`. + * + *

During operation processing, the resource is temporarily in the `ACTIVE` state before the + * operation fully completes. For that period of time, you can't update the resource. Use the + * operation status to determine when the processing fully completes. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   UpdateNetworkPolicyRequest request =
+   *       UpdateNetworkPolicyRequest.newBuilder()
+   *           .setNetworkPolicy(NetworkPolicy.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   OperationFuture future =
+   *       vmwareEngineClient.updateNetworkPolicyOperationCallable().futureCall(request);
+   *   // Do something.
+   *   NetworkPolicy response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + updateNetworkPolicyOperationCallable() { + return stub.updateNetworkPolicyOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Modifies a `NetworkPolicy` resource. Only the following fields can be updated: + * `internet_access`, `external_ip`, `edge_services_cidr`. Only fields specified in `updateMask` + * are applied. When updating a network policy, the external IP network service can only be + * disabled if there are no external IP addresses present in the scope of the policy. Also, a + * `NetworkService` cannot be updated when `NetworkService.state` is set to `RECONCILING`. + * + *

During operation processing, the resource is temporarily in the `ACTIVE` state before the + * operation fully completes. For that period of time, you can't update the resource. Use the + * operation status to determine when the processing fully completes. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   UpdateNetworkPolicyRequest request =
+   *       UpdateNetworkPolicyRequest.newBuilder()
+   *           .setNetworkPolicy(NetworkPolicy.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   ApiFuture future =
+   *       vmwareEngineClient.updateNetworkPolicyCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable updateNetworkPolicyCallable() { + return stub.updateNetworkPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a `NetworkPolicy` resource. A network policy cannot be deleted when + * `NetworkService.state` is set to `RECONCILING` for either its external IP or internet access + * service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   NetworkPolicyName name = NetworkPolicyName.of("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]");
+   *   vmwareEngineClient.deleteNetworkPolicyAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The resource name of the network policy to delete. Resource names are + * schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. For example: + * `projects/my-project/locations/us-central1/networkPolicies/my-network-policy` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteNetworkPolicyAsync( + NetworkPolicyName name) { + DeleteNetworkPolicyRequest request = + DeleteNetworkPolicyRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return deleteNetworkPolicyAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a `NetworkPolicy` resource. A network policy cannot be deleted when + * `NetworkService.state` is set to `RECONCILING` for either its external IP or internet access + * service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   String name = NetworkPolicyName.of("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]").toString();
+   *   vmwareEngineClient.deleteNetworkPolicyAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The resource name of the network policy to delete. Resource names are + * schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. For example: + * `projects/my-project/locations/us-central1/networkPolicies/my-network-policy` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteNetworkPolicyAsync(String name) { + DeleteNetworkPolicyRequest request = + DeleteNetworkPolicyRequest.newBuilder().setName(name).build(); + return deleteNetworkPolicyAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a `NetworkPolicy` resource. A network policy cannot be deleted when + * `NetworkService.state` is set to `RECONCILING` for either its external IP or internet access + * service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   DeleteNetworkPolicyRequest request =
+   *       DeleteNetworkPolicyRequest.newBuilder()
+   *           .setName(
+   *               NetworkPolicyName.of("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]").toString())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   vmwareEngineClient.deleteNetworkPolicyAsync(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 deleteNetworkPolicyAsync( + DeleteNetworkPolicyRequest request) { + return deleteNetworkPolicyOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a `NetworkPolicy` resource. A network policy cannot be deleted when + * `NetworkService.state` is set to `RECONCILING` for either its external IP or internet access + * service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   DeleteNetworkPolicyRequest request =
+   *       DeleteNetworkPolicyRequest.newBuilder()
+   *           .setName(
+   *               NetworkPolicyName.of("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]").toString())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   OperationFuture future =
+   *       vmwareEngineClient.deleteNetworkPolicyOperationCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final OperationCallable + deleteNetworkPolicyOperationCallable() { + return stub.deleteNetworkPolicyOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a `NetworkPolicy` resource. A network policy cannot be deleted when + * `NetworkService.state` is set to `RECONCILING` for either its external IP or internet access + * service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   DeleteNetworkPolicyRequest request =
+   *       DeleteNetworkPolicyRequest.newBuilder()
+   *           .setName(
+   *               NetworkPolicyName.of("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]").toString())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   ApiFuture future =
+   *       vmwareEngineClient.deleteNetworkPolicyCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable deleteNetworkPolicyCallable() { + return stub.deleteNetworkPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new VMware Engine network that can be used by a private cloud. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   VmwareEngineNetwork vmwareEngineNetwork = VmwareEngineNetwork.newBuilder().build();
+   *   String vmwareEngineNetworkId = "vmwareEngineNetworkId532532083";
+   *   VmwareEngineNetwork response =
+   *       vmwareEngineClient
+   *           .createVmwareEngineNetworkAsync(parent, vmwareEngineNetwork, vmwareEngineNetworkId)
+   *           .get();
+   * }
+   * }
+ * + * @param parent Required. The resource name of the location to create the new VMware Engine + * network in. A VMware Engine network of type `LEGACY` is a regional resource, and a VMware + * Engine network of type `STANDARD` is a global resource. Resource names are schemeless URIs + * that follow the conventions in https://cloud.google.com/apis/design/resource_names. For + * example: `projects/my-project/locations/global` + * @param vmwareEngineNetwork Required. The initial description of the new VMware Engine network. + * @param vmwareEngineNetworkId Required. The user-provided identifier of the new VMware Engine + * network. This identifier must be unique among VMware Engine network resources within the + * parent and becomes the final token in the name URI. The identifier must meet the following + * requirements: + *
    + *
  • For networks of type LEGACY, adheres to the format: `{region-id}-default`. Replace + * `{region-id}` with the region where you want to create the VMware Engine network. For + * example, "us-west1-default". + *
  • Only contains 1-63 alphanumeric characters and hyphens + *
  • Begins with an alphabetical character + *
  • Ends with a non-hyphen character + *
  • Not formatted as a UUID + *
  • Complies with [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034) (section 3.5) + *
+ * + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + createVmwareEngineNetworkAsync( + LocationName parent, + VmwareEngineNetwork vmwareEngineNetwork, + String vmwareEngineNetworkId) { + CreateVmwareEngineNetworkRequest request = + CreateVmwareEngineNetworkRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setVmwareEngineNetwork(vmwareEngineNetwork) + .setVmwareEngineNetworkId(vmwareEngineNetworkId) + .build(); + return createVmwareEngineNetworkAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new VMware Engine network that can be used by a private cloud. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   VmwareEngineNetwork vmwareEngineNetwork = VmwareEngineNetwork.newBuilder().build();
+   *   String vmwareEngineNetworkId = "vmwareEngineNetworkId532532083";
+   *   VmwareEngineNetwork response =
+   *       vmwareEngineClient
+   *           .createVmwareEngineNetworkAsync(parent, vmwareEngineNetwork, vmwareEngineNetworkId)
+   *           .get();
+   * }
+   * }
+ * + * @param parent Required. The resource name of the location to create the new VMware Engine + * network in. A VMware Engine network of type `LEGACY` is a regional resource, and a VMware + * Engine network of type `STANDARD` is a global resource. Resource names are schemeless URIs + * that follow the conventions in https://cloud.google.com/apis/design/resource_names. For + * example: `projects/my-project/locations/global` + * @param vmwareEngineNetwork Required. The initial description of the new VMware Engine network. + * @param vmwareEngineNetworkId Required. The user-provided identifier of the new VMware Engine + * network. This identifier must be unique among VMware Engine network resources within the + * parent and becomes the final token in the name URI. The identifier must meet the following + * requirements: + *
    + *
  • For networks of type LEGACY, adheres to the format: `{region-id}-default`. Replace + * `{region-id}` with the region where you want to create the VMware Engine network. For + * example, "us-west1-default". + *
  • Only contains 1-63 alphanumeric characters and hyphens + *
  • Begins with an alphabetical character + *
  • Ends with a non-hyphen character + *
  • Not formatted as a UUID + *
  • Complies with [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034) (section 3.5) + *
+ * + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + createVmwareEngineNetworkAsync( + String parent, VmwareEngineNetwork vmwareEngineNetwork, String vmwareEngineNetworkId) { + CreateVmwareEngineNetworkRequest request = + CreateVmwareEngineNetworkRequest.newBuilder() + .setParent(parent) + .setVmwareEngineNetwork(vmwareEngineNetwork) + .setVmwareEngineNetworkId(vmwareEngineNetworkId) + .build(); + return createVmwareEngineNetworkAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new VMware Engine network that can be used by a private cloud. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   CreateVmwareEngineNetworkRequest request =
+   *       CreateVmwareEngineNetworkRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setVmwareEngineNetworkId("vmwareEngineNetworkId532532083")
+   *           .setVmwareEngineNetwork(VmwareEngineNetwork.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   VmwareEngineNetwork response =
+   *       vmwareEngineClient.createVmwareEngineNetworkAsync(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 + createVmwareEngineNetworkAsync(CreateVmwareEngineNetworkRequest request) { + return createVmwareEngineNetworkOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new VMware Engine network that can be used by a private cloud. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   CreateVmwareEngineNetworkRequest request =
+   *       CreateVmwareEngineNetworkRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setVmwareEngineNetworkId("vmwareEngineNetworkId532532083")
+   *           .setVmwareEngineNetwork(VmwareEngineNetwork.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   OperationFuture future =
+   *       vmwareEngineClient.createVmwareEngineNetworkOperationCallable().futureCall(request);
+   *   // Do something.
+   *   VmwareEngineNetwork response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + CreateVmwareEngineNetworkRequest, VmwareEngineNetwork, OperationMetadata> + createVmwareEngineNetworkOperationCallable() { + return stub.createVmwareEngineNetworkOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new VMware Engine network that can be used by a private cloud. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   CreateVmwareEngineNetworkRequest request =
+   *       CreateVmwareEngineNetworkRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setVmwareEngineNetworkId("vmwareEngineNetworkId532532083")
+   *           .setVmwareEngineNetwork(VmwareEngineNetwork.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   ApiFuture future =
+   *       vmwareEngineClient.createVmwareEngineNetworkCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + createVmwareEngineNetworkCallable() { + return stub.createVmwareEngineNetworkCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Modifies a VMware Engine network resource. Only the following fields can be updated: + * `description`. Only fields specified in `updateMask` are applied. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   VmwareEngineNetwork vmwareEngineNetwork = VmwareEngineNetwork.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   VmwareEngineNetwork response =
+   *       vmwareEngineClient.updateVmwareEngineNetworkAsync(vmwareEngineNetwork, updateMask).get();
+   * }
+   * }
+ * + * @param vmwareEngineNetwork Required. VMware Engine network description. + * @param updateMask Required. Field mask is used to specify the fields to be overwritten in the + * VMware Engine network resource by the update. The fields specified in the `update_mask` are + * relative to the resource, not the full request. A field will be overwritten if it is in the + * mask. If the user does not provide a mask then all fields will be overwritten. Only the + * following fields can be updated: `description`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + updateVmwareEngineNetworkAsync( + VmwareEngineNetwork vmwareEngineNetwork, FieldMask updateMask) { + UpdateVmwareEngineNetworkRequest request = + UpdateVmwareEngineNetworkRequest.newBuilder() + .setVmwareEngineNetwork(vmwareEngineNetwork) + .setUpdateMask(updateMask) + .build(); + return updateVmwareEngineNetworkAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Modifies a VMware Engine network resource. Only the following fields can be updated: + * `description`. Only fields specified in `updateMask` are applied. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   UpdateVmwareEngineNetworkRequest request =
+   *       UpdateVmwareEngineNetworkRequest.newBuilder()
+   *           .setVmwareEngineNetwork(VmwareEngineNetwork.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   VmwareEngineNetwork response =
+   *       vmwareEngineClient.updateVmwareEngineNetworkAsync(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 + updateVmwareEngineNetworkAsync(UpdateVmwareEngineNetworkRequest request) { + return updateVmwareEngineNetworkOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Modifies a VMware Engine network resource. Only the following fields can be updated: + * `description`. Only fields specified in `updateMask` are applied. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   UpdateVmwareEngineNetworkRequest request =
+   *       UpdateVmwareEngineNetworkRequest.newBuilder()
+   *           .setVmwareEngineNetwork(VmwareEngineNetwork.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   OperationFuture future =
+   *       vmwareEngineClient.updateVmwareEngineNetworkOperationCallable().futureCall(request);
+   *   // Do something.
+   *   VmwareEngineNetwork response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + UpdateVmwareEngineNetworkRequest, VmwareEngineNetwork, OperationMetadata> + updateVmwareEngineNetworkOperationCallable() { + return stub.updateVmwareEngineNetworkOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Modifies a VMware Engine network resource. Only the following fields can be updated: + * `description`. Only fields specified in `updateMask` are applied. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   UpdateVmwareEngineNetworkRequest request =
+   *       UpdateVmwareEngineNetworkRequest.newBuilder()
+   *           .setVmwareEngineNetwork(VmwareEngineNetwork.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   ApiFuture future =
+   *       vmwareEngineClient.updateVmwareEngineNetworkCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + updateVmwareEngineNetworkCallable() { + return stub.updateVmwareEngineNetworkCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a `VmwareEngineNetwork` resource. You can only delete a VMware Engine network after all + * resources that refer to it are deleted. For example, a private cloud, a network peering, and a + * network policy can all refer to the same VMware Engine network. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   VmwareEngineNetworkName name =
+   *       VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]");
+   *   vmwareEngineClient.deleteVmwareEngineNetworkAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The resource name of the VMware Engine network to be deleted. Resource + * names are schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. For example: + * `projects/my-project/locations/global/vmwareEngineNetworks/my-network` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteVmwareEngineNetworkAsync( + VmwareEngineNetworkName name) { + DeleteVmwareEngineNetworkRequest request = + DeleteVmwareEngineNetworkRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return deleteVmwareEngineNetworkAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a `VmwareEngineNetwork` resource. You can only delete a VMware Engine network after all + * resources that refer to it are deleted. For example, a private cloud, a network peering, and a + * network policy can all refer to the same VMware Engine network. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   String name =
+   *       VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]")
+   *           .toString();
+   *   vmwareEngineClient.deleteVmwareEngineNetworkAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The resource name of the VMware Engine network to be deleted. Resource + * names are schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. For example: + * `projects/my-project/locations/global/vmwareEngineNetworks/my-network` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteVmwareEngineNetworkAsync( + String name) { + DeleteVmwareEngineNetworkRequest request = + DeleteVmwareEngineNetworkRequest.newBuilder().setName(name).build(); + return deleteVmwareEngineNetworkAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a `VmwareEngineNetwork` resource. You can only delete a VMware Engine network after all + * resources that refer to it are deleted. For example, a private cloud, a network peering, and a + * network policy can all refer to the same VMware Engine network. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   DeleteVmwareEngineNetworkRequest request =
+   *       DeleteVmwareEngineNetworkRequest.newBuilder()
+   *           .setName(
+   *               VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]")
+   *                   .toString())
+   *           .setRequestId("requestId693933066")
+   *           .setEtag("etag3123477")
+   *           .build();
+   *   vmwareEngineClient.deleteVmwareEngineNetworkAsync(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 deleteVmwareEngineNetworkAsync( + DeleteVmwareEngineNetworkRequest request) { + return deleteVmwareEngineNetworkOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a `VmwareEngineNetwork` resource. You can only delete a VMware Engine network after all + * resources that refer to it are deleted. For example, a private cloud, a network peering, and a + * network policy can all refer to the same VMware Engine network. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   DeleteVmwareEngineNetworkRequest request =
+   *       DeleteVmwareEngineNetworkRequest.newBuilder()
+   *           .setName(
+   *               VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]")
+   *                   .toString())
+   *           .setRequestId("requestId693933066")
+   *           .setEtag("etag3123477")
+   *           .build();
+   *   OperationFuture future =
+   *       vmwareEngineClient.deleteVmwareEngineNetworkOperationCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final OperationCallable + deleteVmwareEngineNetworkOperationCallable() { + return stub.deleteVmwareEngineNetworkOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a `VmwareEngineNetwork` resource. You can only delete a VMware Engine network after all + * resources that refer to it are deleted. For example, a private cloud, a network peering, and a + * network policy can all refer to the same VMware Engine network. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   DeleteVmwareEngineNetworkRequest request =
+   *       DeleteVmwareEngineNetworkRequest.newBuilder()
+   *           .setName(
+   *               VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]")
+   *                   .toString())
+   *           .setRequestId("requestId693933066")
+   *           .setEtag("etag3123477")
+   *           .build();
+   *   ApiFuture future =
+   *       vmwareEngineClient.deleteVmwareEngineNetworkCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + deleteVmwareEngineNetworkCallable() { + return stub.deleteVmwareEngineNetworkCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves a `VmwareEngineNetwork` resource by its resource name. The resource contains details + * of the VMware Engine network, such as its VMware Engine network type, peered networks in a + * service project, and state (for example, `CREATING`, `ACTIVE`, `DELETING`). + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   VmwareEngineNetworkName name =
+   *       VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]");
+   *   VmwareEngineNetwork response = vmwareEngineClient.getVmwareEngineNetwork(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the VMware Engine network to retrieve. Resource + * names are schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. For example: + * `projects/my-project/locations/global/vmwareEngineNetworks/my-network` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final VmwareEngineNetwork getVmwareEngineNetwork(VmwareEngineNetworkName name) { + GetVmwareEngineNetworkRequest request = + GetVmwareEngineNetworkRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getVmwareEngineNetwork(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves a `VmwareEngineNetwork` resource by its resource name. The resource contains details + * of the VMware Engine network, such as its VMware Engine network type, peered networks in a + * service project, and state (for example, `CREATING`, `ACTIVE`, `DELETING`). + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   String name =
+   *       VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]")
+   *           .toString();
+   *   VmwareEngineNetwork response = vmwareEngineClient.getVmwareEngineNetwork(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the VMware Engine network to retrieve. Resource + * names are schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. For example: + * `projects/my-project/locations/global/vmwareEngineNetworks/my-network` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final VmwareEngineNetwork getVmwareEngineNetwork(String name) { + GetVmwareEngineNetworkRequest request = + GetVmwareEngineNetworkRequest.newBuilder().setName(name).build(); + return getVmwareEngineNetwork(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves a `VmwareEngineNetwork` resource by its resource name. The resource contains details + * of the VMware Engine network, such as its VMware Engine network type, peered networks in a + * service project, and state (for example, `CREATING`, `ACTIVE`, `DELETING`). + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   GetVmwareEngineNetworkRequest request =
+   *       GetVmwareEngineNetworkRequest.newBuilder()
+   *           .setName(
+   *               VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]")
+   *                   .toString())
+   *           .build();
+   *   VmwareEngineNetwork response = vmwareEngineClient.getVmwareEngineNetwork(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 VmwareEngineNetwork getVmwareEngineNetwork(GetVmwareEngineNetworkRequest request) { + return getVmwareEngineNetworkCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves a `VmwareEngineNetwork` resource by its resource name. The resource contains details + * of the VMware Engine network, such as its VMware Engine network type, peered networks in a + * service project, and state (for example, `CREATING`, `ACTIVE`, `DELETING`). + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   GetVmwareEngineNetworkRequest request =
+   *       GetVmwareEngineNetworkRequest.newBuilder()
+   *           .setName(
+   *               VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       vmwareEngineClient.getVmwareEngineNetworkCallable().futureCall(request);
+   *   // Do something.
+   *   VmwareEngineNetwork response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + getVmwareEngineNetworkCallable() { + return stub.getVmwareEngineNetworkCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists `VmwareEngineNetwork` resources in a given project and location. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   for (VmwareEngineNetwork element :
+   *       vmwareEngineClient.listVmwareEngineNetworks(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The resource name of the location to query for VMware Engine networks. + * Resource names are schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. For example: + * `projects/my-project/locations/global` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListVmwareEngineNetworksPagedResponse listVmwareEngineNetworks(LocationName parent) { + ListVmwareEngineNetworksRequest request = + ListVmwareEngineNetworksRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listVmwareEngineNetworks(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists `VmwareEngineNetwork` resources in a given project and location. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   for (VmwareEngineNetwork element :
+   *       vmwareEngineClient.listVmwareEngineNetworks(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The resource name of the location to query for VMware Engine networks. + * Resource names are schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. For example: + * `projects/my-project/locations/global` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListVmwareEngineNetworksPagedResponse listVmwareEngineNetworks(String parent) { + ListVmwareEngineNetworksRequest request = + ListVmwareEngineNetworksRequest.newBuilder().setParent(parent).build(); + return listVmwareEngineNetworks(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists `VmwareEngineNetwork` resources in a given project and location. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   ListVmwareEngineNetworksRequest request =
+   *       ListVmwareEngineNetworksRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   for (VmwareEngineNetwork element :
+   *       vmwareEngineClient.listVmwareEngineNetworks(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 ListVmwareEngineNetworksPagedResponse listVmwareEngineNetworks( + ListVmwareEngineNetworksRequest request) { + return listVmwareEngineNetworksPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists `VmwareEngineNetwork` resources in a given project and location. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   ListVmwareEngineNetworksRequest request =
+   *       ListVmwareEngineNetworksRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   ApiFuture future =
+   *       vmwareEngineClient.listVmwareEngineNetworksPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (VmwareEngineNetwork element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listVmwareEngineNetworksPagedCallable() { + return stub.listVmwareEngineNetworksPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists `VmwareEngineNetwork` resources in a given project and location. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   ListVmwareEngineNetworksRequest request =
+   *       ListVmwareEngineNetworksRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   while (true) {
+   *     ListVmwareEngineNetworksResponse response =
+   *         vmwareEngineClient.listVmwareEngineNetworksCallable().call(request);
+   *     for (VmwareEngineNetwork element : response.getVmwareEngineNetworksList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listVmwareEngineNetworksCallable() { + return stub.listVmwareEngineNetworksCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (Location element : vmwareEngineClient.listLocations(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 ListLocationsPagedResponse listLocations(ListLocationsRequest request) { + return listLocationsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       vmwareEngineClient.listLocationsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Location element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listLocationsPagedCallable() { + return stub.listLocationsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListLocationsResponse response = vmwareEngineClient.listLocationsCallable().call(request);
+   *     for (Location element : response.getLocationsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listLocationsCallable() { + return stub.listLocationsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   Location response = vmwareEngineClient.getLocation(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 Location getLocation(GetLocationRequest request) { + return getLocationCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   ApiFuture future = vmwareEngineClient.getLocationCallable().futureCall(request);
+   *   // Do something.
+   *   Location response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getLocationCallable() { + return stub.getLocationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the access control policy on the specified resource. Replacesany existing policy. + * + *

Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   SetIamPolicyRequest request =
+   *       SetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               ClusterName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[CLUSTER]")
+   *                   .toString())
+   *           .setPolicy(Policy.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   Policy response = vmwareEngineClient.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(SetIamPolicyRequest request) { + return setIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the access control policy on the specified resource. Replacesany existing policy. + * + *

Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   SetIamPolicyRequest request =
+   *       SetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               ClusterName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[CLUSTER]")
+   *                   .toString())
+   *           .setPolicy(Policy.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future = vmwareEngineClient.setIamPolicyCallable().futureCall(request);
+   *   // Do something.
+   *   Policy response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable setIamPolicyCallable() { + return stub.setIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the access control policy for a resource. Returns an empty policyif the resource exists + * and does not have a policy set. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   GetIamPolicyRequest request =
+   *       GetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               ClusterName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[CLUSTER]")
+   *                   .toString())
+   *           .setOptions(GetPolicyOptions.newBuilder().build())
+   *           .build();
+   *   Policy response = vmwareEngineClient.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(GetIamPolicyRequest request) { + return getIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the access control policy for a resource. Returns an empty policyif the resource exists + * and does not have a policy set. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   GetIamPolicyRequest request =
+   *       GetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               ClusterName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[CLUSTER]")
+   *                   .toString())
+   *           .setOptions(GetPolicyOptions.newBuilder().build())
+   *           .build();
+   *   ApiFuture future = vmwareEngineClient.getIamPolicyCallable().futureCall(request);
+   *   // Do something.
+   *   Policy response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getIamPolicyCallable() { + return stub.getIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns permissions that a caller has on the specified resource. If theresource does not exist, + * this will return an empty set ofpermissions, not a `NOT_FOUND` error. + * + *

Note: This operation is designed to be used for buildingpermission-aware UIs and + * command-line tools, not for authorizationchecking. This operation may "fail open" without + * warning. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   TestIamPermissionsRequest request =
+   *       TestIamPermissionsRequest.newBuilder()
+   *           .setResource(
+   *               ClusterName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[CLUSTER]")
+   *                   .toString())
+   *           .addAllPermissions(new ArrayList())
+   *           .build();
+   *   TestIamPermissionsResponse response = vmwareEngineClient.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 TestIamPermissionsResponse testIamPermissions(TestIamPermissionsRequest request) { + return testIamPermissionsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns permissions that a caller has on the specified resource. If theresource does not exist, + * this will return an empty set ofpermissions, not a `NOT_FOUND` error. + * + *

Note: This operation is designed to be used for buildingpermission-aware UIs and + * command-line tools, not for authorizationchecking. This operation may "fail open" without + * warning. + * + *

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 (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+   *   TestIamPermissionsRequest request =
+   *       TestIamPermissionsRequest.newBuilder()
+   *           .setResource(
+   *               ClusterName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[CLUSTER]")
+   *                   .toString())
+   *           .addAllPermissions(new ArrayList())
+   *           .build();
+   *   ApiFuture future =
+   *       vmwareEngineClient.testIamPermissionsCallable().futureCall(request);
+   *   // Do something.
+   *   TestIamPermissionsResponse 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 ListPrivateCloudsPagedResponse + extends AbstractPagedListResponse< + ListPrivateCloudsRequest, + ListPrivateCloudsResponse, + PrivateCloud, + ListPrivateCloudsPage, + ListPrivateCloudsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListPrivateCloudsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListPrivateCloudsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListPrivateCloudsPagedResponse(ListPrivateCloudsPage page) { + super(page, ListPrivateCloudsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListPrivateCloudsPage + extends AbstractPage< + ListPrivateCloudsRequest, + ListPrivateCloudsResponse, + PrivateCloud, + ListPrivateCloudsPage> { + + private ListPrivateCloudsPage( + PageContext context, + ListPrivateCloudsResponse response) { + super(context, response); + } + + private static ListPrivateCloudsPage createEmptyPage() { + return new ListPrivateCloudsPage(null, null); + } + + @Override + protected ListPrivateCloudsPage createPage( + PageContext context, + ListPrivateCloudsResponse response) { + return new ListPrivateCloudsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListPrivateCloudsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListPrivateCloudsRequest, + ListPrivateCloudsResponse, + PrivateCloud, + ListPrivateCloudsPage, + ListPrivateCloudsFixedSizeCollection> { + + private ListPrivateCloudsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListPrivateCloudsFixedSizeCollection createEmptyCollection() { + return new ListPrivateCloudsFixedSizeCollection(null, 0); + } + + @Override + protected ListPrivateCloudsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListPrivateCloudsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListClustersPagedResponse + extends AbstractPagedListResponse< + ListClustersRequest, + ListClustersResponse, + Cluster, + ListClustersPage, + ListClustersFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListClustersPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListClustersPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListClustersPagedResponse(ListClustersPage page) { + super(page, ListClustersFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListClustersPage + extends AbstractPage { + + private ListClustersPage( + PageContext context, + ListClustersResponse response) { + super(context, response); + } + + private static ListClustersPage createEmptyPage() { + return new ListClustersPage(null, null); + } + + @Override + protected ListClustersPage createPage( + PageContext context, + ListClustersResponse response) { + return new ListClustersPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListClustersFixedSizeCollection + extends AbstractFixedSizeCollection< + ListClustersRequest, + ListClustersResponse, + Cluster, + ListClustersPage, + ListClustersFixedSizeCollection> { + + private ListClustersFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListClustersFixedSizeCollection createEmptyCollection() { + return new ListClustersFixedSizeCollection(null, 0); + } + + @Override + protected ListClustersFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListClustersFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListSubnetsPagedResponse + extends AbstractPagedListResponse< + ListSubnetsRequest, + ListSubnetsResponse, + Subnet, + ListSubnetsPage, + ListSubnetsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListSubnetsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, input -> new ListSubnetsPagedResponse(input), MoreExecutors.directExecutor()); + } + + private ListSubnetsPagedResponse(ListSubnetsPage page) { + super(page, ListSubnetsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListSubnetsPage + extends AbstractPage { + + private ListSubnetsPage( + PageContext context, + ListSubnetsResponse response) { + super(context, response); + } + + private static ListSubnetsPage createEmptyPage() { + return new ListSubnetsPage(null, null); + } + + @Override + protected ListSubnetsPage createPage( + PageContext context, + ListSubnetsResponse response) { + return new ListSubnetsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListSubnetsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListSubnetsRequest, + ListSubnetsResponse, + Subnet, + ListSubnetsPage, + ListSubnetsFixedSizeCollection> { + + private ListSubnetsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListSubnetsFixedSizeCollection createEmptyCollection() { + return new ListSubnetsFixedSizeCollection(null, 0); + } + + @Override + protected ListSubnetsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListSubnetsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListNodeTypesPagedResponse + extends AbstractPagedListResponse< + ListNodeTypesRequest, + ListNodeTypesResponse, + NodeType, + ListNodeTypesPage, + ListNodeTypesFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListNodeTypesPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListNodeTypesPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListNodeTypesPagedResponse(ListNodeTypesPage page) { + super(page, ListNodeTypesFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListNodeTypesPage + extends AbstractPage< + ListNodeTypesRequest, ListNodeTypesResponse, NodeType, ListNodeTypesPage> { + + private ListNodeTypesPage( + PageContext context, + ListNodeTypesResponse response) { + super(context, response); + } + + private static ListNodeTypesPage createEmptyPage() { + return new ListNodeTypesPage(null, null); + } + + @Override + protected ListNodeTypesPage createPage( + PageContext context, + ListNodeTypesResponse response) { + return new ListNodeTypesPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListNodeTypesFixedSizeCollection + extends AbstractFixedSizeCollection< + ListNodeTypesRequest, + ListNodeTypesResponse, + NodeType, + ListNodeTypesPage, + ListNodeTypesFixedSizeCollection> { + + private ListNodeTypesFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListNodeTypesFixedSizeCollection createEmptyCollection() { + return new ListNodeTypesFixedSizeCollection(null, 0); + } + + @Override + protected ListNodeTypesFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListNodeTypesFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListHcxActivationKeysPagedResponse + extends AbstractPagedListResponse< + ListHcxActivationKeysRequest, + ListHcxActivationKeysResponse, + HcxActivationKey, + ListHcxActivationKeysPage, + ListHcxActivationKeysFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListHcxActivationKeysPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListHcxActivationKeysPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListHcxActivationKeysPagedResponse(ListHcxActivationKeysPage page) { + super(page, ListHcxActivationKeysFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListHcxActivationKeysPage + extends AbstractPage< + ListHcxActivationKeysRequest, + ListHcxActivationKeysResponse, + HcxActivationKey, + ListHcxActivationKeysPage> { + + private ListHcxActivationKeysPage( + PageContext + context, + ListHcxActivationKeysResponse response) { + super(context, response); + } + + private static ListHcxActivationKeysPage createEmptyPage() { + return new ListHcxActivationKeysPage(null, null); + } + + @Override + protected ListHcxActivationKeysPage createPage( + PageContext + context, + ListHcxActivationKeysResponse response) { + return new ListHcxActivationKeysPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListHcxActivationKeysFixedSizeCollection + extends AbstractFixedSizeCollection< + ListHcxActivationKeysRequest, + ListHcxActivationKeysResponse, + HcxActivationKey, + ListHcxActivationKeysPage, + ListHcxActivationKeysFixedSizeCollection> { + + private ListHcxActivationKeysFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListHcxActivationKeysFixedSizeCollection createEmptyCollection() { + return new ListHcxActivationKeysFixedSizeCollection(null, 0); + } + + @Override + protected ListHcxActivationKeysFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListHcxActivationKeysFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListNetworkPoliciesPagedResponse + extends AbstractPagedListResponse< + ListNetworkPoliciesRequest, + ListNetworkPoliciesResponse, + NetworkPolicy, + ListNetworkPoliciesPage, + ListNetworkPoliciesFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListNetworkPoliciesPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListNetworkPoliciesPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListNetworkPoliciesPagedResponse(ListNetworkPoliciesPage page) { + super(page, ListNetworkPoliciesFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListNetworkPoliciesPage + extends AbstractPage< + ListNetworkPoliciesRequest, + ListNetworkPoliciesResponse, + NetworkPolicy, + ListNetworkPoliciesPage> { + + private ListNetworkPoliciesPage( + PageContext context, + ListNetworkPoliciesResponse response) { + super(context, response); + } + + private static ListNetworkPoliciesPage createEmptyPage() { + return new ListNetworkPoliciesPage(null, null); + } + + @Override + protected ListNetworkPoliciesPage createPage( + PageContext context, + ListNetworkPoliciesResponse response) { + return new ListNetworkPoliciesPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListNetworkPoliciesFixedSizeCollection + extends AbstractFixedSizeCollection< + ListNetworkPoliciesRequest, + ListNetworkPoliciesResponse, + NetworkPolicy, + ListNetworkPoliciesPage, + ListNetworkPoliciesFixedSizeCollection> { + + private ListNetworkPoliciesFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListNetworkPoliciesFixedSizeCollection createEmptyCollection() { + return new ListNetworkPoliciesFixedSizeCollection(null, 0); + } + + @Override + protected ListNetworkPoliciesFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListNetworkPoliciesFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListVmwareEngineNetworksPagedResponse + extends AbstractPagedListResponse< + ListVmwareEngineNetworksRequest, + ListVmwareEngineNetworksResponse, + VmwareEngineNetwork, + ListVmwareEngineNetworksPage, + ListVmwareEngineNetworksFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext< + ListVmwareEngineNetworksRequest, + ListVmwareEngineNetworksResponse, + VmwareEngineNetwork> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListVmwareEngineNetworksPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListVmwareEngineNetworksPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListVmwareEngineNetworksPagedResponse(ListVmwareEngineNetworksPage page) { + super(page, ListVmwareEngineNetworksFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListVmwareEngineNetworksPage + extends AbstractPage< + ListVmwareEngineNetworksRequest, + ListVmwareEngineNetworksResponse, + VmwareEngineNetwork, + ListVmwareEngineNetworksPage> { + + private ListVmwareEngineNetworksPage( + PageContext< + ListVmwareEngineNetworksRequest, + ListVmwareEngineNetworksResponse, + VmwareEngineNetwork> + context, + ListVmwareEngineNetworksResponse response) { + super(context, response); + } + + private static ListVmwareEngineNetworksPage createEmptyPage() { + return new ListVmwareEngineNetworksPage(null, null); + } + + @Override + protected ListVmwareEngineNetworksPage createPage( + PageContext< + ListVmwareEngineNetworksRequest, + ListVmwareEngineNetworksResponse, + VmwareEngineNetwork> + context, + ListVmwareEngineNetworksResponse response) { + return new ListVmwareEngineNetworksPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext< + ListVmwareEngineNetworksRequest, + ListVmwareEngineNetworksResponse, + VmwareEngineNetwork> + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListVmwareEngineNetworksFixedSizeCollection + extends AbstractFixedSizeCollection< + ListVmwareEngineNetworksRequest, + ListVmwareEngineNetworksResponse, + VmwareEngineNetwork, + ListVmwareEngineNetworksPage, + ListVmwareEngineNetworksFixedSizeCollection> { + + private ListVmwareEngineNetworksFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListVmwareEngineNetworksFixedSizeCollection createEmptyCollection() { + return new ListVmwareEngineNetworksFixedSizeCollection(null, 0); + } + + @Override + protected ListVmwareEngineNetworksFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListVmwareEngineNetworksFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListLocationsPagedResponse + extends AbstractPagedListResponse< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListLocationsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListLocationsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListLocationsPagedResponse(ListLocationsPage page) { + super(page, ListLocationsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListLocationsPage + extends AbstractPage< + ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { + + private ListLocationsPage( + PageContext context, + ListLocationsResponse response) { + super(context, response); + } + + private static ListLocationsPage createEmptyPage() { + return new ListLocationsPage(null, null); + } + + @Override + protected ListLocationsPage createPage( + PageContext context, + ListLocationsResponse response) { + return new ListLocationsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListLocationsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListLocationsFixedSizeCollection createEmptyCollection() { + return new ListLocationsFixedSizeCollection(null, 0); + } + + @Override + protected ListLocationsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListLocationsFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/java-vmwareengine/google-cloud-vmwareengine/src/main/java/com/google/cloud/vmwareengine/v1/VmwareEngineSettings.java b/java-vmwareengine/google-cloud-vmwareengine/src/main/java/com/google/cloud/vmwareengine/v1/VmwareEngineSettings.java new file mode 100644 index 000000000000..4bcae3902154 --- /dev/null +++ b/java-vmwareengine/google-cloud-vmwareengine/src/main/java/com/google/cloud/vmwareengine/v1/VmwareEngineSettings.java @@ -0,0 +1,846 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.vmwareengine.v1; + +import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListClustersPagedResponse; +import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListHcxActivationKeysPagedResponse; +import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListLocationsPagedResponse; +import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListNetworkPoliciesPagedResponse; +import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListNodeTypesPagedResponse; +import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListPrivateCloudsPagedResponse; +import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListSubnetsPagedResponse; +import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListVmwareEngineNetworksPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.vmwareengine.v1.stub.VmwareEngineStubSettings; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link VmwareEngineClient}. + * + *

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

    + *
  • The default service address (vmwareengine.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 total timeout of getPrivateCloud to 30 seconds: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * VmwareEngineSettings.Builder vmwareEngineSettingsBuilder = VmwareEngineSettings.newBuilder();
+ * vmwareEngineSettingsBuilder
+ *     .getPrivateCloudSettings()
+ *     .setRetrySettings(
+ *         vmwareEngineSettingsBuilder.getPrivateCloudSettings().getRetrySettings().toBuilder()
+ *             .setTotalTimeout(Duration.ofSeconds(30))
+ *             .build());
+ * VmwareEngineSettings vmwareEngineSettings = vmwareEngineSettingsBuilder.build();
+ * }
+ */ +@Generated("by gapic-generator-java") +public class VmwareEngineSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to listPrivateClouds. */ + public PagedCallSettings< + ListPrivateCloudsRequest, ListPrivateCloudsResponse, ListPrivateCloudsPagedResponse> + listPrivateCloudsSettings() { + return ((VmwareEngineStubSettings) getStubSettings()).listPrivateCloudsSettings(); + } + + /** Returns the object with the settings used for calls to getPrivateCloud. */ + public UnaryCallSettings getPrivateCloudSettings() { + return ((VmwareEngineStubSettings) getStubSettings()).getPrivateCloudSettings(); + } + + /** Returns the object with the settings used for calls to createPrivateCloud. */ + public UnaryCallSettings createPrivateCloudSettings() { + return ((VmwareEngineStubSettings) getStubSettings()).createPrivateCloudSettings(); + } + + /** Returns the object with the settings used for calls to createPrivateCloud. */ + public OperationCallSettings + createPrivateCloudOperationSettings() { + return ((VmwareEngineStubSettings) getStubSettings()).createPrivateCloudOperationSettings(); + } + + /** Returns the object with the settings used for calls to updatePrivateCloud. */ + public UnaryCallSettings updatePrivateCloudSettings() { + return ((VmwareEngineStubSettings) getStubSettings()).updatePrivateCloudSettings(); + } + + /** Returns the object with the settings used for calls to updatePrivateCloud. */ + public OperationCallSettings + updatePrivateCloudOperationSettings() { + return ((VmwareEngineStubSettings) getStubSettings()).updatePrivateCloudOperationSettings(); + } + + /** Returns the object with the settings used for calls to deletePrivateCloud. */ + public UnaryCallSettings deletePrivateCloudSettings() { + return ((VmwareEngineStubSettings) getStubSettings()).deletePrivateCloudSettings(); + } + + /** Returns the object with the settings used for calls to deletePrivateCloud. */ + public OperationCallSettings + deletePrivateCloudOperationSettings() { + return ((VmwareEngineStubSettings) getStubSettings()).deletePrivateCloudOperationSettings(); + } + + /** Returns the object with the settings used for calls to undeletePrivateCloud. */ + public UnaryCallSettings undeletePrivateCloudSettings() { + return ((VmwareEngineStubSettings) getStubSettings()).undeletePrivateCloudSettings(); + } + + /** Returns the object with the settings used for calls to undeletePrivateCloud. */ + public OperationCallSettings + undeletePrivateCloudOperationSettings() { + return ((VmwareEngineStubSettings) getStubSettings()).undeletePrivateCloudOperationSettings(); + } + + /** Returns the object with the settings used for calls to listClusters. */ + public PagedCallSettings + listClustersSettings() { + return ((VmwareEngineStubSettings) getStubSettings()).listClustersSettings(); + } + + /** Returns the object with the settings used for calls to getCluster. */ + public UnaryCallSettings getClusterSettings() { + return ((VmwareEngineStubSettings) getStubSettings()).getClusterSettings(); + } + + /** Returns the object with the settings used for calls to createCluster. */ + public UnaryCallSettings createClusterSettings() { + return ((VmwareEngineStubSettings) getStubSettings()).createClusterSettings(); + } + + /** Returns the object with the settings used for calls to createCluster. */ + public OperationCallSettings + createClusterOperationSettings() { + return ((VmwareEngineStubSettings) getStubSettings()).createClusterOperationSettings(); + } + + /** Returns the object with the settings used for calls to updateCluster. */ + public UnaryCallSettings updateClusterSettings() { + return ((VmwareEngineStubSettings) getStubSettings()).updateClusterSettings(); + } + + /** Returns the object with the settings used for calls to updateCluster. */ + public OperationCallSettings + updateClusterOperationSettings() { + return ((VmwareEngineStubSettings) getStubSettings()).updateClusterOperationSettings(); + } + + /** Returns the object with the settings used for calls to deleteCluster. */ + public UnaryCallSettings deleteClusterSettings() { + return ((VmwareEngineStubSettings) getStubSettings()).deleteClusterSettings(); + } + + /** Returns the object with the settings used for calls to deleteCluster. */ + public OperationCallSettings + deleteClusterOperationSettings() { + return ((VmwareEngineStubSettings) getStubSettings()).deleteClusterOperationSettings(); + } + + /** Returns the object with the settings used for calls to listSubnets. */ + public PagedCallSettings + listSubnetsSettings() { + return ((VmwareEngineStubSettings) getStubSettings()).listSubnetsSettings(); + } + + /** Returns the object with the settings used for calls to listNodeTypes. */ + public PagedCallSettings + listNodeTypesSettings() { + return ((VmwareEngineStubSettings) getStubSettings()).listNodeTypesSettings(); + } + + /** Returns the object with the settings used for calls to getNodeType. */ + public UnaryCallSettings getNodeTypeSettings() { + return ((VmwareEngineStubSettings) getStubSettings()).getNodeTypeSettings(); + } + + /** Returns the object with the settings used for calls to showNsxCredentials. */ + public UnaryCallSettings showNsxCredentialsSettings() { + return ((VmwareEngineStubSettings) getStubSettings()).showNsxCredentialsSettings(); + } + + /** Returns the object with the settings used for calls to showVcenterCredentials. */ + public UnaryCallSettings + showVcenterCredentialsSettings() { + return ((VmwareEngineStubSettings) getStubSettings()).showVcenterCredentialsSettings(); + } + + /** Returns the object with the settings used for calls to resetNsxCredentials. */ + public UnaryCallSettings resetNsxCredentialsSettings() { + return ((VmwareEngineStubSettings) getStubSettings()).resetNsxCredentialsSettings(); + } + + /** Returns the object with the settings used for calls to resetNsxCredentials. */ + public OperationCallSettings + resetNsxCredentialsOperationSettings() { + return ((VmwareEngineStubSettings) getStubSettings()).resetNsxCredentialsOperationSettings(); + } + + /** Returns the object with the settings used for calls to resetVcenterCredentials. */ + public UnaryCallSettings + resetVcenterCredentialsSettings() { + return ((VmwareEngineStubSettings) getStubSettings()).resetVcenterCredentialsSettings(); + } + + /** Returns the object with the settings used for calls to resetVcenterCredentials. */ + public OperationCallSettings + resetVcenterCredentialsOperationSettings() { + return ((VmwareEngineStubSettings) getStubSettings()) + .resetVcenterCredentialsOperationSettings(); + } + + /** Returns the object with the settings used for calls to createHcxActivationKey. */ + public UnaryCallSettings + createHcxActivationKeySettings() { + return ((VmwareEngineStubSettings) getStubSettings()).createHcxActivationKeySettings(); + } + + /** Returns the object with the settings used for calls to createHcxActivationKey. */ + public OperationCallSettings + createHcxActivationKeyOperationSettings() { + return ((VmwareEngineStubSettings) getStubSettings()).createHcxActivationKeyOperationSettings(); + } + + /** Returns the object with the settings used for calls to listHcxActivationKeys. */ + public PagedCallSettings< + ListHcxActivationKeysRequest, + ListHcxActivationKeysResponse, + ListHcxActivationKeysPagedResponse> + listHcxActivationKeysSettings() { + return ((VmwareEngineStubSettings) getStubSettings()).listHcxActivationKeysSettings(); + } + + /** Returns the object with the settings used for calls to getHcxActivationKey. */ + public UnaryCallSettings + getHcxActivationKeySettings() { + return ((VmwareEngineStubSettings) getStubSettings()).getHcxActivationKeySettings(); + } + + /** Returns the object with the settings used for calls to getNetworkPolicy. */ + public UnaryCallSettings getNetworkPolicySettings() { + return ((VmwareEngineStubSettings) getStubSettings()).getNetworkPolicySettings(); + } + + /** Returns the object with the settings used for calls to listNetworkPolicies. */ + public PagedCallSettings< + ListNetworkPoliciesRequest, ListNetworkPoliciesResponse, ListNetworkPoliciesPagedResponse> + listNetworkPoliciesSettings() { + return ((VmwareEngineStubSettings) getStubSettings()).listNetworkPoliciesSettings(); + } + + /** Returns the object with the settings used for calls to createNetworkPolicy. */ + public UnaryCallSettings createNetworkPolicySettings() { + return ((VmwareEngineStubSettings) getStubSettings()).createNetworkPolicySettings(); + } + + /** Returns the object with the settings used for calls to createNetworkPolicy. */ + public OperationCallSettings + createNetworkPolicyOperationSettings() { + return ((VmwareEngineStubSettings) getStubSettings()).createNetworkPolicyOperationSettings(); + } + + /** Returns the object with the settings used for calls to updateNetworkPolicy. */ + public UnaryCallSettings updateNetworkPolicySettings() { + return ((VmwareEngineStubSettings) getStubSettings()).updateNetworkPolicySettings(); + } + + /** Returns the object with the settings used for calls to updateNetworkPolicy. */ + public OperationCallSettings + updateNetworkPolicyOperationSettings() { + return ((VmwareEngineStubSettings) getStubSettings()).updateNetworkPolicyOperationSettings(); + } + + /** Returns the object with the settings used for calls to deleteNetworkPolicy. */ + public UnaryCallSettings deleteNetworkPolicySettings() { + return ((VmwareEngineStubSettings) getStubSettings()).deleteNetworkPolicySettings(); + } + + /** Returns the object with the settings used for calls to deleteNetworkPolicy. */ + public OperationCallSettings + deleteNetworkPolicyOperationSettings() { + return ((VmwareEngineStubSettings) getStubSettings()).deleteNetworkPolicyOperationSettings(); + } + + /** Returns the object with the settings used for calls to createVmwareEngineNetwork. */ + public UnaryCallSettings + createVmwareEngineNetworkSettings() { + return ((VmwareEngineStubSettings) getStubSettings()).createVmwareEngineNetworkSettings(); + } + + /** Returns the object with the settings used for calls to createVmwareEngineNetwork. */ + public OperationCallSettings< + CreateVmwareEngineNetworkRequest, VmwareEngineNetwork, OperationMetadata> + createVmwareEngineNetworkOperationSettings() { + return ((VmwareEngineStubSettings) getStubSettings()) + .createVmwareEngineNetworkOperationSettings(); + } + + /** Returns the object with the settings used for calls to updateVmwareEngineNetwork. */ + public UnaryCallSettings + updateVmwareEngineNetworkSettings() { + return ((VmwareEngineStubSettings) getStubSettings()).updateVmwareEngineNetworkSettings(); + } + + /** Returns the object with the settings used for calls to updateVmwareEngineNetwork. */ + public OperationCallSettings< + UpdateVmwareEngineNetworkRequest, VmwareEngineNetwork, OperationMetadata> + updateVmwareEngineNetworkOperationSettings() { + return ((VmwareEngineStubSettings) getStubSettings()) + .updateVmwareEngineNetworkOperationSettings(); + } + + /** Returns the object with the settings used for calls to deleteVmwareEngineNetwork. */ + public UnaryCallSettings + deleteVmwareEngineNetworkSettings() { + return ((VmwareEngineStubSettings) getStubSettings()).deleteVmwareEngineNetworkSettings(); + } + + /** Returns the object with the settings used for calls to deleteVmwareEngineNetwork. */ + public OperationCallSettings + deleteVmwareEngineNetworkOperationSettings() { + return ((VmwareEngineStubSettings) getStubSettings()) + .deleteVmwareEngineNetworkOperationSettings(); + } + + /** Returns the object with the settings used for calls to getVmwareEngineNetwork. */ + public UnaryCallSettings + getVmwareEngineNetworkSettings() { + return ((VmwareEngineStubSettings) getStubSettings()).getVmwareEngineNetworkSettings(); + } + + /** Returns the object with the settings used for calls to listVmwareEngineNetworks. */ + public PagedCallSettings< + ListVmwareEngineNetworksRequest, + ListVmwareEngineNetworksResponse, + ListVmwareEngineNetworksPagedResponse> + listVmwareEngineNetworksSettings() { + return ((VmwareEngineStubSettings) getStubSettings()).listVmwareEngineNetworksSettings(); + } + + /** Returns the object with the settings used for calls to listLocations. */ + public PagedCallSettings + listLocationsSettings() { + return ((VmwareEngineStubSettings) getStubSettings()).listLocationsSettings(); + } + + /** Returns the object with the settings used for calls to getLocation. */ + public UnaryCallSettings getLocationSettings() { + return ((VmwareEngineStubSettings) getStubSettings()).getLocationSettings(); + } + + /** Returns the object with the settings used for calls to setIamPolicy. */ + public UnaryCallSettings setIamPolicySettings() { + return ((VmwareEngineStubSettings) getStubSettings()).setIamPolicySettings(); + } + + /** Returns the object with the settings used for calls to getIamPolicy. */ + public UnaryCallSettings getIamPolicySettings() { + return ((VmwareEngineStubSettings) getStubSettings()).getIamPolicySettings(); + } + + /** Returns the object with the settings used for calls to testIamPermissions. */ + public UnaryCallSettings + testIamPermissionsSettings() { + return ((VmwareEngineStubSettings) getStubSettings()).testIamPermissionsSettings(); + } + + public static final VmwareEngineSettings create(VmwareEngineStubSettings stub) + throws IOException { + return new VmwareEngineSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return VmwareEngineStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return VmwareEngineStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return VmwareEngineStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return VmwareEngineStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return VmwareEngineStubSettings.defaultGrpcTransportProviderBuilder(); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return VmwareEngineStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return VmwareEngineStubSettings.defaultTransportChannelProvider(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return VmwareEngineStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + @BetaApi + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected VmwareEngineSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for VmwareEngineSettings. */ + public static class Builder extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(VmwareEngineStubSettings.newBuilder(clientContext)); + } + + protected Builder(VmwareEngineSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(VmwareEngineStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(VmwareEngineStubSettings.newBuilder()); + } + + @BetaApi + private static Builder createHttpJsonDefault() { + return new Builder(VmwareEngineStubSettings.newHttpJsonBuilder()); + } + + public VmwareEngineStubSettings.Builder getStubSettingsBuilder() { + return ((VmwareEngineStubSettings.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 listPrivateClouds. */ + public PagedCallSettings.Builder< + ListPrivateCloudsRequest, ListPrivateCloudsResponse, ListPrivateCloudsPagedResponse> + listPrivateCloudsSettings() { + return getStubSettingsBuilder().listPrivateCloudsSettings(); + } + + /** Returns the builder for the settings used for calls to getPrivateCloud. */ + public UnaryCallSettings.Builder + getPrivateCloudSettings() { + return getStubSettingsBuilder().getPrivateCloudSettings(); + } + + /** Returns the builder for the settings used for calls to createPrivateCloud. */ + public UnaryCallSettings.Builder + createPrivateCloudSettings() { + return getStubSettingsBuilder().createPrivateCloudSettings(); + } + + /** Returns the builder for the settings used for calls to createPrivateCloud. */ + public OperationCallSettings.Builder + createPrivateCloudOperationSettings() { + return getStubSettingsBuilder().createPrivateCloudOperationSettings(); + } + + /** Returns the builder for the settings used for calls to updatePrivateCloud. */ + public UnaryCallSettings.Builder + updatePrivateCloudSettings() { + return getStubSettingsBuilder().updatePrivateCloudSettings(); + } + + /** Returns the builder for the settings used for calls to updatePrivateCloud. */ + public OperationCallSettings.Builder + updatePrivateCloudOperationSettings() { + return getStubSettingsBuilder().updatePrivateCloudOperationSettings(); + } + + /** Returns the builder for the settings used for calls to deletePrivateCloud. */ + public UnaryCallSettings.Builder + deletePrivateCloudSettings() { + return getStubSettingsBuilder().deletePrivateCloudSettings(); + } + + /** Returns the builder for the settings used for calls to deletePrivateCloud. */ + public OperationCallSettings.Builder + deletePrivateCloudOperationSettings() { + return getStubSettingsBuilder().deletePrivateCloudOperationSettings(); + } + + /** Returns the builder for the settings used for calls to undeletePrivateCloud. */ + public UnaryCallSettings.Builder + undeletePrivateCloudSettings() { + return getStubSettingsBuilder().undeletePrivateCloudSettings(); + } + + /** Returns the builder for the settings used for calls to undeletePrivateCloud. */ + public OperationCallSettings.Builder< + UndeletePrivateCloudRequest, PrivateCloud, OperationMetadata> + undeletePrivateCloudOperationSettings() { + return getStubSettingsBuilder().undeletePrivateCloudOperationSettings(); + } + + /** Returns the builder for the settings used for calls to listClusters. */ + public PagedCallSettings.Builder< + ListClustersRequest, ListClustersResponse, ListClustersPagedResponse> + listClustersSettings() { + return getStubSettingsBuilder().listClustersSettings(); + } + + /** Returns the builder for the settings used for calls to getCluster. */ + public UnaryCallSettings.Builder getClusterSettings() { + return getStubSettingsBuilder().getClusterSettings(); + } + + /** Returns the builder for the settings used for calls to createCluster. */ + public UnaryCallSettings.Builder createClusterSettings() { + return getStubSettingsBuilder().createClusterSettings(); + } + + /** Returns the builder for the settings used for calls to createCluster. */ + public OperationCallSettings.Builder + createClusterOperationSettings() { + return getStubSettingsBuilder().createClusterOperationSettings(); + } + + /** Returns the builder for the settings used for calls to updateCluster. */ + public UnaryCallSettings.Builder updateClusterSettings() { + return getStubSettingsBuilder().updateClusterSettings(); + } + + /** Returns the builder for the settings used for calls to updateCluster. */ + public OperationCallSettings.Builder + updateClusterOperationSettings() { + return getStubSettingsBuilder().updateClusterOperationSettings(); + } + + /** Returns the builder for the settings used for calls to deleteCluster. */ + public UnaryCallSettings.Builder deleteClusterSettings() { + return getStubSettingsBuilder().deleteClusterSettings(); + } + + /** Returns the builder for the settings used for calls to deleteCluster. */ + public OperationCallSettings.Builder + deleteClusterOperationSettings() { + return getStubSettingsBuilder().deleteClusterOperationSettings(); + } + + /** Returns the builder for the settings used for calls to listSubnets. */ + public PagedCallSettings.Builder< + ListSubnetsRequest, ListSubnetsResponse, ListSubnetsPagedResponse> + listSubnetsSettings() { + return getStubSettingsBuilder().listSubnetsSettings(); + } + + /** Returns the builder for the settings used for calls to listNodeTypes. */ + public PagedCallSettings.Builder< + ListNodeTypesRequest, ListNodeTypesResponse, ListNodeTypesPagedResponse> + listNodeTypesSettings() { + return getStubSettingsBuilder().listNodeTypesSettings(); + } + + /** Returns the builder for the settings used for calls to getNodeType. */ + public UnaryCallSettings.Builder getNodeTypeSettings() { + return getStubSettingsBuilder().getNodeTypeSettings(); + } + + /** Returns the builder for the settings used for calls to showNsxCredentials. */ + public UnaryCallSettings.Builder + showNsxCredentialsSettings() { + return getStubSettingsBuilder().showNsxCredentialsSettings(); + } + + /** Returns the builder for the settings used for calls to showVcenterCredentials. */ + public UnaryCallSettings.Builder + showVcenterCredentialsSettings() { + return getStubSettingsBuilder().showVcenterCredentialsSettings(); + } + + /** Returns the builder for the settings used for calls to resetNsxCredentials. */ + public UnaryCallSettings.Builder + resetNsxCredentialsSettings() { + return getStubSettingsBuilder().resetNsxCredentialsSettings(); + } + + /** Returns the builder for the settings used for calls to resetNsxCredentials. */ + public OperationCallSettings.Builder< + ResetNsxCredentialsRequest, PrivateCloud, OperationMetadata> + resetNsxCredentialsOperationSettings() { + return getStubSettingsBuilder().resetNsxCredentialsOperationSettings(); + } + + /** Returns the builder for the settings used for calls to resetVcenterCredentials. */ + public UnaryCallSettings.Builder + resetVcenterCredentialsSettings() { + return getStubSettingsBuilder().resetVcenterCredentialsSettings(); + } + + /** Returns the builder for the settings used for calls to resetVcenterCredentials. */ + public OperationCallSettings.Builder< + ResetVcenterCredentialsRequest, PrivateCloud, OperationMetadata> + resetVcenterCredentialsOperationSettings() { + return getStubSettingsBuilder().resetVcenterCredentialsOperationSettings(); + } + + /** Returns the builder for the settings used for calls to createHcxActivationKey. */ + public UnaryCallSettings.Builder + createHcxActivationKeySettings() { + return getStubSettingsBuilder().createHcxActivationKeySettings(); + } + + /** Returns the builder for the settings used for calls to createHcxActivationKey. */ + public OperationCallSettings.Builder< + CreateHcxActivationKeyRequest, HcxActivationKey, OperationMetadata> + createHcxActivationKeyOperationSettings() { + return getStubSettingsBuilder().createHcxActivationKeyOperationSettings(); + } + + /** Returns the builder for the settings used for calls to listHcxActivationKeys. */ + public PagedCallSettings.Builder< + ListHcxActivationKeysRequest, + ListHcxActivationKeysResponse, + ListHcxActivationKeysPagedResponse> + listHcxActivationKeysSettings() { + return getStubSettingsBuilder().listHcxActivationKeysSettings(); + } + + /** Returns the builder for the settings used for calls to getHcxActivationKey. */ + public UnaryCallSettings.Builder + getHcxActivationKeySettings() { + return getStubSettingsBuilder().getHcxActivationKeySettings(); + } + + /** Returns the builder for the settings used for calls to getNetworkPolicy. */ + public UnaryCallSettings.Builder + getNetworkPolicySettings() { + return getStubSettingsBuilder().getNetworkPolicySettings(); + } + + /** Returns the builder for the settings used for calls to listNetworkPolicies. */ + public PagedCallSettings.Builder< + ListNetworkPoliciesRequest, + ListNetworkPoliciesResponse, + ListNetworkPoliciesPagedResponse> + listNetworkPoliciesSettings() { + return getStubSettingsBuilder().listNetworkPoliciesSettings(); + } + + /** Returns the builder for the settings used for calls to createNetworkPolicy. */ + public UnaryCallSettings.Builder + createNetworkPolicySettings() { + return getStubSettingsBuilder().createNetworkPolicySettings(); + } + + /** Returns the builder for the settings used for calls to createNetworkPolicy. */ + public OperationCallSettings.Builder< + CreateNetworkPolicyRequest, NetworkPolicy, OperationMetadata> + createNetworkPolicyOperationSettings() { + return getStubSettingsBuilder().createNetworkPolicyOperationSettings(); + } + + /** Returns the builder for the settings used for calls to updateNetworkPolicy. */ + public UnaryCallSettings.Builder + updateNetworkPolicySettings() { + return getStubSettingsBuilder().updateNetworkPolicySettings(); + } + + /** Returns the builder for the settings used for calls to updateNetworkPolicy. */ + public OperationCallSettings.Builder< + UpdateNetworkPolicyRequest, NetworkPolicy, OperationMetadata> + updateNetworkPolicyOperationSettings() { + return getStubSettingsBuilder().updateNetworkPolicyOperationSettings(); + } + + /** Returns the builder for the settings used for calls to deleteNetworkPolicy. */ + public UnaryCallSettings.Builder + deleteNetworkPolicySettings() { + return getStubSettingsBuilder().deleteNetworkPolicySettings(); + } + + /** Returns the builder for the settings used for calls to deleteNetworkPolicy. */ + public OperationCallSettings.Builder + deleteNetworkPolicyOperationSettings() { + return getStubSettingsBuilder().deleteNetworkPolicyOperationSettings(); + } + + /** Returns the builder for the settings used for calls to createVmwareEngineNetwork. */ + public UnaryCallSettings.Builder + createVmwareEngineNetworkSettings() { + return getStubSettingsBuilder().createVmwareEngineNetworkSettings(); + } + + /** Returns the builder for the settings used for calls to createVmwareEngineNetwork. */ + public OperationCallSettings.Builder< + CreateVmwareEngineNetworkRequest, VmwareEngineNetwork, OperationMetadata> + createVmwareEngineNetworkOperationSettings() { + return getStubSettingsBuilder().createVmwareEngineNetworkOperationSettings(); + } + + /** Returns the builder for the settings used for calls to updateVmwareEngineNetwork. */ + public UnaryCallSettings.Builder + updateVmwareEngineNetworkSettings() { + return getStubSettingsBuilder().updateVmwareEngineNetworkSettings(); + } + + /** Returns the builder for the settings used for calls to updateVmwareEngineNetwork. */ + public OperationCallSettings.Builder< + UpdateVmwareEngineNetworkRequest, VmwareEngineNetwork, OperationMetadata> + updateVmwareEngineNetworkOperationSettings() { + return getStubSettingsBuilder().updateVmwareEngineNetworkOperationSettings(); + } + + /** Returns the builder for the settings used for calls to deleteVmwareEngineNetwork. */ + public UnaryCallSettings.Builder + deleteVmwareEngineNetworkSettings() { + return getStubSettingsBuilder().deleteVmwareEngineNetworkSettings(); + } + + /** Returns the builder for the settings used for calls to deleteVmwareEngineNetwork. */ + public OperationCallSettings.Builder + deleteVmwareEngineNetworkOperationSettings() { + return getStubSettingsBuilder().deleteVmwareEngineNetworkOperationSettings(); + } + + /** Returns the builder for the settings used for calls to getVmwareEngineNetwork. */ + public UnaryCallSettings.Builder + getVmwareEngineNetworkSettings() { + return getStubSettingsBuilder().getVmwareEngineNetworkSettings(); + } + + /** Returns the builder for the settings used for calls to listVmwareEngineNetworks. */ + public PagedCallSettings.Builder< + ListVmwareEngineNetworksRequest, + ListVmwareEngineNetworksResponse, + ListVmwareEngineNetworksPagedResponse> + listVmwareEngineNetworksSettings() { + return getStubSettingsBuilder().listVmwareEngineNetworksSettings(); + } + + /** Returns the builder for the settings used for calls to listLocations. */ + public PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings() { + return getStubSettingsBuilder().listLocationsSettings(); + } + + /** Returns the builder for the settings used for calls to getLocation. */ + public UnaryCallSettings.Builder getLocationSettings() { + return getStubSettingsBuilder().getLocationSettings(); + } + + /** 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 getIamPolicy. */ + public UnaryCallSettings.Builder getIamPolicySettings() { + return getStubSettingsBuilder().getIamPolicySettings(); + } + + /** Returns the builder for the settings used for calls to testIamPermissions. */ + public UnaryCallSettings.Builder + testIamPermissionsSettings() { + return getStubSettingsBuilder().testIamPermissionsSettings(); + } + + @Override + public VmwareEngineSettings build() throws IOException { + return new VmwareEngineSettings(this); + } + } +} diff --git a/java-vmwareengine/google-cloud-vmwareengine/src/main/java/com/google/cloud/vmwareengine/v1/gapic_metadata.json b/java-vmwareengine/google-cloud-vmwareengine/src/main/java/com/google/cloud/vmwareengine/v1/gapic_metadata.json new file mode 100644 index 000000000000..1db453fcc4a9 --- /dev/null +++ b/java-vmwareengine/google-cloud-vmwareengine/src/main/java/com/google/cloud/vmwareengine/v1/gapic_metadata.json @@ -0,0 +1,126 @@ +{ + "schema": "1.0", + "comment": "This file maps proto services/RPCs to the corresponding library clients/methods", + "language": "java", + "protoPackage": "google.cloud.vmwareengine.v1", + "libraryPackage": "com.google.cloud.vmwareengine.v1", + "services": { + "VmwareEngine": { + "clients": { + "grpc": { + "libraryClient": "VmwareEngineClient", + "rpcs": { + "CreateCluster": { + "methods": ["createClusterAsync", "createClusterAsync", "createClusterAsync", "createClusterOperationCallable", "createClusterCallable"] + }, + "CreateHcxActivationKey": { + "methods": ["createHcxActivationKeyAsync", "createHcxActivationKeyAsync", "createHcxActivationKeyAsync", "createHcxActivationKeyOperationCallable", "createHcxActivationKeyCallable"] + }, + "CreateNetworkPolicy": { + "methods": ["createNetworkPolicyAsync", "createNetworkPolicyAsync", "createNetworkPolicyAsync", "createNetworkPolicyOperationCallable", "createNetworkPolicyCallable"] + }, + "CreatePrivateCloud": { + "methods": ["createPrivateCloudAsync", "createPrivateCloudAsync", "createPrivateCloudAsync", "createPrivateCloudOperationCallable", "createPrivateCloudCallable"] + }, + "CreateVmwareEngineNetwork": { + "methods": ["createVmwareEngineNetworkAsync", "createVmwareEngineNetworkAsync", "createVmwareEngineNetworkAsync", "createVmwareEngineNetworkOperationCallable", "createVmwareEngineNetworkCallable"] + }, + "DeleteCluster": { + "methods": ["deleteClusterAsync", "deleteClusterAsync", "deleteClusterAsync", "deleteClusterOperationCallable", "deleteClusterCallable"] + }, + "DeleteNetworkPolicy": { + "methods": ["deleteNetworkPolicyAsync", "deleteNetworkPolicyAsync", "deleteNetworkPolicyAsync", "deleteNetworkPolicyOperationCallable", "deleteNetworkPolicyCallable"] + }, + "DeletePrivateCloud": { + "methods": ["deletePrivateCloudAsync", "deletePrivateCloudAsync", "deletePrivateCloudAsync", "deletePrivateCloudOperationCallable", "deletePrivateCloudCallable"] + }, + "DeleteVmwareEngineNetwork": { + "methods": ["deleteVmwareEngineNetworkAsync", "deleteVmwareEngineNetworkAsync", "deleteVmwareEngineNetworkAsync", "deleteVmwareEngineNetworkOperationCallable", "deleteVmwareEngineNetworkCallable"] + }, + "GetCluster": { + "methods": ["getCluster", "getCluster", "getCluster", "getClusterCallable"] + }, + "GetHcxActivationKey": { + "methods": ["getHcxActivationKey", "getHcxActivationKey", "getHcxActivationKey", "getHcxActivationKeyCallable"] + }, + "GetIamPolicy": { + "methods": ["getIamPolicy", "getIamPolicyCallable"] + }, + "GetLocation": { + "methods": ["getLocation", "getLocationCallable"] + }, + "GetNetworkPolicy": { + "methods": ["getNetworkPolicy", "getNetworkPolicy", "getNetworkPolicy", "getNetworkPolicyCallable"] + }, + "GetNodeType": { + "methods": ["getNodeType", "getNodeType", "getNodeType", "getNodeTypeCallable"] + }, + "GetPrivateCloud": { + "methods": ["getPrivateCloud", "getPrivateCloud", "getPrivateCloud", "getPrivateCloudCallable"] + }, + "GetVmwareEngineNetwork": { + "methods": ["getVmwareEngineNetwork", "getVmwareEngineNetwork", "getVmwareEngineNetwork", "getVmwareEngineNetworkCallable"] + }, + "ListClusters": { + "methods": ["listClusters", "listClusters", "listClusters", "listClustersPagedCallable", "listClustersCallable"] + }, + "ListHcxActivationKeys": { + "methods": ["listHcxActivationKeys", "listHcxActivationKeys", "listHcxActivationKeys", "listHcxActivationKeysPagedCallable", "listHcxActivationKeysCallable"] + }, + "ListLocations": { + "methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"] + }, + "ListNetworkPolicies": { + "methods": ["listNetworkPolicies", "listNetworkPolicies", "listNetworkPolicies", "listNetworkPoliciesPagedCallable", "listNetworkPoliciesCallable"] + }, + "ListNodeTypes": { + "methods": ["listNodeTypes", "listNodeTypes", "listNodeTypes", "listNodeTypesPagedCallable", "listNodeTypesCallable"] + }, + "ListPrivateClouds": { + "methods": ["listPrivateClouds", "listPrivateClouds", "listPrivateClouds", "listPrivateCloudsPagedCallable", "listPrivateCloudsCallable"] + }, + "ListSubnets": { + "methods": ["listSubnets", "listSubnets", "listSubnets", "listSubnetsPagedCallable", "listSubnetsCallable"] + }, + "ListVmwareEngineNetworks": { + "methods": ["listVmwareEngineNetworks", "listVmwareEngineNetworks", "listVmwareEngineNetworks", "listVmwareEngineNetworksPagedCallable", "listVmwareEngineNetworksCallable"] + }, + "ResetNsxCredentials": { + "methods": ["resetNsxCredentialsAsync", "resetNsxCredentialsAsync", "resetNsxCredentialsAsync", "resetNsxCredentialsOperationCallable", "resetNsxCredentialsCallable"] + }, + "ResetVcenterCredentials": { + "methods": ["resetVcenterCredentialsAsync", "resetVcenterCredentialsAsync", "resetVcenterCredentialsAsync", "resetVcenterCredentialsOperationCallable", "resetVcenterCredentialsCallable"] + }, + "SetIamPolicy": { + "methods": ["setIamPolicy", "setIamPolicyCallable"] + }, + "ShowNsxCredentials": { + "methods": ["showNsxCredentials", "showNsxCredentials", "showNsxCredentials", "showNsxCredentialsCallable"] + }, + "ShowVcenterCredentials": { + "methods": ["showVcenterCredentials", "showVcenterCredentials", "showVcenterCredentials", "showVcenterCredentialsCallable"] + }, + "TestIamPermissions": { + "methods": ["testIamPermissions", "testIamPermissionsCallable"] + }, + "UndeletePrivateCloud": { + "methods": ["undeletePrivateCloudAsync", "undeletePrivateCloudAsync", "undeletePrivateCloudAsync", "undeletePrivateCloudOperationCallable", "undeletePrivateCloudCallable"] + }, + "UpdateCluster": { + "methods": ["updateClusterAsync", "updateClusterAsync", "updateClusterOperationCallable", "updateClusterCallable"] + }, + "UpdateNetworkPolicy": { + "methods": ["updateNetworkPolicyAsync", "updateNetworkPolicyAsync", "updateNetworkPolicyOperationCallable", "updateNetworkPolicyCallable"] + }, + "UpdatePrivateCloud": { + "methods": ["updatePrivateCloudAsync", "updatePrivateCloudAsync", "updatePrivateCloudOperationCallable", "updatePrivateCloudCallable"] + }, + "UpdateVmwareEngineNetwork": { + "methods": ["updateVmwareEngineNetworkAsync", "updateVmwareEngineNetworkAsync", "updateVmwareEngineNetworkOperationCallable", "updateVmwareEngineNetworkCallable"] + } + } + } + } + } + } +} \ No newline at end of file diff --git a/java-vmwareengine/google-cloud-vmwareengine/src/main/java/com/google/cloud/vmwareengine/v1/package-info.java b/java-vmwareengine/google-cloud-vmwareengine/src/main/java/com/google/cloud/vmwareengine/v1/package-info.java new file mode 100644 index 000000000000..b46833daa592 --- /dev/null +++ b/java-vmwareengine/google-cloud-vmwareengine/src/main/java/com/google/cloud/vmwareengine/v1/package-info.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +/** + * A client to VMware Engine API + * + *

The interfaces provided are listed below, along with usage samples. + * + *

======================= VmwareEngineClient ======================= + * + *

Service Description: VMwareEngine manages VMware's private clusters in the Cloud. + * + *

Sample for VmwareEngineClient: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+ *   PrivateCloudName name = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]");
+ *   PrivateCloud response = vmwareEngineClient.getPrivateCloud(name);
+ * }
+ * }
+ */ +@Generated("by gapic-generator-java") +package com.google.cloud.vmwareengine.v1; + +import javax.annotation.Generated; diff --git a/java-vmwareengine/google-cloud-vmwareengine/src/main/java/com/google/cloud/vmwareengine/v1/stub/GrpcVmwareEngineCallableFactory.java b/java-vmwareengine/google-cloud-vmwareengine/src/main/java/com/google/cloud/vmwareengine/v1/stub/GrpcVmwareEngineCallableFactory.java new file mode 100644 index 000000000000..f73cf4c41871 --- /dev/null +++ b/java-vmwareengine/google-cloud-vmwareengine/src/main/java/com/google/cloud/vmwareengine/v1/stub/GrpcVmwareEngineCallableFactory.java @@ -0,0 +1,113 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.vmwareengine.v1.stub; + +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +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.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC callable factory implementation for the VmwareEngine service API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +public class GrpcVmwareEngineCallableFactory implements GrpcStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + GrpcCallSettings grpcCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + GrpcCallSettings grpcCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + GrpcCallSettings grpcCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBatchingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + GrpcCallSettings grpcCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + return GrpcCallableFactory.createOperationCallable( + grpcCallSettings, callSettings, clientContext, operationsStub); + } + + @Override + public + BidiStreamingCallable createBidiStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBidiStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + GrpcCallSettings grpcCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createServerStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ClientStreamingCallable createClientStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createClientStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } +} diff --git a/java-vmwareengine/google-cloud-vmwareengine/src/main/java/com/google/cloud/vmwareengine/v1/stub/GrpcVmwareEngineStub.java b/java-vmwareengine/google-cloud-vmwareengine/src/main/java/com/google/cloud/vmwareengine/v1/stub/GrpcVmwareEngineStub.java new file mode 100644 index 000000000000..c44a20b5da97 --- /dev/null +++ b/java-vmwareengine/google-cloud-vmwareengine/src/main/java/com/google/cloud/vmwareengine/v1/stub/GrpcVmwareEngineStub.java @@ -0,0 +1,1654 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.vmwareengine.v1.stub; + +import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListClustersPagedResponse; +import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListHcxActivationKeysPagedResponse; +import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListLocationsPagedResponse; +import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListNetworkPoliciesPagedResponse; +import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListNodeTypesPagedResponse; +import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListPrivateCloudsPagedResponse; +import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListSubnetsPagedResponse; +import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListVmwareEngineNetworksPagedResponse; + +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.vmwareengine.v1.Cluster; +import com.google.cloud.vmwareengine.v1.CreateClusterRequest; +import com.google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest; +import com.google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest; +import com.google.cloud.vmwareengine.v1.CreatePrivateCloudRequest; +import com.google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest; +import com.google.cloud.vmwareengine.v1.Credentials; +import com.google.cloud.vmwareengine.v1.DeleteClusterRequest; +import com.google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest; +import com.google.cloud.vmwareengine.v1.DeletePrivateCloudRequest; +import com.google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest; +import com.google.cloud.vmwareengine.v1.GetClusterRequest; +import com.google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest; +import com.google.cloud.vmwareengine.v1.GetNetworkPolicyRequest; +import com.google.cloud.vmwareengine.v1.GetNodeTypeRequest; +import com.google.cloud.vmwareengine.v1.GetPrivateCloudRequest; +import com.google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest; +import com.google.cloud.vmwareengine.v1.HcxActivationKey; +import com.google.cloud.vmwareengine.v1.ListClustersRequest; +import com.google.cloud.vmwareengine.v1.ListClustersResponse; +import com.google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest; +import com.google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse; +import com.google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest; +import com.google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse; +import com.google.cloud.vmwareengine.v1.ListNodeTypesRequest; +import com.google.cloud.vmwareengine.v1.ListNodeTypesResponse; +import com.google.cloud.vmwareengine.v1.ListPrivateCloudsRequest; +import com.google.cloud.vmwareengine.v1.ListPrivateCloudsResponse; +import com.google.cloud.vmwareengine.v1.ListSubnetsRequest; +import com.google.cloud.vmwareengine.v1.ListSubnetsResponse; +import com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest; +import com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse; +import com.google.cloud.vmwareengine.v1.NetworkPolicy; +import com.google.cloud.vmwareengine.v1.NodeType; +import com.google.cloud.vmwareengine.v1.OperationMetadata; +import com.google.cloud.vmwareengine.v1.PrivateCloud; +import com.google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest; +import com.google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest; +import com.google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest; +import com.google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest; +import com.google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest; +import com.google.cloud.vmwareengine.v1.UpdateClusterRequest; +import com.google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest; +import com.google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest; +import com.google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest; +import com.google.cloud.vmwareengine.v1.VmwareEngineNetwork; +import com.google.common.collect.ImmutableMap; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.GrpcOperationsStub; +import com.google.protobuf.Empty; +import io.grpc.MethodDescriptor; +import io.grpc.protobuf.ProtoUtils; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC stub implementation for the VmwareEngine service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public class GrpcVmwareEngineStub extends VmwareEngineStub { + private static final MethodDescriptor + listPrivateCloudsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/ListPrivateClouds") + .setRequestMarshaller( + ProtoUtils.marshaller(ListPrivateCloudsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListPrivateCloudsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getPrivateCloudMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/GetPrivateCloud") + .setRequestMarshaller( + ProtoUtils.marshaller(GetPrivateCloudRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(PrivateCloud.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + createPrivateCloudMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/CreatePrivateCloud") + .setRequestMarshaller( + ProtoUtils.marshaller(CreatePrivateCloudRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + updatePrivateCloudMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/UpdatePrivateCloud") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdatePrivateCloudRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + deletePrivateCloudMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/DeletePrivateCloud") + .setRequestMarshaller( + ProtoUtils.marshaller(DeletePrivateCloudRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + undeletePrivateCloudMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/UndeletePrivateCloud") + .setRequestMarshaller( + ProtoUtils.marshaller(UndeletePrivateCloudRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listClustersMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/ListClusters") + .setRequestMarshaller(ProtoUtils.marshaller(ListClustersRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListClustersResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor getClusterMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/GetCluster") + .setRequestMarshaller(ProtoUtils.marshaller(GetClusterRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Cluster.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + createClusterMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/CreateCluster") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateClusterRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + updateClusterMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/UpdateCluster") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateClusterRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + deleteClusterMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/DeleteCluster") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteClusterRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listSubnetsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/ListSubnets") + .setRequestMarshaller(ProtoUtils.marshaller(ListSubnetsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListSubnetsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listNodeTypesMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/ListNodeTypes") + .setRequestMarshaller( + ProtoUtils.marshaller(ListNodeTypesRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListNodeTypesResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor getNodeTypeMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/GetNodeType") + .setRequestMarshaller(ProtoUtils.marshaller(GetNodeTypeRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(NodeType.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + showNsxCredentialsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/ShowNsxCredentials") + .setRequestMarshaller( + ProtoUtils.marshaller(ShowNsxCredentialsRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Credentials.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + showVcenterCredentialsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/ShowVcenterCredentials") + .setRequestMarshaller( + ProtoUtils.marshaller(ShowVcenterCredentialsRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Credentials.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + resetNsxCredentialsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/ResetNsxCredentials") + .setRequestMarshaller( + ProtoUtils.marshaller(ResetNsxCredentialsRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + resetVcenterCredentialsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.vmwareengine.v1.VmwareEngine/ResetVcenterCredentials") + .setRequestMarshaller( + ProtoUtils.marshaller(ResetVcenterCredentialsRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + createHcxActivationKeyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/CreateHcxActivationKey") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateHcxActivationKeyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listHcxActivationKeysMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/ListHcxActivationKeys") + .setRequestMarshaller( + ProtoUtils.marshaller(ListHcxActivationKeysRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListHcxActivationKeysResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getHcxActivationKeyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/GetHcxActivationKey") + .setRequestMarshaller( + ProtoUtils.marshaller(GetHcxActivationKeyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(HcxActivationKey.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getNetworkPolicyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/GetNetworkPolicy") + .setRequestMarshaller( + ProtoUtils.marshaller(GetNetworkPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(NetworkPolicy.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listNetworkPoliciesMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/ListNetworkPolicies") + .setRequestMarshaller( + ProtoUtils.marshaller(ListNetworkPoliciesRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListNetworkPoliciesResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + createNetworkPolicyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/CreateNetworkPolicy") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateNetworkPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + updateNetworkPolicyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/UpdateNetworkPolicy") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateNetworkPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + deleteNetworkPolicyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/DeleteNetworkPolicy") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteNetworkPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + createVmwareEngineNetworkMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.vmwareengine.v1.VmwareEngine/CreateVmwareEngineNetwork") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateVmwareEngineNetworkRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + updateVmwareEngineNetworkMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.vmwareengine.v1.VmwareEngine/UpdateVmwareEngineNetwork") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateVmwareEngineNetworkRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + deleteVmwareEngineNetworkMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.vmwareengine.v1.VmwareEngine/DeleteVmwareEngineNetwork") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteVmwareEngineNetworkRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getVmwareEngineNetworkMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/GetVmwareEngineNetwork") + .setRequestMarshaller( + ProtoUtils.marshaller(GetVmwareEngineNetworkRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(VmwareEngineNetwork.getDefaultInstance())) + .build(); + + private static final MethodDescriptor< + ListVmwareEngineNetworksRequest, ListVmwareEngineNetworksResponse> + listVmwareEngineNetworksMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.vmwareengine.v1.VmwareEngine/ListVmwareEngineNetworks") + .setRequestMarshaller( + ProtoUtils.marshaller(ListVmwareEngineNetworksRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListVmwareEngineNetworksResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listLocationsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.location.Locations/ListLocations") + .setRequestMarshaller( + ProtoUtils.marshaller(ListLocationsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListLocationsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor getLocationMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.location.Locations/GetLocation") + .setRequestMarshaller(ProtoUtils.marshaller(GetLocationRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Location.getDefaultInstance())) + .build(); + + private static final MethodDescriptor setIamPolicyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.iam.v1.IAMPolicy/SetIamPolicy") + .setRequestMarshaller(ProtoUtils.marshaller(SetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance())) + .build(); + + private static final MethodDescriptor getIamPolicyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.iam.v1.IAMPolicy/GetIamPolicy") + .setRequestMarshaller(ProtoUtils.marshaller(GetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + testIamPermissionsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.iam.v1.IAMPolicy/TestIamPermissions") + .setRequestMarshaller( + ProtoUtils.marshaller(TestIamPermissionsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(TestIamPermissionsResponse.getDefaultInstance())) + .build(); + + private final UnaryCallable + listPrivateCloudsCallable; + private final UnaryCallable + listPrivateCloudsPagedCallable; + private final UnaryCallable getPrivateCloudCallable; + private final UnaryCallable createPrivateCloudCallable; + private final OperationCallable + createPrivateCloudOperationCallable; + private final UnaryCallable updatePrivateCloudCallable; + private final OperationCallable + updatePrivateCloudOperationCallable; + private final UnaryCallable deletePrivateCloudCallable; + private final OperationCallable + deletePrivateCloudOperationCallable; + private final UnaryCallable undeletePrivateCloudCallable; + private final OperationCallable + undeletePrivateCloudOperationCallable; + private final UnaryCallable listClustersCallable; + private final UnaryCallable + listClustersPagedCallable; + private final UnaryCallable getClusterCallable; + private final UnaryCallable createClusterCallable; + private final OperationCallable + createClusterOperationCallable; + private final UnaryCallable updateClusterCallable; + private final OperationCallable + updateClusterOperationCallable; + private final UnaryCallable deleteClusterCallable; + private final OperationCallable + deleteClusterOperationCallable; + private final UnaryCallable listSubnetsCallable; + private final UnaryCallable + listSubnetsPagedCallable; + private final UnaryCallable listNodeTypesCallable; + private final UnaryCallable + listNodeTypesPagedCallable; + private final UnaryCallable getNodeTypeCallable; + private final UnaryCallable showNsxCredentialsCallable; + private final UnaryCallable + showVcenterCredentialsCallable; + private final UnaryCallable resetNsxCredentialsCallable; + private final OperationCallable + resetNsxCredentialsOperationCallable; + private final UnaryCallable + resetVcenterCredentialsCallable; + private final OperationCallable + resetVcenterCredentialsOperationCallable; + private final UnaryCallable + createHcxActivationKeyCallable; + private final OperationCallable< + CreateHcxActivationKeyRequest, HcxActivationKey, OperationMetadata> + createHcxActivationKeyOperationCallable; + private final UnaryCallable + listHcxActivationKeysCallable; + private final UnaryCallable + listHcxActivationKeysPagedCallable; + private final UnaryCallable + getHcxActivationKeyCallable; + private final UnaryCallable getNetworkPolicyCallable; + private final UnaryCallable + listNetworkPoliciesCallable; + private final UnaryCallable + listNetworkPoliciesPagedCallable; + private final UnaryCallable createNetworkPolicyCallable; + private final OperationCallable + createNetworkPolicyOperationCallable; + private final UnaryCallable updateNetworkPolicyCallable; + private final OperationCallable + updateNetworkPolicyOperationCallable; + private final UnaryCallable deleteNetworkPolicyCallable; + private final OperationCallable + deleteNetworkPolicyOperationCallable; + private final UnaryCallable + createVmwareEngineNetworkCallable; + private final OperationCallable< + CreateVmwareEngineNetworkRequest, VmwareEngineNetwork, OperationMetadata> + createVmwareEngineNetworkOperationCallable; + private final UnaryCallable + updateVmwareEngineNetworkCallable; + private final OperationCallable< + UpdateVmwareEngineNetworkRequest, VmwareEngineNetwork, OperationMetadata> + updateVmwareEngineNetworkOperationCallable; + private final UnaryCallable + deleteVmwareEngineNetworkCallable; + private final OperationCallable + deleteVmwareEngineNetworkOperationCallable; + private final UnaryCallable + getVmwareEngineNetworkCallable; + private final UnaryCallable + listVmwareEngineNetworksCallable; + private final UnaryCallable< + ListVmwareEngineNetworksRequest, ListVmwareEngineNetworksPagedResponse> + listVmwareEngineNetworksPagedCallable; + private final UnaryCallable listLocationsCallable; + private final UnaryCallable + listLocationsPagedCallable; + private final UnaryCallable getLocationCallable; + private final UnaryCallable setIamPolicyCallable; + private final UnaryCallable getIamPolicyCallable; + private final UnaryCallable + testIamPermissionsCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcVmwareEngineStub create(VmwareEngineStubSettings settings) + throws IOException { + return new GrpcVmwareEngineStub(settings, ClientContext.create(settings)); + } + + public static final GrpcVmwareEngineStub create(ClientContext clientContext) throws IOException { + return new GrpcVmwareEngineStub(VmwareEngineStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcVmwareEngineStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcVmwareEngineStub( + VmwareEngineStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcVmwareEngineStub, 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 GrpcVmwareEngineStub(VmwareEngineStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new GrpcVmwareEngineCallableFactory()); + } + + /** + * Constructs an instance of GrpcVmwareEngineStub, 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 GrpcVmwareEngineStub( + VmwareEngineStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings + listPrivateCloudsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listPrivateCloudsMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings getPrivateCloudTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getPrivateCloudMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings createPrivateCloudTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createPrivateCloudMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings updatePrivateCloudTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updatePrivateCloudMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put( + "private_cloud.name", String.valueOf(request.getPrivateCloud().getName())); + return params.build(); + }) + .build(); + GrpcCallSettings deletePrivateCloudTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deletePrivateCloudMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings undeletePrivateCloudTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(undeletePrivateCloudMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings listClustersTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listClustersMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings getClusterTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getClusterMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings createClusterTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createClusterMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings updateClusterTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateClusterMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("cluster.name", String.valueOf(request.getCluster().getName())); + return params.build(); + }) + .build(); + GrpcCallSettings deleteClusterTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteClusterMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings listSubnetsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listSubnetsMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings listNodeTypesTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listNodeTypesMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings getNodeTypeTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getNodeTypeMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings showNsxCredentialsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(showNsxCredentialsMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("private_cloud", String.valueOf(request.getPrivateCloud())); + return params.build(); + }) + .build(); + GrpcCallSettings + showVcenterCredentialsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(showVcenterCredentialsMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("private_cloud", String.valueOf(request.getPrivateCloud())); + return params.build(); + }) + .build(); + GrpcCallSettings resetNsxCredentialsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(resetNsxCredentialsMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("private_cloud", String.valueOf(request.getPrivateCloud())); + return params.build(); + }) + .build(); + GrpcCallSettings + resetVcenterCredentialsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(resetVcenterCredentialsMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("private_cloud", String.valueOf(request.getPrivateCloud())); + return params.build(); + }) + .build(); + GrpcCallSettings + createHcxActivationKeyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createHcxActivationKeyMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings + listHcxActivationKeysTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(listHcxActivationKeysMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings + getHcxActivationKeyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getHcxActivationKeyMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings getNetworkPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getNetworkPolicyMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings + listNetworkPoliciesTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listNetworkPoliciesMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings createNetworkPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createNetworkPolicyMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings updateNetworkPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateNetworkPolicyMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put( + "network_policy.name", String.valueOf(request.getNetworkPolicy().getName())); + return params.build(); + }) + .build(); + GrpcCallSettings deleteNetworkPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteNetworkPolicyMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings + createVmwareEngineNetworkTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createVmwareEngineNetworkMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings + updateVmwareEngineNetworkTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateVmwareEngineNetworkMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put( + "vmware_engine_network.name", + String.valueOf(request.getVmwareEngineNetwork().getName())); + return params.build(); + }) + .build(); + GrpcCallSettings + deleteVmwareEngineNetworkTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteVmwareEngineNetworkMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings + getVmwareEngineNetworkTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getVmwareEngineNetworkMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings + listVmwareEngineNetworksTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(listVmwareEngineNetworksMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings listLocationsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listLocationsMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings getLocationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getLocationMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings setIamPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(setIamPolicyMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("resource", String.valueOf(request.getResource())); + return params.build(); + }) + .build(); + GrpcCallSettings getIamPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getIamPolicyMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("resource", String.valueOf(request.getResource())); + return params.build(); + }) + .build(); + GrpcCallSettings + testIamPermissionsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(testIamPermissionsMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("resource", String.valueOf(request.getResource())); + return params.build(); + }) + .build(); + + this.listPrivateCloudsCallable = + callableFactory.createUnaryCallable( + listPrivateCloudsTransportSettings, + settings.listPrivateCloudsSettings(), + clientContext); + this.listPrivateCloudsPagedCallable = + callableFactory.createPagedCallable( + listPrivateCloudsTransportSettings, + settings.listPrivateCloudsSettings(), + clientContext); + this.getPrivateCloudCallable = + callableFactory.createUnaryCallable( + getPrivateCloudTransportSettings, settings.getPrivateCloudSettings(), clientContext); + this.createPrivateCloudCallable = + callableFactory.createUnaryCallable( + createPrivateCloudTransportSettings, + settings.createPrivateCloudSettings(), + clientContext); + this.createPrivateCloudOperationCallable = + callableFactory.createOperationCallable( + createPrivateCloudTransportSettings, + settings.createPrivateCloudOperationSettings(), + clientContext, + operationsStub); + this.updatePrivateCloudCallable = + callableFactory.createUnaryCallable( + updatePrivateCloudTransportSettings, + settings.updatePrivateCloudSettings(), + clientContext); + this.updatePrivateCloudOperationCallable = + callableFactory.createOperationCallable( + updatePrivateCloudTransportSettings, + settings.updatePrivateCloudOperationSettings(), + clientContext, + operationsStub); + this.deletePrivateCloudCallable = + callableFactory.createUnaryCallable( + deletePrivateCloudTransportSettings, + settings.deletePrivateCloudSettings(), + clientContext); + this.deletePrivateCloudOperationCallable = + callableFactory.createOperationCallable( + deletePrivateCloudTransportSettings, + settings.deletePrivateCloudOperationSettings(), + clientContext, + operationsStub); + this.undeletePrivateCloudCallable = + callableFactory.createUnaryCallable( + undeletePrivateCloudTransportSettings, + settings.undeletePrivateCloudSettings(), + clientContext); + this.undeletePrivateCloudOperationCallable = + callableFactory.createOperationCallable( + undeletePrivateCloudTransportSettings, + settings.undeletePrivateCloudOperationSettings(), + clientContext, + operationsStub); + this.listClustersCallable = + callableFactory.createUnaryCallable( + listClustersTransportSettings, settings.listClustersSettings(), clientContext); + this.listClustersPagedCallable = + callableFactory.createPagedCallable( + listClustersTransportSettings, settings.listClustersSettings(), clientContext); + this.getClusterCallable = + callableFactory.createUnaryCallable( + getClusterTransportSettings, settings.getClusterSettings(), clientContext); + this.createClusterCallable = + callableFactory.createUnaryCallable( + createClusterTransportSettings, settings.createClusterSettings(), clientContext); + this.createClusterOperationCallable = + callableFactory.createOperationCallable( + createClusterTransportSettings, + settings.createClusterOperationSettings(), + clientContext, + operationsStub); + this.updateClusterCallable = + callableFactory.createUnaryCallable( + updateClusterTransportSettings, settings.updateClusterSettings(), clientContext); + this.updateClusterOperationCallable = + callableFactory.createOperationCallable( + updateClusterTransportSettings, + settings.updateClusterOperationSettings(), + clientContext, + operationsStub); + this.deleteClusterCallable = + callableFactory.createUnaryCallable( + deleteClusterTransportSettings, settings.deleteClusterSettings(), clientContext); + this.deleteClusterOperationCallable = + callableFactory.createOperationCallable( + deleteClusterTransportSettings, + settings.deleteClusterOperationSettings(), + clientContext, + operationsStub); + this.listSubnetsCallable = + callableFactory.createUnaryCallable( + listSubnetsTransportSettings, settings.listSubnetsSettings(), clientContext); + this.listSubnetsPagedCallable = + callableFactory.createPagedCallable( + listSubnetsTransportSettings, settings.listSubnetsSettings(), clientContext); + this.listNodeTypesCallable = + callableFactory.createUnaryCallable( + listNodeTypesTransportSettings, settings.listNodeTypesSettings(), clientContext); + this.listNodeTypesPagedCallable = + callableFactory.createPagedCallable( + listNodeTypesTransportSettings, settings.listNodeTypesSettings(), clientContext); + this.getNodeTypeCallable = + callableFactory.createUnaryCallable( + getNodeTypeTransportSettings, settings.getNodeTypeSettings(), clientContext); + this.showNsxCredentialsCallable = + callableFactory.createUnaryCallable( + showNsxCredentialsTransportSettings, + settings.showNsxCredentialsSettings(), + clientContext); + this.showVcenterCredentialsCallable = + callableFactory.createUnaryCallable( + showVcenterCredentialsTransportSettings, + settings.showVcenterCredentialsSettings(), + clientContext); + this.resetNsxCredentialsCallable = + callableFactory.createUnaryCallable( + resetNsxCredentialsTransportSettings, + settings.resetNsxCredentialsSettings(), + clientContext); + this.resetNsxCredentialsOperationCallable = + callableFactory.createOperationCallable( + resetNsxCredentialsTransportSettings, + settings.resetNsxCredentialsOperationSettings(), + clientContext, + operationsStub); + this.resetVcenterCredentialsCallable = + callableFactory.createUnaryCallable( + resetVcenterCredentialsTransportSettings, + settings.resetVcenterCredentialsSettings(), + clientContext); + this.resetVcenterCredentialsOperationCallable = + callableFactory.createOperationCallable( + resetVcenterCredentialsTransportSettings, + settings.resetVcenterCredentialsOperationSettings(), + clientContext, + operationsStub); + this.createHcxActivationKeyCallable = + callableFactory.createUnaryCallable( + createHcxActivationKeyTransportSettings, + settings.createHcxActivationKeySettings(), + clientContext); + this.createHcxActivationKeyOperationCallable = + callableFactory.createOperationCallable( + createHcxActivationKeyTransportSettings, + settings.createHcxActivationKeyOperationSettings(), + clientContext, + operationsStub); + this.listHcxActivationKeysCallable = + callableFactory.createUnaryCallable( + listHcxActivationKeysTransportSettings, + settings.listHcxActivationKeysSettings(), + clientContext); + this.listHcxActivationKeysPagedCallable = + callableFactory.createPagedCallable( + listHcxActivationKeysTransportSettings, + settings.listHcxActivationKeysSettings(), + clientContext); + this.getHcxActivationKeyCallable = + callableFactory.createUnaryCallable( + getHcxActivationKeyTransportSettings, + settings.getHcxActivationKeySettings(), + clientContext); + this.getNetworkPolicyCallable = + callableFactory.createUnaryCallable( + getNetworkPolicyTransportSettings, settings.getNetworkPolicySettings(), clientContext); + this.listNetworkPoliciesCallable = + callableFactory.createUnaryCallable( + listNetworkPoliciesTransportSettings, + settings.listNetworkPoliciesSettings(), + clientContext); + this.listNetworkPoliciesPagedCallable = + callableFactory.createPagedCallable( + listNetworkPoliciesTransportSettings, + settings.listNetworkPoliciesSettings(), + clientContext); + this.createNetworkPolicyCallable = + callableFactory.createUnaryCallable( + createNetworkPolicyTransportSettings, + settings.createNetworkPolicySettings(), + clientContext); + this.createNetworkPolicyOperationCallable = + callableFactory.createOperationCallable( + createNetworkPolicyTransportSettings, + settings.createNetworkPolicyOperationSettings(), + clientContext, + operationsStub); + this.updateNetworkPolicyCallable = + callableFactory.createUnaryCallable( + updateNetworkPolicyTransportSettings, + settings.updateNetworkPolicySettings(), + clientContext); + this.updateNetworkPolicyOperationCallable = + callableFactory.createOperationCallable( + updateNetworkPolicyTransportSettings, + settings.updateNetworkPolicyOperationSettings(), + clientContext, + operationsStub); + this.deleteNetworkPolicyCallable = + callableFactory.createUnaryCallable( + deleteNetworkPolicyTransportSettings, + settings.deleteNetworkPolicySettings(), + clientContext); + this.deleteNetworkPolicyOperationCallable = + callableFactory.createOperationCallable( + deleteNetworkPolicyTransportSettings, + settings.deleteNetworkPolicyOperationSettings(), + clientContext, + operationsStub); + this.createVmwareEngineNetworkCallable = + callableFactory.createUnaryCallable( + createVmwareEngineNetworkTransportSettings, + settings.createVmwareEngineNetworkSettings(), + clientContext); + this.createVmwareEngineNetworkOperationCallable = + callableFactory.createOperationCallable( + createVmwareEngineNetworkTransportSettings, + settings.createVmwareEngineNetworkOperationSettings(), + clientContext, + operationsStub); + this.updateVmwareEngineNetworkCallable = + callableFactory.createUnaryCallable( + updateVmwareEngineNetworkTransportSettings, + settings.updateVmwareEngineNetworkSettings(), + clientContext); + this.updateVmwareEngineNetworkOperationCallable = + callableFactory.createOperationCallable( + updateVmwareEngineNetworkTransportSettings, + settings.updateVmwareEngineNetworkOperationSettings(), + clientContext, + operationsStub); + this.deleteVmwareEngineNetworkCallable = + callableFactory.createUnaryCallable( + deleteVmwareEngineNetworkTransportSettings, + settings.deleteVmwareEngineNetworkSettings(), + clientContext); + this.deleteVmwareEngineNetworkOperationCallable = + callableFactory.createOperationCallable( + deleteVmwareEngineNetworkTransportSettings, + settings.deleteVmwareEngineNetworkOperationSettings(), + clientContext, + operationsStub); + this.getVmwareEngineNetworkCallable = + callableFactory.createUnaryCallable( + getVmwareEngineNetworkTransportSettings, + settings.getVmwareEngineNetworkSettings(), + clientContext); + this.listVmwareEngineNetworksCallable = + callableFactory.createUnaryCallable( + listVmwareEngineNetworksTransportSettings, + settings.listVmwareEngineNetworksSettings(), + clientContext); + this.listVmwareEngineNetworksPagedCallable = + callableFactory.createPagedCallable( + listVmwareEngineNetworksTransportSettings, + settings.listVmwareEngineNetworksSettings(), + clientContext); + this.listLocationsCallable = + callableFactory.createUnaryCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.listLocationsPagedCallable = + callableFactory.createPagedCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.getLocationCallable = + callableFactory.createUnaryCallable( + getLocationTransportSettings, settings.getLocationSettings(), clientContext); + this.setIamPolicyCallable = + callableFactory.createUnaryCallable( + setIamPolicyTransportSettings, settings.setIamPolicySettings(), clientContext); + this.getIamPolicyCallable = + callableFactory.createUnaryCallable( + getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext); + this.testIamPermissionsCallable = + callableFactory.createUnaryCallable( + testIamPermissionsTransportSettings, + settings.testIamPermissionsSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable + listPrivateCloudsCallable() { + return listPrivateCloudsCallable; + } + + @Override + public UnaryCallable + listPrivateCloudsPagedCallable() { + return listPrivateCloudsPagedCallable; + } + + @Override + public UnaryCallable getPrivateCloudCallable() { + return getPrivateCloudCallable; + } + + @Override + public UnaryCallable createPrivateCloudCallable() { + return createPrivateCloudCallable; + } + + @Override + public OperationCallable + createPrivateCloudOperationCallable() { + return createPrivateCloudOperationCallable; + } + + @Override + public UnaryCallable updatePrivateCloudCallable() { + return updatePrivateCloudCallable; + } + + @Override + public OperationCallable + updatePrivateCloudOperationCallable() { + return updatePrivateCloudOperationCallable; + } + + @Override + public UnaryCallable deletePrivateCloudCallable() { + return deletePrivateCloudCallable; + } + + @Override + public OperationCallable + deletePrivateCloudOperationCallable() { + return deletePrivateCloudOperationCallable; + } + + @Override + public UnaryCallable undeletePrivateCloudCallable() { + return undeletePrivateCloudCallable; + } + + @Override + public OperationCallable + undeletePrivateCloudOperationCallable() { + return undeletePrivateCloudOperationCallable; + } + + @Override + public UnaryCallable listClustersCallable() { + return listClustersCallable; + } + + @Override + public UnaryCallable listClustersPagedCallable() { + return listClustersPagedCallable; + } + + @Override + public UnaryCallable getClusterCallable() { + return getClusterCallable; + } + + @Override + public UnaryCallable createClusterCallable() { + return createClusterCallable; + } + + @Override + public OperationCallable + createClusterOperationCallable() { + return createClusterOperationCallable; + } + + @Override + public UnaryCallable updateClusterCallable() { + return updateClusterCallable; + } + + @Override + public OperationCallable + updateClusterOperationCallable() { + return updateClusterOperationCallable; + } + + @Override + public UnaryCallable deleteClusterCallable() { + return deleteClusterCallable; + } + + @Override + public OperationCallable + deleteClusterOperationCallable() { + return deleteClusterOperationCallable; + } + + @Override + public UnaryCallable listSubnetsCallable() { + return listSubnetsCallable; + } + + @Override + public UnaryCallable listSubnetsPagedCallable() { + return listSubnetsPagedCallable; + } + + @Override + public UnaryCallable listNodeTypesCallable() { + return listNodeTypesCallable; + } + + @Override + public UnaryCallable + listNodeTypesPagedCallable() { + return listNodeTypesPagedCallable; + } + + @Override + public UnaryCallable getNodeTypeCallable() { + return getNodeTypeCallable; + } + + @Override + public UnaryCallable showNsxCredentialsCallable() { + return showNsxCredentialsCallable; + } + + @Override + public UnaryCallable + showVcenterCredentialsCallable() { + return showVcenterCredentialsCallable; + } + + @Override + public UnaryCallable resetNsxCredentialsCallable() { + return resetNsxCredentialsCallable; + } + + @Override + public OperationCallable + resetNsxCredentialsOperationCallable() { + return resetNsxCredentialsOperationCallable; + } + + @Override + public UnaryCallable + resetVcenterCredentialsCallable() { + return resetVcenterCredentialsCallable; + } + + @Override + public OperationCallable + resetVcenterCredentialsOperationCallable() { + return resetVcenterCredentialsOperationCallable; + } + + @Override + public UnaryCallable createHcxActivationKeyCallable() { + return createHcxActivationKeyCallable; + } + + @Override + public OperationCallable + createHcxActivationKeyOperationCallable() { + return createHcxActivationKeyOperationCallable; + } + + @Override + public UnaryCallable + listHcxActivationKeysCallable() { + return listHcxActivationKeysCallable; + } + + @Override + public UnaryCallable + listHcxActivationKeysPagedCallable() { + return listHcxActivationKeysPagedCallable; + } + + @Override + public UnaryCallable getHcxActivationKeyCallable() { + return getHcxActivationKeyCallable; + } + + @Override + public UnaryCallable getNetworkPolicyCallable() { + return getNetworkPolicyCallable; + } + + @Override + public UnaryCallable + listNetworkPoliciesCallable() { + return listNetworkPoliciesCallable; + } + + @Override + public UnaryCallable + listNetworkPoliciesPagedCallable() { + return listNetworkPoliciesPagedCallable; + } + + @Override + public UnaryCallable createNetworkPolicyCallable() { + return createNetworkPolicyCallable; + } + + @Override + public OperationCallable + createNetworkPolicyOperationCallable() { + return createNetworkPolicyOperationCallable; + } + + @Override + public UnaryCallable updateNetworkPolicyCallable() { + return updateNetworkPolicyCallable; + } + + @Override + public OperationCallable + updateNetworkPolicyOperationCallable() { + return updateNetworkPolicyOperationCallable; + } + + @Override + public UnaryCallable deleteNetworkPolicyCallable() { + return deleteNetworkPolicyCallable; + } + + @Override + public OperationCallable + deleteNetworkPolicyOperationCallable() { + return deleteNetworkPolicyOperationCallable; + } + + @Override + public UnaryCallable + createVmwareEngineNetworkCallable() { + return createVmwareEngineNetworkCallable; + } + + @Override + public OperationCallable + createVmwareEngineNetworkOperationCallable() { + return createVmwareEngineNetworkOperationCallable; + } + + @Override + public UnaryCallable + updateVmwareEngineNetworkCallable() { + return updateVmwareEngineNetworkCallable; + } + + @Override + public OperationCallable + updateVmwareEngineNetworkOperationCallable() { + return updateVmwareEngineNetworkOperationCallable; + } + + @Override + public UnaryCallable + deleteVmwareEngineNetworkCallable() { + return deleteVmwareEngineNetworkCallable; + } + + @Override + public OperationCallable + deleteVmwareEngineNetworkOperationCallable() { + return deleteVmwareEngineNetworkOperationCallable; + } + + @Override + public UnaryCallable + getVmwareEngineNetworkCallable() { + return getVmwareEngineNetworkCallable; + } + + @Override + public UnaryCallable + listVmwareEngineNetworksCallable() { + return listVmwareEngineNetworksCallable; + } + + @Override + public UnaryCallable + listVmwareEngineNetworksPagedCallable() { + return listVmwareEngineNetworksPagedCallable; + } + + @Override + public UnaryCallable listLocationsCallable() { + return listLocationsCallable; + } + + @Override + public UnaryCallable + listLocationsPagedCallable() { + return listLocationsPagedCallable; + } + + @Override + public UnaryCallable getLocationCallable() { + return getLocationCallable; + } + + @Override + public UnaryCallable setIamPolicyCallable() { + return setIamPolicyCallable; + } + + @Override + public UnaryCallable getIamPolicyCallable() { + return getIamPolicyCallable; + } + + @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-vmwareengine/google-cloud-vmwareengine/src/main/java/com/google/cloud/vmwareengine/v1/stub/HttpJsonVmwareEngineCallableFactory.java b/java-vmwareengine/google-cloud-vmwareengine/src/main/java/com/google/cloud/vmwareengine/v1/stub/HttpJsonVmwareEngineCallableFactory.java new file mode 100644 index 000000000000..a5d3fda4da20 --- /dev/null +++ b/java-vmwareengine/google-cloud-vmwareengine/src/main/java/com/google/cloud/vmwareengine/v1/stub/HttpJsonVmwareEngineCallableFactory.java @@ -0,0 +1,105 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.vmwareengine.v1.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the VmwareEngine service API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +@BetaApi +public class HttpJsonVmwareEngineCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/java-vmwareengine/google-cloud-vmwareengine/src/main/java/com/google/cloud/vmwareengine/v1/stub/HttpJsonVmwareEngineStub.java b/java-vmwareengine/google-cloud-vmwareengine/src/main/java/com/google/cloud/vmwareengine/v1/stub/HttpJsonVmwareEngineStub.java new file mode 100644 index 000000000000..3686b3e8591a --- /dev/null +++ b/java-vmwareengine/google-cloud-vmwareengine/src/main/java/com/google/cloud/vmwareengine/v1/stub/HttpJsonVmwareEngineStub.java @@ -0,0 +1,2556 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.vmwareengine.v1.stub; + +import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListClustersPagedResponse; +import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListHcxActivationKeysPagedResponse; +import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListLocationsPagedResponse; +import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListNetworkPoliciesPagedResponse; +import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListNodeTypesPagedResponse; +import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListPrivateCloudsPagedResponse; +import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListSubnetsPagedResponse; +import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListVmwareEngineNetworksPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshot; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.vmwareengine.v1.Cluster; +import com.google.cloud.vmwareengine.v1.CreateClusterRequest; +import com.google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest; +import com.google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest; +import com.google.cloud.vmwareengine.v1.CreatePrivateCloudRequest; +import com.google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest; +import com.google.cloud.vmwareengine.v1.Credentials; +import com.google.cloud.vmwareengine.v1.DeleteClusterRequest; +import com.google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest; +import com.google.cloud.vmwareengine.v1.DeletePrivateCloudRequest; +import com.google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest; +import com.google.cloud.vmwareengine.v1.GetClusterRequest; +import com.google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest; +import com.google.cloud.vmwareengine.v1.GetNetworkPolicyRequest; +import com.google.cloud.vmwareengine.v1.GetNodeTypeRequest; +import com.google.cloud.vmwareengine.v1.GetPrivateCloudRequest; +import com.google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest; +import com.google.cloud.vmwareengine.v1.HcxActivationKey; +import com.google.cloud.vmwareengine.v1.ListClustersRequest; +import com.google.cloud.vmwareengine.v1.ListClustersResponse; +import com.google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest; +import com.google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse; +import com.google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest; +import com.google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse; +import com.google.cloud.vmwareengine.v1.ListNodeTypesRequest; +import com.google.cloud.vmwareengine.v1.ListNodeTypesResponse; +import com.google.cloud.vmwareengine.v1.ListPrivateCloudsRequest; +import com.google.cloud.vmwareengine.v1.ListPrivateCloudsResponse; +import com.google.cloud.vmwareengine.v1.ListSubnetsRequest; +import com.google.cloud.vmwareengine.v1.ListSubnetsResponse; +import com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest; +import com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse; +import com.google.cloud.vmwareengine.v1.NetworkPolicy; +import com.google.cloud.vmwareengine.v1.NodeType; +import com.google.cloud.vmwareengine.v1.OperationMetadata; +import com.google.cloud.vmwareengine.v1.PrivateCloud; +import com.google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest; +import com.google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest; +import com.google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest; +import com.google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest; +import com.google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest; +import com.google.cloud.vmwareengine.v1.UpdateClusterRequest; +import com.google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest; +import com.google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest; +import com.google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest; +import com.google.cloud.vmwareengine.v1.VmwareEngineNetwork; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the VmwareEngine service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +@BetaApi +public class HttpJsonVmwareEngineStub extends VmwareEngineStub { + private static final TypeRegistry typeRegistry = + TypeRegistry.newBuilder() + .add(Cluster.getDescriptor()) + .add(Empty.getDescriptor()) + .add(OperationMetadata.getDescriptor()) + .add(PrivateCloud.getDescriptor()) + .add(HcxActivationKey.getDescriptor()) + .add(VmwareEngineNetwork.getDescriptor()) + .add(NetworkPolicy.getDescriptor()) + .build(); + + private static final ApiMethodDescriptor + listPrivateCloudsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/ListPrivateClouds") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/privateClouds", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListPrivateCloudsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getPrivateCloudMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/GetPrivateCloud") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/privateClouds/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(PrivateCloud.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createPrivateCloudMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/CreatePrivateCloud") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/privateClouds", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam( + fields, "privateCloudId", request.getPrivateCloudId()); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + serializer.putQueryParam( + fields, "validateOnly", request.getValidateOnly()); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("privateCloud", request.getPrivateCloud(), false)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (CreatePrivateCloudRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + updatePrivateCloudMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/UpdatePrivateCloud") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{privateCloud.name=projects/*/locations/*/privateClouds/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "privateCloud.name", request.getPrivateCloud().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("privateCloud", request.getPrivateCloud(), false)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (UpdatePrivateCloudRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + deletePrivateCloudMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/DeletePrivateCloud") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/privateClouds/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + if (request.hasDelayHours()) { + serializer.putQueryParam( + fields, "delayHours", request.getDelayHours()); + } + serializer.putQueryParam(fields, "force", request.getForce()); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (DeletePrivateCloudRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + undeletePrivateCloudMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/UndeletePrivateCloud") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/privateClouds/*}:undelete", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build(), false)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (UndeletePrivateCloudRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + listClustersMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/ListClusters") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/privateClouds/*}/clusters", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListClustersResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor getClusterMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/GetCluster") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/privateClouds/*/clusters/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Cluster.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createClusterMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/CreateCluster") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/privateClouds/*}/clusters", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "clusterId", request.getClusterId()); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + serializer.putQueryParam( + fields, "validateOnly", request.getValidateOnly()); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("cluster", request.getCluster(), false)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (CreateClusterRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + updateClusterMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/UpdateCluster") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{cluster.name=projects/*/locations/*/privateClouds/*/clusters/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "cluster.name", request.getCluster().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + serializer.putQueryParam( + fields, "validateOnly", request.getValidateOnly()); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("cluster", request.getCluster(), false)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (UpdateClusterRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + deleteClusterMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/DeleteCluster") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/privateClouds/*/clusters/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (DeleteClusterRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + listSubnetsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/ListSubnets") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/privateClouds/*}/subnets", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListSubnetsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listNodeTypesMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/ListNodeTypes") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/nodeTypes", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListNodeTypesResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getNodeTypeMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/GetNodeType") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/nodeTypes/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(NodeType.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + showNsxCredentialsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/ShowNsxCredentials") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{privateCloud=projects/*/locations/*/privateClouds/*}:showNsxCredentials", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "privateCloud", request.getPrivateCloud()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Credentials.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + showVcenterCredentialsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/ShowVcenterCredentials") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{privateCloud=projects/*/locations/*/privateClouds/*}:showVcenterCredentials", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "privateCloud", request.getPrivateCloud()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Credentials.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + resetNsxCredentialsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/ResetNsxCredentials") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{privateCloud=projects/*/locations/*/privateClouds/*}:resetNsxCredentials", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "privateCloud", request.getPrivateCloud()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "*", request.toBuilder().clearPrivateCloud().build(), false)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (ResetNsxCredentialsRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + resetVcenterCredentialsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.vmwareengine.v1.VmwareEngine/ResetVcenterCredentials") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{privateCloud=projects/*/locations/*/privateClouds/*}:resetVcenterCredentials", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "privateCloud", request.getPrivateCloud()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "*", request.toBuilder().clearPrivateCloud().build(), false)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (ResetVcenterCredentialsRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + createHcxActivationKeyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/CreateHcxActivationKey") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/privateClouds/*}/hcxActivationKeys", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam( + fields, "hcxActivationKeyId", request.getHcxActivationKeyId()); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("hcxActivationKey", request.getHcxActivationKey(), false)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (CreateHcxActivationKeyRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor< + ListHcxActivationKeysRequest, ListHcxActivationKeysResponse> + listHcxActivationKeysMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/ListHcxActivationKeys") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/privateClouds/*}/hcxActivationKeys", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListHcxActivationKeysResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getHcxActivationKeyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/GetHcxActivationKey") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/privateClouds/*/hcxActivationKeys/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(HcxActivationKey.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getNetworkPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/GetNetworkPolicy") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/networkPolicies/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(NetworkPolicy.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listNetworkPoliciesMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/ListNetworkPolicies") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/networkPolicies", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListNetworkPoliciesResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createNetworkPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/CreateNetworkPolicy") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/networkPolicies", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam( + fields, "networkPolicyId", request.getNetworkPolicyId()); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("networkPolicy", request.getNetworkPolicy(), false)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (CreateNetworkPolicyRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + updateNetworkPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/UpdateNetworkPolicy") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{networkPolicy.name=projects/*/locations/*/networkPolicies/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "networkPolicy.name", request.getNetworkPolicy().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("networkPolicy", request.getNetworkPolicy(), false)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (UpdateNetworkPolicyRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + deleteNetworkPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/DeleteNetworkPolicy") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/networkPolicies/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (DeleteNetworkPolicyRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + createVmwareEngineNetworkMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.vmwareengine.v1.VmwareEngine/CreateVmwareEngineNetwork") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/vmwareEngineNetworks", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + serializer.putQueryParam( + fields, + "vmwareEngineNetworkId", + request.getVmwareEngineNetworkId()); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "vmwareEngineNetwork", + request.getVmwareEngineNetwork(), + false)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (CreateVmwareEngineNetworkRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + updateVmwareEngineNetworkMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.vmwareengine.v1.VmwareEngine/UpdateVmwareEngineNetwork") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{vmwareEngineNetwork.name=projects/*/locations/*/vmwareEngineNetworks/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, + "vmwareEngineNetwork.name", + request.getVmwareEngineNetwork().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "vmwareEngineNetwork", + request.getVmwareEngineNetwork(), + false)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (UpdateVmwareEngineNetworkRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + deleteVmwareEngineNetworkMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.vmwareengine.v1.VmwareEngine/DeleteVmwareEngineNetwork") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/vmwareEngineNetworks/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "etag", request.getEtag()); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (DeleteVmwareEngineNetworkRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + getVmwareEngineNetworkMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/GetVmwareEngineNetwork") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/vmwareEngineNetworks/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(VmwareEngineNetwork.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + ListVmwareEngineNetworksRequest, ListVmwareEngineNetworksResponse> + listVmwareEngineNetworksMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.cloud.vmwareengine.v1.VmwareEngine/ListVmwareEngineNetworks") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/vmwareEngineNetworks", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListVmwareEngineNetworksResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listLocationsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.location.Locations/ListLocations") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*}/locations", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListLocationsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getLocationMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.location.Locations/GetLocation") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Location.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + setIamPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.iam.v1.IAMPolicy/SetIamPolicy") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{resource=projects/*/locations/*/privateClouds/*}:setIamPolicy", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "resource", request.getResource()); + return fields; + }) + .setAdditionalPaths( + "/v1/{resource=projects/*/locations/*/privateClouds/*/clusters/*}:setIamPolicy", + "/v1/{resource=projects/*/locations/*/privateClouds/*/hcxActivationKeys/*}:setIamPolicy") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearResource().build(), false)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Policy.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getIamPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.iam.v1.IAMPolicy/GetIamPolicy") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{resource=projects/*/locations/*/privateClouds/*}:getIamPolicy", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "resource", request.getResource()); + return fields; + }) + .setAdditionalPaths( + "/v1/{resource=projects/*/locations/*/privateClouds/*/clusters/*}:getIamPolicy", + "/v1/{resource=projects/*/locations/*/privateClouds/*/hcxActivationKeys/*}:getIamPolicy") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Policy.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + testIamPermissionsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.iam.v1.IAMPolicy/TestIamPermissions") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{resource=projects/*/locations/*/privateClouds/*}:testIamPermissions", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "resource", request.getResource()); + return fields; + }) + .setAdditionalPaths( + "/v1/{resource=projects/*/locations/*/privateClouds/*/clusters/*}:testIamPermissions", + "/v1/{resource=projects/*/locations/*/privateClouds/*/hcxActivationKeys/*}:testIamPermissions") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearResource().build(), false)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(TestIamPermissionsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable + listPrivateCloudsCallable; + private final UnaryCallable + listPrivateCloudsPagedCallable; + private final UnaryCallable getPrivateCloudCallable; + private final UnaryCallable createPrivateCloudCallable; + private final OperationCallable + createPrivateCloudOperationCallable; + private final UnaryCallable updatePrivateCloudCallable; + private final OperationCallable + updatePrivateCloudOperationCallable; + private final UnaryCallable deletePrivateCloudCallable; + private final OperationCallable + deletePrivateCloudOperationCallable; + private final UnaryCallable undeletePrivateCloudCallable; + private final OperationCallable + undeletePrivateCloudOperationCallable; + private final UnaryCallable listClustersCallable; + private final UnaryCallable + listClustersPagedCallable; + private final UnaryCallable getClusterCallable; + private final UnaryCallable createClusterCallable; + private final OperationCallable + createClusterOperationCallable; + private final UnaryCallable updateClusterCallable; + private final OperationCallable + updateClusterOperationCallable; + private final UnaryCallable deleteClusterCallable; + private final OperationCallable + deleteClusterOperationCallable; + private final UnaryCallable listSubnetsCallable; + private final UnaryCallable + listSubnetsPagedCallable; + private final UnaryCallable listNodeTypesCallable; + private final UnaryCallable + listNodeTypesPagedCallable; + private final UnaryCallable getNodeTypeCallable; + private final UnaryCallable showNsxCredentialsCallable; + private final UnaryCallable + showVcenterCredentialsCallable; + private final UnaryCallable resetNsxCredentialsCallable; + private final OperationCallable + resetNsxCredentialsOperationCallable; + private final UnaryCallable + resetVcenterCredentialsCallable; + private final OperationCallable + resetVcenterCredentialsOperationCallable; + private final UnaryCallable + createHcxActivationKeyCallable; + private final OperationCallable< + CreateHcxActivationKeyRequest, HcxActivationKey, OperationMetadata> + createHcxActivationKeyOperationCallable; + private final UnaryCallable + listHcxActivationKeysCallable; + private final UnaryCallable + listHcxActivationKeysPagedCallable; + private final UnaryCallable + getHcxActivationKeyCallable; + private final UnaryCallable getNetworkPolicyCallable; + private final UnaryCallable + listNetworkPoliciesCallable; + private final UnaryCallable + listNetworkPoliciesPagedCallable; + private final UnaryCallable createNetworkPolicyCallable; + private final OperationCallable + createNetworkPolicyOperationCallable; + private final UnaryCallable updateNetworkPolicyCallable; + private final OperationCallable + updateNetworkPolicyOperationCallable; + private final UnaryCallable deleteNetworkPolicyCallable; + private final OperationCallable + deleteNetworkPolicyOperationCallable; + private final UnaryCallable + createVmwareEngineNetworkCallable; + private final OperationCallable< + CreateVmwareEngineNetworkRequest, VmwareEngineNetwork, OperationMetadata> + createVmwareEngineNetworkOperationCallable; + private final UnaryCallable + updateVmwareEngineNetworkCallable; + private final OperationCallable< + UpdateVmwareEngineNetworkRequest, VmwareEngineNetwork, OperationMetadata> + updateVmwareEngineNetworkOperationCallable; + private final UnaryCallable + deleteVmwareEngineNetworkCallable; + private final OperationCallable + deleteVmwareEngineNetworkOperationCallable; + private final UnaryCallable + getVmwareEngineNetworkCallable; + private final UnaryCallable + listVmwareEngineNetworksCallable; + private final UnaryCallable< + ListVmwareEngineNetworksRequest, ListVmwareEngineNetworksPagedResponse> + listVmwareEngineNetworksPagedCallable; + private final UnaryCallable listLocationsCallable; + private final UnaryCallable + listLocationsPagedCallable; + private final UnaryCallable getLocationCallable; + private final UnaryCallable setIamPolicyCallable; + private final UnaryCallable getIamPolicyCallable; + private final UnaryCallable + testIamPermissionsCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonOperationsStub httpJsonOperationsStub; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonVmwareEngineStub create(VmwareEngineStubSettings settings) + throws IOException { + return new HttpJsonVmwareEngineStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonVmwareEngineStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonVmwareEngineStub( + VmwareEngineStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonVmwareEngineStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonVmwareEngineStub( + VmwareEngineStubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonVmwareEngineStub, 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 HttpJsonVmwareEngineStub(VmwareEngineStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new HttpJsonVmwareEngineCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonVmwareEngineStub, 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 HttpJsonVmwareEngineStub( + VmwareEngineStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.httpJsonOperationsStub = + HttpJsonOperationsStub.create(clientContext, callableFactory, typeRegistry); + + HttpJsonCallSettings + listPrivateCloudsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listPrivateCloudsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings getPrivateCloudTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getPrivateCloudMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings createPrivateCloudTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createPrivateCloudMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings updatePrivateCloudTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updatePrivateCloudMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings deletePrivateCloudTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deletePrivateCloudMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + undeletePrivateCloudTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(undeletePrivateCloudMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings listClustersTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listClustersMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings getClusterTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getClusterMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings createClusterTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createClusterMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings updateClusterTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateClusterMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings deleteClusterTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteClusterMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings listSubnetsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listSubnetsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + listNodeTypesTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listNodeTypesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings getNodeTypeTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getNodeTypeMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + showNsxCredentialsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(showNsxCredentialsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + showVcenterCredentialsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(showVcenterCredentialsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + resetNsxCredentialsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(resetNsxCredentialsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + resetVcenterCredentialsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(resetVcenterCredentialsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + createHcxActivationKeyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createHcxActivationKeyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + listHcxActivationKeysTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(listHcxActivationKeysMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + getHcxActivationKeyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getHcxActivationKeyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings getNetworkPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getNetworkPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + listNetworkPoliciesTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(listNetworkPoliciesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + createNetworkPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createNetworkPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + updateNetworkPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateNetworkPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + deleteNetworkPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteNetworkPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + createVmwareEngineNetworkTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createVmwareEngineNetworkMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + updateVmwareEngineNetworkTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateVmwareEngineNetworkMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + deleteVmwareEngineNetworkTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteVmwareEngineNetworkMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + getVmwareEngineNetworkTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getVmwareEngineNetworkMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + listVmwareEngineNetworksTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(listVmwareEngineNetworksMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + listLocationsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listLocationsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings getLocationTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getLocationMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings setIamPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(setIamPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings getIamPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getIamPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + testIamPermissionsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(testIamPermissionsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + + this.listPrivateCloudsCallable = + callableFactory.createUnaryCallable( + listPrivateCloudsTransportSettings, + settings.listPrivateCloudsSettings(), + clientContext); + this.listPrivateCloudsPagedCallable = + callableFactory.createPagedCallable( + listPrivateCloudsTransportSettings, + settings.listPrivateCloudsSettings(), + clientContext); + this.getPrivateCloudCallable = + callableFactory.createUnaryCallable( + getPrivateCloudTransportSettings, settings.getPrivateCloudSettings(), clientContext); + this.createPrivateCloudCallable = + callableFactory.createUnaryCallable( + createPrivateCloudTransportSettings, + settings.createPrivateCloudSettings(), + clientContext); + this.createPrivateCloudOperationCallable = + callableFactory.createOperationCallable( + createPrivateCloudTransportSettings, + settings.createPrivateCloudOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.updatePrivateCloudCallable = + callableFactory.createUnaryCallable( + updatePrivateCloudTransportSettings, + settings.updatePrivateCloudSettings(), + clientContext); + this.updatePrivateCloudOperationCallable = + callableFactory.createOperationCallable( + updatePrivateCloudTransportSettings, + settings.updatePrivateCloudOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.deletePrivateCloudCallable = + callableFactory.createUnaryCallable( + deletePrivateCloudTransportSettings, + settings.deletePrivateCloudSettings(), + clientContext); + this.deletePrivateCloudOperationCallable = + callableFactory.createOperationCallable( + deletePrivateCloudTransportSettings, + settings.deletePrivateCloudOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.undeletePrivateCloudCallable = + callableFactory.createUnaryCallable( + undeletePrivateCloudTransportSettings, + settings.undeletePrivateCloudSettings(), + clientContext); + this.undeletePrivateCloudOperationCallable = + callableFactory.createOperationCallable( + undeletePrivateCloudTransportSettings, + settings.undeletePrivateCloudOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.listClustersCallable = + callableFactory.createUnaryCallable( + listClustersTransportSettings, settings.listClustersSettings(), clientContext); + this.listClustersPagedCallable = + callableFactory.createPagedCallable( + listClustersTransportSettings, settings.listClustersSettings(), clientContext); + this.getClusterCallable = + callableFactory.createUnaryCallable( + getClusterTransportSettings, settings.getClusterSettings(), clientContext); + this.createClusterCallable = + callableFactory.createUnaryCallable( + createClusterTransportSettings, settings.createClusterSettings(), clientContext); + this.createClusterOperationCallable = + callableFactory.createOperationCallable( + createClusterTransportSettings, + settings.createClusterOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.updateClusterCallable = + callableFactory.createUnaryCallable( + updateClusterTransportSettings, settings.updateClusterSettings(), clientContext); + this.updateClusterOperationCallable = + callableFactory.createOperationCallable( + updateClusterTransportSettings, + settings.updateClusterOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.deleteClusterCallable = + callableFactory.createUnaryCallable( + deleteClusterTransportSettings, settings.deleteClusterSettings(), clientContext); + this.deleteClusterOperationCallable = + callableFactory.createOperationCallable( + deleteClusterTransportSettings, + settings.deleteClusterOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.listSubnetsCallable = + callableFactory.createUnaryCallable( + listSubnetsTransportSettings, settings.listSubnetsSettings(), clientContext); + this.listSubnetsPagedCallable = + callableFactory.createPagedCallable( + listSubnetsTransportSettings, settings.listSubnetsSettings(), clientContext); + this.listNodeTypesCallable = + callableFactory.createUnaryCallable( + listNodeTypesTransportSettings, settings.listNodeTypesSettings(), clientContext); + this.listNodeTypesPagedCallable = + callableFactory.createPagedCallable( + listNodeTypesTransportSettings, settings.listNodeTypesSettings(), clientContext); + this.getNodeTypeCallable = + callableFactory.createUnaryCallable( + getNodeTypeTransportSettings, settings.getNodeTypeSettings(), clientContext); + this.showNsxCredentialsCallable = + callableFactory.createUnaryCallable( + showNsxCredentialsTransportSettings, + settings.showNsxCredentialsSettings(), + clientContext); + this.showVcenterCredentialsCallable = + callableFactory.createUnaryCallable( + showVcenterCredentialsTransportSettings, + settings.showVcenterCredentialsSettings(), + clientContext); + this.resetNsxCredentialsCallable = + callableFactory.createUnaryCallable( + resetNsxCredentialsTransportSettings, + settings.resetNsxCredentialsSettings(), + clientContext); + this.resetNsxCredentialsOperationCallable = + callableFactory.createOperationCallable( + resetNsxCredentialsTransportSettings, + settings.resetNsxCredentialsOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.resetVcenterCredentialsCallable = + callableFactory.createUnaryCallable( + resetVcenterCredentialsTransportSettings, + settings.resetVcenterCredentialsSettings(), + clientContext); + this.resetVcenterCredentialsOperationCallable = + callableFactory.createOperationCallable( + resetVcenterCredentialsTransportSettings, + settings.resetVcenterCredentialsOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.createHcxActivationKeyCallable = + callableFactory.createUnaryCallable( + createHcxActivationKeyTransportSettings, + settings.createHcxActivationKeySettings(), + clientContext); + this.createHcxActivationKeyOperationCallable = + callableFactory.createOperationCallable( + createHcxActivationKeyTransportSettings, + settings.createHcxActivationKeyOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.listHcxActivationKeysCallable = + callableFactory.createUnaryCallable( + listHcxActivationKeysTransportSettings, + settings.listHcxActivationKeysSettings(), + clientContext); + this.listHcxActivationKeysPagedCallable = + callableFactory.createPagedCallable( + listHcxActivationKeysTransportSettings, + settings.listHcxActivationKeysSettings(), + clientContext); + this.getHcxActivationKeyCallable = + callableFactory.createUnaryCallable( + getHcxActivationKeyTransportSettings, + settings.getHcxActivationKeySettings(), + clientContext); + this.getNetworkPolicyCallable = + callableFactory.createUnaryCallable( + getNetworkPolicyTransportSettings, settings.getNetworkPolicySettings(), clientContext); + this.listNetworkPoliciesCallable = + callableFactory.createUnaryCallable( + listNetworkPoliciesTransportSettings, + settings.listNetworkPoliciesSettings(), + clientContext); + this.listNetworkPoliciesPagedCallable = + callableFactory.createPagedCallable( + listNetworkPoliciesTransportSettings, + settings.listNetworkPoliciesSettings(), + clientContext); + this.createNetworkPolicyCallable = + callableFactory.createUnaryCallable( + createNetworkPolicyTransportSettings, + settings.createNetworkPolicySettings(), + clientContext); + this.createNetworkPolicyOperationCallable = + callableFactory.createOperationCallable( + createNetworkPolicyTransportSettings, + settings.createNetworkPolicyOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.updateNetworkPolicyCallable = + callableFactory.createUnaryCallable( + updateNetworkPolicyTransportSettings, + settings.updateNetworkPolicySettings(), + clientContext); + this.updateNetworkPolicyOperationCallable = + callableFactory.createOperationCallable( + updateNetworkPolicyTransportSettings, + settings.updateNetworkPolicyOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.deleteNetworkPolicyCallable = + callableFactory.createUnaryCallable( + deleteNetworkPolicyTransportSettings, + settings.deleteNetworkPolicySettings(), + clientContext); + this.deleteNetworkPolicyOperationCallable = + callableFactory.createOperationCallable( + deleteNetworkPolicyTransportSettings, + settings.deleteNetworkPolicyOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.createVmwareEngineNetworkCallable = + callableFactory.createUnaryCallable( + createVmwareEngineNetworkTransportSettings, + settings.createVmwareEngineNetworkSettings(), + clientContext); + this.createVmwareEngineNetworkOperationCallable = + callableFactory.createOperationCallable( + createVmwareEngineNetworkTransportSettings, + settings.createVmwareEngineNetworkOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.updateVmwareEngineNetworkCallable = + callableFactory.createUnaryCallable( + updateVmwareEngineNetworkTransportSettings, + settings.updateVmwareEngineNetworkSettings(), + clientContext); + this.updateVmwareEngineNetworkOperationCallable = + callableFactory.createOperationCallable( + updateVmwareEngineNetworkTransportSettings, + settings.updateVmwareEngineNetworkOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.deleteVmwareEngineNetworkCallable = + callableFactory.createUnaryCallable( + deleteVmwareEngineNetworkTransportSettings, + settings.deleteVmwareEngineNetworkSettings(), + clientContext); + this.deleteVmwareEngineNetworkOperationCallable = + callableFactory.createOperationCallable( + deleteVmwareEngineNetworkTransportSettings, + settings.deleteVmwareEngineNetworkOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.getVmwareEngineNetworkCallable = + callableFactory.createUnaryCallable( + getVmwareEngineNetworkTransportSettings, + settings.getVmwareEngineNetworkSettings(), + clientContext); + this.listVmwareEngineNetworksCallable = + callableFactory.createUnaryCallable( + listVmwareEngineNetworksTransportSettings, + settings.listVmwareEngineNetworksSettings(), + clientContext); + this.listVmwareEngineNetworksPagedCallable = + callableFactory.createPagedCallable( + listVmwareEngineNetworksTransportSettings, + settings.listVmwareEngineNetworksSettings(), + clientContext); + this.listLocationsCallable = + callableFactory.createUnaryCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.listLocationsPagedCallable = + callableFactory.createPagedCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.getLocationCallable = + callableFactory.createUnaryCallable( + getLocationTransportSettings, settings.getLocationSettings(), clientContext); + this.setIamPolicyCallable = + callableFactory.createUnaryCallable( + setIamPolicyTransportSettings, settings.setIamPolicySettings(), clientContext); + this.getIamPolicyCallable = + callableFactory.createUnaryCallable( + getIamPolicyTransportSettings, settings.getIamPolicySettings(), 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(listPrivateCloudsMethodDescriptor); + methodDescriptors.add(getPrivateCloudMethodDescriptor); + methodDescriptors.add(createPrivateCloudMethodDescriptor); + methodDescriptors.add(updatePrivateCloudMethodDescriptor); + methodDescriptors.add(deletePrivateCloudMethodDescriptor); + methodDescriptors.add(undeletePrivateCloudMethodDescriptor); + methodDescriptors.add(listClustersMethodDescriptor); + methodDescriptors.add(getClusterMethodDescriptor); + methodDescriptors.add(createClusterMethodDescriptor); + methodDescriptors.add(updateClusterMethodDescriptor); + methodDescriptors.add(deleteClusterMethodDescriptor); + methodDescriptors.add(listSubnetsMethodDescriptor); + methodDescriptors.add(listNodeTypesMethodDescriptor); + methodDescriptors.add(getNodeTypeMethodDescriptor); + methodDescriptors.add(showNsxCredentialsMethodDescriptor); + methodDescriptors.add(showVcenterCredentialsMethodDescriptor); + methodDescriptors.add(resetNsxCredentialsMethodDescriptor); + methodDescriptors.add(resetVcenterCredentialsMethodDescriptor); + methodDescriptors.add(createHcxActivationKeyMethodDescriptor); + methodDescriptors.add(listHcxActivationKeysMethodDescriptor); + methodDescriptors.add(getHcxActivationKeyMethodDescriptor); + methodDescriptors.add(getNetworkPolicyMethodDescriptor); + methodDescriptors.add(listNetworkPoliciesMethodDescriptor); + methodDescriptors.add(createNetworkPolicyMethodDescriptor); + methodDescriptors.add(updateNetworkPolicyMethodDescriptor); + methodDescriptors.add(deleteNetworkPolicyMethodDescriptor); + methodDescriptors.add(createVmwareEngineNetworkMethodDescriptor); + methodDescriptors.add(updateVmwareEngineNetworkMethodDescriptor); + methodDescriptors.add(deleteVmwareEngineNetworkMethodDescriptor); + methodDescriptors.add(getVmwareEngineNetworkMethodDescriptor); + methodDescriptors.add(listVmwareEngineNetworksMethodDescriptor); + methodDescriptors.add(listLocationsMethodDescriptor); + methodDescriptors.add(getLocationMethodDescriptor); + methodDescriptors.add(setIamPolicyMethodDescriptor); + methodDescriptors.add(getIamPolicyMethodDescriptor); + methodDescriptors.add(testIamPermissionsMethodDescriptor); + return methodDescriptors; + } + + public HttpJsonOperationsStub getHttpJsonOperationsStub() { + return httpJsonOperationsStub; + } + + @Override + public UnaryCallable + listPrivateCloudsCallable() { + return listPrivateCloudsCallable; + } + + @Override + public UnaryCallable + listPrivateCloudsPagedCallable() { + return listPrivateCloudsPagedCallable; + } + + @Override + public UnaryCallable getPrivateCloudCallable() { + return getPrivateCloudCallable; + } + + @Override + public UnaryCallable createPrivateCloudCallable() { + return createPrivateCloudCallable; + } + + @Override + public OperationCallable + createPrivateCloudOperationCallable() { + return createPrivateCloudOperationCallable; + } + + @Override + public UnaryCallable updatePrivateCloudCallable() { + return updatePrivateCloudCallable; + } + + @Override + public OperationCallable + updatePrivateCloudOperationCallable() { + return updatePrivateCloudOperationCallable; + } + + @Override + public UnaryCallable deletePrivateCloudCallable() { + return deletePrivateCloudCallable; + } + + @Override + public OperationCallable + deletePrivateCloudOperationCallable() { + return deletePrivateCloudOperationCallable; + } + + @Override + public UnaryCallable undeletePrivateCloudCallable() { + return undeletePrivateCloudCallable; + } + + @Override + public OperationCallable + undeletePrivateCloudOperationCallable() { + return undeletePrivateCloudOperationCallable; + } + + @Override + public UnaryCallable listClustersCallable() { + return listClustersCallable; + } + + @Override + public UnaryCallable listClustersPagedCallable() { + return listClustersPagedCallable; + } + + @Override + public UnaryCallable getClusterCallable() { + return getClusterCallable; + } + + @Override + public UnaryCallable createClusterCallable() { + return createClusterCallable; + } + + @Override + public OperationCallable + createClusterOperationCallable() { + return createClusterOperationCallable; + } + + @Override + public UnaryCallable updateClusterCallable() { + return updateClusterCallable; + } + + @Override + public OperationCallable + updateClusterOperationCallable() { + return updateClusterOperationCallable; + } + + @Override + public UnaryCallable deleteClusterCallable() { + return deleteClusterCallable; + } + + @Override + public OperationCallable + deleteClusterOperationCallable() { + return deleteClusterOperationCallable; + } + + @Override + public UnaryCallable listSubnetsCallable() { + return listSubnetsCallable; + } + + @Override + public UnaryCallable listSubnetsPagedCallable() { + return listSubnetsPagedCallable; + } + + @Override + public UnaryCallable listNodeTypesCallable() { + return listNodeTypesCallable; + } + + @Override + public UnaryCallable + listNodeTypesPagedCallable() { + return listNodeTypesPagedCallable; + } + + @Override + public UnaryCallable getNodeTypeCallable() { + return getNodeTypeCallable; + } + + @Override + public UnaryCallable showNsxCredentialsCallable() { + return showNsxCredentialsCallable; + } + + @Override + public UnaryCallable + showVcenterCredentialsCallable() { + return showVcenterCredentialsCallable; + } + + @Override + public UnaryCallable resetNsxCredentialsCallable() { + return resetNsxCredentialsCallable; + } + + @Override + public OperationCallable + resetNsxCredentialsOperationCallable() { + return resetNsxCredentialsOperationCallable; + } + + @Override + public UnaryCallable + resetVcenterCredentialsCallable() { + return resetVcenterCredentialsCallable; + } + + @Override + public OperationCallable + resetVcenterCredentialsOperationCallable() { + return resetVcenterCredentialsOperationCallable; + } + + @Override + public UnaryCallable createHcxActivationKeyCallable() { + return createHcxActivationKeyCallable; + } + + @Override + public OperationCallable + createHcxActivationKeyOperationCallable() { + return createHcxActivationKeyOperationCallable; + } + + @Override + public UnaryCallable + listHcxActivationKeysCallable() { + return listHcxActivationKeysCallable; + } + + @Override + public UnaryCallable + listHcxActivationKeysPagedCallable() { + return listHcxActivationKeysPagedCallable; + } + + @Override + public UnaryCallable getHcxActivationKeyCallable() { + return getHcxActivationKeyCallable; + } + + @Override + public UnaryCallable getNetworkPolicyCallable() { + return getNetworkPolicyCallable; + } + + @Override + public UnaryCallable + listNetworkPoliciesCallable() { + return listNetworkPoliciesCallable; + } + + @Override + public UnaryCallable + listNetworkPoliciesPagedCallable() { + return listNetworkPoliciesPagedCallable; + } + + @Override + public UnaryCallable createNetworkPolicyCallable() { + return createNetworkPolicyCallable; + } + + @Override + public OperationCallable + createNetworkPolicyOperationCallable() { + return createNetworkPolicyOperationCallable; + } + + @Override + public UnaryCallable updateNetworkPolicyCallable() { + return updateNetworkPolicyCallable; + } + + @Override + public OperationCallable + updateNetworkPolicyOperationCallable() { + return updateNetworkPolicyOperationCallable; + } + + @Override + public UnaryCallable deleteNetworkPolicyCallable() { + return deleteNetworkPolicyCallable; + } + + @Override + public OperationCallable + deleteNetworkPolicyOperationCallable() { + return deleteNetworkPolicyOperationCallable; + } + + @Override + public UnaryCallable + createVmwareEngineNetworkCallable() { + return createVmwareEngineNetworkCallable; + } + + @Override + public OperationCallable + createVmwareEngineNetworkOperationCallable() { + return createVmwareEngineNetworkOperationCallable; + } + + @Override + public UnaryCallable + updateVmwareEngineNetworkCallable() { + return updateVmwareEngineNetworkCallable; + } + + @Override + public OperationCallable + updateVmwareEngineNetworkOperationCallable() { + return updateVmwareEngineNetworkOperationCallable; + } + + @Override + public UnaryCallable + deleteVmwareEngineNetworkCallable() { + return deleteVmwareEngineNetworkCallable; + } + + @Override + public OperationCallable + deleteVmwareEngineNetworkOperationCallable() { + return deleteVmwareEngineNetworkOperationCallable; + } + + @Override + public UnaryCallable + getVmwareEngineNetworkCallable() { + return getVmwareEngineNetworkCallable; + } + + @Override + public UnaryCallable + listVmwareEngineNetworksCallable() { + return listVmwareEngineNetworksCallable; + } + + @Override + public UnaryCallable + listVmwareEngineNetworksPagedCallable() { + return listVmwareEngineNetworksPagedCallable; + } + + @Override + public UnaryCallable listLocationsCallable() { + return listLocationsCallable; + } + + @Override + public UnaryCallable + listLocationsPagedCallable() { + return listLocationsPagedCallable; + } + + @Override + public UnaryCallable getLocationCallable() { + return getLocationCallable; + } + + @Override + public UnaryCallable setIamPolicyCallable() { + return setIamPolicyCallable; + } + + @Override + public UnaryCallable getIamPolicyCallable() { + return getIamPolicyCallable; + } + + @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-vmwareengine/google-cloud-vmwareengine/src/main/java/com/google/cloud/vmwareengine/v1/stub/VmwareEngineStub.java b/java-vmwareengine/google-cloud-vmwareengine/src/main/java/com/google/cloud/vmwareengine/v1/stub/VmwareEngineStub.java new file mode 100644 index 000000000000..e2eb33059fa7 --- /dev/null +++ b/java-vmwareengine/google-cloud-vmwareengine/src/main/java/com/google/cloud/vmwareengine/v1/stub/VmwareEngineStub.java @@ -0,0 +1,398 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.vmwareengine.v1.stub; + +import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListClustersPagedResponse; +import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListHcxActivationKeysPagedResponse; +import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListLocationsPagedResponse; +import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListNetworkPoliciesPagedResponse; +import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListNodeTypesPagedResponse; +import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListPrivateCloudsPagedResponse; +import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListSubnetsPagedResponse; +import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListVmwareEngineNetworksPagedResponse; + +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.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.vmwareengine.v1.Cluster; +import com.google.cloud.vmwareengine.v1.CreateClusterRequest; +import com.google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest; +import com.google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest; +import com.google.cloud.vmwareengine.v1.CreatePrivateCloudRequest; +import com.google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest; +import com.google.cloud.vmwareengine.v1.Credentials; +import com.google.cloud.vmwareengine.v1.DeleteClusterRequest; +import com.google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest; +import com.google.cloud.vmwareengine.v1.DeletePrivateCloudRequest; +import com.google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest; +import com.google.cloud.vmwareengine.v1.GetClusterRequest; +import com.google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest; +import com.google.cloud.vmwareengine.v1.GetNetworkPolicyRequest; +import com.google.cloud.vmwareengine.v1.GetNodeTypeRequest; +import com.google.cloud.vmwareengine.v1.GetPrivateCloudRequest; +import com.google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest; +import com.google.cloud.vmwareengine.v1.HcxActivationKey; +import com.google.cloud.vmwareengine.v1.ListClustersRequest; +import com.google.cloud.vmwareengine.v1.ListClustersResponse; +import com.google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest; +import com.google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse; +import com.google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest; +import com.google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse; +import com.google.cloud.vmwareengine.v1.ListNodeTypesRequest; +import com.google.cloud.vmwareengine.v1.ListNodeTypesResponse; +import com.google.cloud.vmwareengine.v1.ListPrivateCloudsRequest; +import com.google.cloud.vmwareengine.v1.ListPrivateCloudsResponse; +import com.google.cloud.vmwareengine.v1.ListSubnetsRequest; +import com.google.cloud.vmwareengine.v1.ListSubnetsResponse; +import com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest; +import com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse; +import com.google.cloud.vmwareengine.v1.NetworkPolicy; +import com.google.cloud.vmwareengine.v1.NodeType; +import com.google.cloud.vmwareengine.v1.OperationMetadata; +import com.google.cloud.vmwareengine.v1.PrivateCloud; +import com.google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest; +import com.google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest; +import com.google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest; +import com.google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest; +import com.google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest; +import com.google.cloud.vmwareengine.v1.UpdateClusterRequest; +import com.google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest; +import com.google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest; +import com.google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest; +import com.google.cloud.vmwareengine.v1.VmwareEngineNetwork; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import com.google.protobuf.Empty; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the VmwareEngine service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public abstract class VmwareEngineStub implements BackgroundResource { + + public OperationsStub getOperationsStub() { + return null; + } + + public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + return null; + } + + public UnaryCallable + listPrivateCloudsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listPrivateCloudsPagedCallable()"); + } + + public UnaryCallable + listPrivateCloudsCallable() { + throw new UnsupportedOperationException("Not implemented: listPrivateCloudsCallable()"); + } + + public UnaryCallable getPrivateCloudCallable() { + throw new UnsupportedOperationException("Not implemented: getPrivateCloudCallable()"); + } + + public OperationCallable + createPrivateCloudOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: createPrivateCloudOperationCallable()"); + } + + public UnaryCallable createPrivateCloudCallable() { + throw new UnsupportedOperationException("Not implemented: createPrivateCloudCallable()"); + } + + public OperationCallable + updatePrivateCloudOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: updatePrivateCloudOperationCallable()"); + } + + public UnaryCallable updatePrivateCloudCallable() { + throw new UnsupportedOperationException("Not implemented: updatePrivateCloudCallable()"); + } + + public OperationCallable + deletePrivateCloudOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: deletePrivateCloudOperationCallable()"); + } + + public UnaryCallable deletePrivateCloudCallable() { + throw new UnsupportedOperationException("Not implemented: deletePrivateCloudCallable()"); + } + + public OperationCallable + undeletePrivateCloudOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: undeletePrivateCloudOperationCallable()"); + } + + public UnaryCallable undeletePrivateCloudCallable() { + throw new UnsupportedOperationException("Not implemented: undeletePrivateCloudCallable()"); + } + + public UnaryCallable listClustersPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listClustersPagedCallable()"); + } + + public UnaryCallable listClustersCallable() { + throw new UnsupportedOperationException("Not implemented: listClustersCallable()"); + } + + public UnaryCallable getClusterCallable() { + throw new UnsupportedOperationException("Not implemented: getClusterCallable()"); + } + + public OperationCallable + createClusterOperationCallable() { + throw new UnsupportedOperationException("Not implemented: createClusterOperationCallable()"); + } + + public UnaryCallable createClusterCallable() { + throw new UnsupportedOperationException("Not implemented: createClusterCallable()"); + } + + public OperationCallable + updateClusterOperationCallable() { + throw new UnsupportedOperationException("Not implemented: updateClusterOperationCallable()"); + } + + public UnaryCallable updateClusterCallable() { + throw new UnsupportedOperationException("Not implemented: updateClusterCallable()"); + } + + public OperationCallable + deleteClusterOperationCallable() { + throw new UnsupportedOperationException("Not implemented: deleteClusterOperationCallable()"); + } + + public UnaryCallable deleteClusterCallable() { + throw new UnsupportedOperationException("Not implemented: deleteClusterCallable()"); + } + + public UnaryCallable listSubnetsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listSubnetsPagedCallable()"); + } + + public UnaryCallable listSubnetsCallable() { + throw new UnsupportedOperationException("Not implemented: listSubnetsCallable()"); + } + + public UnaryCallable + listNodeTypesPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listNodeTypesPagedCallable()"); + } + + public UnaryCallable listNodeTypesCallable() { + throw new UnsupportedOperationException("Not implemented: listNodeTypesCallable()"); + } + + public UnaryCallable getNodeTypeCallable() { + throw new UnsupportedOperationException("Not implemented: getNodeTypeCallable()"); + } + + public UnaryCallable showNsxCredentialsCallable() { + throw new UnsupportedOperationException("Not implemented: showNsxCredentialsCallable()"); + } + + public UnaryCallable + showVcenterCredentialsCallable() { + throw new UnsupportedOperationException("Not implemented: showVcenterCredentialsCallable()"); + } + + public OperationCallable + resetNsxCredentialsOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: resetNsxCredentialsOperationCallable()"); + } + + public UnaryCallable resetNsxCredentialsCallable() { + throw new UnsupportedOperationException("Not implemented: resetNsxCredentialsCallable()"); + } + + public OperationCallable + resetVcenterCredentialsOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: resetVcenterCredentialsOperationCallable()"); + } + + public UnaryCallable + resetVcenterCredentialsCallable() { + throw new UnsupportedOperationException("Not implemented: resetVcenterCredentialsCallable()"); + } + + public OperationCallable + createHcxActivationKeyOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: createHcxActivationKeyOperationCallable()"); + } + + public UnaryCallable createHcxActivationKeyCallable() { + throw new UnsupportedOperationException("Not implemented: createHcxActivationKeyCallable()"); + } + + public UnaryCallable + listHcxActivationKeysPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listHcxActivationKeysPagedCallable()"); + } + + public UnaryCallable + listHcxActivationKeysCallable() { + throw new UnsupportedOperationException("Not implemented: listHcxActivationKeysCallable()"); + } + + public UnaryCallable getHcxActivationKeyCallable() { + throw new UnsupportedOperationException("Not implemented: getHcxActivationKeyCallable()"); + } + + public UnaryCallable getNetworkPolicyCallable() { + throw new UnsupportedOperationException("Not implemented: getNetworkPolicyCallable()"); + } + + public UnaryCallable + listNetworkPoliciesPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listNetworkPoliciesPagedCallable()"); + } + + public UnaryCallable + listNetworkPoliciesCallable() { + throw new UnsupportedOperationException("Not implemented: listNetworkPoliciesCallable()"); + } + + public OperationCallable + createNetworkPolicyOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: createNetworkPolicyOperationCallable()"); + } + + public UnaryCallable createNetworkPolicyCallable() { + throw new UnsupportedOperationException("Not implemented: createNetworkPolicyCallable()"); + } + + public OperationCallable + updateNetworkPolicyOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: updateNetworkPolicyOperationCallable()"); + } + + public UnaryCallable updateNetworkPolicyCallable() { + throw new UnsupportedOperationException("Not implemented: updateNetworkPolicyCallable()"); + } + + public OperationCallable + deleteNetworkPolicyOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: deleteNetworkPolicyOperationCallable()"); + } + + public UnaryCallable deleteNetworkPolicyCallable() { + throw new UnsupportedOperationException("Not implemented: deleteNetworkPolicyCallable()"); + } + + public OperationCallable + createVmwareEngineNetworkOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: createVmwareEngineNetworkOperationCallable()"); + } + + public UnaryCallable + createVmwareEngineNetworkCallable() { + throw new UnsupportedOperationException("Not implemented: createVmwareEngineNetworkCallable()"); + } + + public OperationCallable + updateVmwareEngineNetworkOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: updateVmwareEngineNetworkOperationCallable()"); + } + + public UnaryCallable + updateVmwareEngineNetworkCallable() { + throw new UnsupportedOperationException("Not implemented: updateVmwareEngineNetworkCallable()"); + } + + public OperationCallable + deleteVmwareEngineNetworkOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: deleteVmwareEngineNetworkOperationCallable()"); + } + + public UnaryCallable + deleteVmwareEngineNetworkCallable() { + throw new UnsupportedOperationException("Not implemented: deleteVmwareEngineNetworkCallable()"); + } + + public UnaryCallable + getVmwareEngineNetworkCallable() { + throw new UnsupportedOperationException("Not implemented: getVmwareEngineNetworkCallable()"); + } + + public UnaryCallable + listVmwareEngineNetworksPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listVmwareEngineNetworksPagedCallable()"); + } + + public UnaryCallable + listVmwareEngineNetworksCallable() { + throw new UnsupportedOperationException("Not implemented: listVmwareEngineNetworksCallable()"); + } + + public UnaryCallable + listLocationsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()"); + } + + public UnaryCallable listLocationsCallable() { + throw new UnsupportedOperationException("Not implemented: listLocationsCallable()"); + } + + public UnaryCallable getLocationCallable() { + throw new UnsupportedOperationException("Not implemented: getLocationCallable()"); + } + + public UnaryCallable setIamPolicyCallable() { + throw new UnsupportedOperationException("Not implemented: setIamPolicyCallable()"); + } + + public UnaryCallable getIamPolicyCallable() { + throw new UnsupportedOperationException("Not implemented: getIamPolicyCallable()"); + } + + public UnaryCallable + testIamPermissionsCallable() { + throw new UnsupportedOperationException("Not implemented: testIamPermissionsCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/java-vmwareengine/google-cloud-vmwareengine/src/main/java/com/google/cloud/vmwareengine/v1/stub/VmwareEngineStubSettings.java b/java-vmwareengine/google-cloud-vmwareengine/src/main/java/com/google/cloud/vmwareengine/v1/stub/VmwareEngineStubSettings.java new file mode 100644 index 000000000000..56877db56522 --- /dev/null +++ b/java-vmwareengine/google-cloud-vmwareengine/src/main/java/com/google/cloud/vmwareengine/v1/stub/VmwareEngineStubSettings.java @@ -0,0 +1,2575 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.vmwareengine.v1.stub; + +import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListClustersPagedResponse; +import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListHcxActivationKeysPagedResponse; +import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListLocationsPagedResponse; +import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListNetworkPoliciesPagedResponse; +import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListNodeTypesPagedResponse; +import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListPrivateCloudsPagedResponse; +import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListSubnetsPagedResponse; +import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListVmwareEngineNetworksPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.BetaApi; +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.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.grpc.ProtoOperationTransformers; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.longrunning.OperationSnapshot; +import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +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.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.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.vmwareengine.v1.Cluster; +import com.google.cloud.vmwareengine.v1.CreateClusterRequest; +import com.google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest; +import com.google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest; +import com.google.cloud.vmwareengine.v1.CreatePrivateCloudRequest; +import com.google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest; +import com.google.cloud.vmwareengine.v1.Credentials; +import com.google.cloud.vmwareengine.v1.DeleteClusterRequest; +import com.google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest; +import com.google.cloud.vmwareengine.v1.DeletePrivateCloudRequest; +import com.google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest; +import com.google.cloud.vmwareengine.v1.GetClusterRequest; +import com.google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest; +import com.google.cloud.vmwareengine.v1.GetNetworkPolicyRequest; +import com.google.cloud.vmwareengine.v1.GetNodeTypeRequest; +import com.google.cloud.vmwareengine.v1.GetPrivateCloudRequest; +import com.google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest; +import com.google.cloud.vmwareengine.v1.HcxActivationKey; +import com.google.cloud.vmwareengine.v1.ListClustersRequest; +import com.google.cloud.vmwareengine.v1.ListClustersResponse; +import com.google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest; +import com.google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse; +import com.google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest; +import com.google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse; +import com.google.cloud.vmwareengine.v1.ListNodeTypesRequest; +import com.google.cloud.vmwareengine.v1.ListNodeTypesResponse; +import com.google.cloud.vmwareengine.v1.ListPrivateCloudsRequest; +import com.google.cloud.vmwareengine.v1.ListPrivateCloudsResponse; +import com.google.cloud.vmwareengine.v1.ListSubnetsRequest; +import com.google.cloud.vmwareengine.v1.ListSubnetsResponse; +import com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest; +import com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse; +import com.google.cloud.vmwareengine.v1.NetworkPolicy; +import com.google.cloud.vmwareengine.v1.NodeType; +import com.google.cloud.vmwareengine.v1.OperationMetadata; +import com.google.cloud.vmwareengine.v1.PrivateCloud; +import com.google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest; +import com.google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest; +import com.google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest; +import com.google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest; +import com.google.cloud.vmwareengine.v1.Subnet; +import com.google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest; +import com.google.cloud.vmwareengine.v1.UpdateClusterRequest; +import com.google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest; +import com.google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest; +import com.google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest; +import com.google.cloud.vmwareengine.v1.VmwareEngineNetwork; +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 com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; +import org.threeten.bp.Duration; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link VmwareEngineStub}. + * + *

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

    + *
  • The default service address (vmwareengine.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 total timeout of getPrivateCloud to 30 seconds: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * VmwareEngineStubSettings.Builder vmwareEngineSettingsBuilder =
+ *     VmwareEngineStubSettings.newBuilder();
+ * vmwareEngineSettingsBuilder
+ *     .getPrivateCloudSettings()
+ *     .setRetrySettings(
+ *         vmwareEngineSettingsBuilder.getPrivateCloudSettings().getRetrySettings().toBuilder()
+ *             .setTotalTimeout(Duration.ofSeconds(30))
+ *             .build());
+ * VmwareEngineStubSettings vmwareEngineSettings = vmwareEngineSettingsBuilder.build();
+ * }
+ */ +@Generated("by gapic-generator-java") +public class VmwareEngineStubSettings extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); + + private final PagedCallSettings< + ListPrivateCloudsRequest, ListPrivateCloudsResponse, ListPrivateCloudsPagedResponse> + listPrivateCloudsSettings; + private final UnaryCallSettings getPrivateCloudSettings; + private final UnaryCallSettings createPrivateCloudSettings; + private final OperationCallSettings + createPrivateCloudOperationSettings; + private final UnaryCallSettings updatePrivateCloudSettings; + private final OperationCallSettings + updatePrivateCloudOperationSettings; + private final UnaryCallSettings deletePrivateCloudSettings; + private final OperationCallSettings + deletePrivateCloudOperationSettings; + private final UnaryCallSettings + undeletePrivateCloudSettings; + private final OperationCallSettings + undeletePrivateCloudOperationSettings; + private final PagedCallSettings< + ListClustersRequest, ListClustersResponse, ListClustersPagedResponse> + listClustersSettings; + private final UnaryCallSettings getClusterSettings; + private final UnaryCallSettings createClusterSettings; + private final OperationCallSettings + createClusterOperationSettings; + private final UnaryCallSettings updateClusterSettings; + private final OperationCallSettings + updateClusterOperationSettings; + private final UnaryCallSettings deleteClusterSettings; + private final OperationCallSettings + deleteClusterOperationSettings; + private final PagedCallSettings + listSubnetsSettings; + private final PagedCallSettings< + ListNodeTypesRequest, ListNodeTypesResponse, ListNodeTypesPagedResponse> + listNodeTypesSettings; + private final UnaryCallSettings getNodeTypeSettings; + private final UnaryCallSettings + showNsxCredentialsSettings; + private final UnaryCallSettings + showVcenterCredentialsSettings; + private final UnaryCallSettings + resetNsxCredentialsSettings; + private final OperationCallSettings + resetNsxCredentialsOperationSettings; + private final UnaryCallSettings + resetVcenterCredentialsSettings; + private final OperationCallSettings< + ResetVcenterCredentialsRequest, PrivateCloud, OperationMetadata> + resetVcenterCredentialsOperationSettings; + private final UnaryCallSettings + createHcxActivationKeySettings; + private final OperationCallSettings< + CreateHcxActivationKeyRequest, HcxActivationKey, OperationMetadata> + createHcxActivationKeyOperationSettings; + private final PagedCallSettings< + ListHcxActivationKeysRequest, + ListHcxActivationKeysResponse, + ListHcxActivationKeysPagedResponse> + listHcxActivationKeysSettings; + private final UnaryCallSettings + getHcxActivationKeySettings; + private final UnaryCallSettings getNetworkPolicySettings; + private final PagedCallSettings< + ListNetworkPoliciesRequest, ListNetworkPoliciesResponse, ListNetworkPoliciesPagedResponse> + listNetworkPoliciesSettings; + private final UnaryCallSettings + createNetworkPolicySettings; + private final OperationCallSettings + createNetworkPolicyOperationSettings; + private final UnaryCallSettings + updateNetworkPolicySettings; + private final OperationCallSettings + updateNetworkPolicyOperationSettings; + private final UnaryCallSettings + deleteNetworkPolicySettings; + private final OperationCallSettings + deleteNetworkPolicyOperationSettings; + private final UnaryCallSettings + createVmwareEngineNetworkSettings; + private final OperationCallSettings< + CreateVmwareEngineNetworkRequest, VmwareEngineNetwork, OperationMetadata> + createVmwareEngineNetworkOperationSettings; + private final UnaryCallSettings + updateVmwareEngineNetworkSettings; + private final OperationCallSettings< + UpdateVmwareEngineNetworkRequest, VmwareEngineNetwork, OperationMetadata> + updateVmwareEngineNetworkOperationSettings; + private final UnaryCallSettings + deleteVmwareEngineNetworkSettings; + private final OperationCallSettings + deleteVmwareEngineNetworkOperationSettings; + private final UnaryCallSettings + getVmwareEngineNetworkSettings; + private final PagedCallSettings< + ListVmwareEngineNetworksRequest, + ListVmwareEngineNetworksResponse, + ListVmwareEngineNetworksPagedResponse> + listVmwareEngineNetworksSettings; + private final PagedCallSettings< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings; + private final UnaryCallSettings getLocationSettings; + private final UnaryCallSettings setIamPolicySettings; + private final UnaryCallSettings getIamPolicySettings; + private final UnaryCallSettings + testIamPermissionsSettings; + + private static final PagedListDescriptor< + ListPrivateCloudsRequest, ListPrivateCloudsResponse, PrivateCloud> + LIST_PRIVATE_CLOUDS_PAGE_STR_DESC = + new PagedListDescriptor< + ListPrivateCloudsRequest, ListPrivateCloudsResponse, PrivateCloud>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListPrivateCloudsRequest injectToken( + ListPrivateCloudsRequest payload, String token) { + return ListPrivateCloudsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListPrivateCloudsRequest injectPageSize( + ListPrivateCloudsRequest payload, int pageSize) { + return ListPrivateCloudsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListPrivateCloudsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListPrivateCloudsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListPrivateCloudsResponse payload) { + return payload.getPrivateCloudsList() == null + ? ImmutableList.of() + : payload.getPrivateCloudsList(); + } + }; + + private static final PagedListDescriptor + LIST_CLUSTERS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListClustersRequest injectToken(ListClustersRequest payload, String token) { + return ListClustersRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListClustersRequest injectPageSize(ListClustersRequest payload, int pageSize) { + return ListClustersRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListClustersRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListClustersResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListClustersResponse payload) { + return payload.getClustersList() == null + ? ImmutableList.of() + : payload.getClustersList(); + } + }; + + private static final PagedListDescriptor + LIST_SUBNETS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListSubnetsRequest injectToken(ListSubnetsRequest payload, String token) { + return ListSubnetsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListSubnetsRequest injectPageSize(ListSubnetsRequest payload, int pageSize) { + return ListSubnetsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListSubnetsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListSubnetsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListSubnetsResponse payload) { + return payload.getSubnetsList() == null + ? ImmutableList.of() + : payload.getSubnetsList(); + } + }; + + private static final PagedListDescriptor + LIST_NODE_TYPES_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListNodeTypesRequest injectToken(ListNodeTypesRequest payload, String token) { + return ListNodeTypesRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListNodeTypesRequest injectPageSize(ListNodeTypesRequest payload, int pageSize) { + return ListNodeTypesRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListNodeTypesRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListNodeTypesResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListNodeTypesResponse payload) { + return payload.getNodeTypesList() == null + ? ImmutableList.of() + : payload.getNodeTypesList(); + } + }; + + private static final PagedListDescriptor< + ListHcxActivationKeysRequest, ListHcxActivationKeysResponse, HcxActivationKey> + LIST_HCX_ACTIVATION_KEYS_PAGE_STR_DESC = + new PagedListDescriptor< + ListHcxActivationKeysRequest, ListHcxActivationKeysResponse, HcxActivationKey>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListHcxActivationKeysRequest injectToken( + ListHcxActivationKeysRequest payload, String token) { + return ListHcxActivationKeysRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListHcxActivationKeysRequest injectPageSize( + ListHcxActivationKeysRequest payload, int pageSize) { + return ListHcxActivationKeysRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListHcxActivationKeysRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListHcxActivationKeysResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListHcxActivationKeysResponse payload) { + return payload.getHcxActivationKeysList() == null + ? ImmutableList.of() + : payload.getHcxActivationKeysList(); + } + }; + + private static final PagedListDescriptor< + ListNetworkPoliciesRequest, ListNetworkPoliciesResponse, NetworkPolicy> + LIST_NETWORK_POLICIES_PAGE_STR_DESC = + new PagedListDescriptor< + ListNetworkPoliciesRequest, ListNetworkPoliciesResponse, NetworkPolicy>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListNetworkPoliciesRequest injectToken( + ListNetworkPoliciesRequest payload, String token) { + return ListNetworkPoliciesRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListNetworkPoliciesRequest injectPageSize( + ListNetworkPoliciesRequest payload, int pageSize) { + return ListNetworkPoliciesRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListNetworkPoliciesRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListNetworkPoliciesResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListNetworkPoliciesResponse payload) { + return payload.getNetworkPoliciesList() == null + ? ImmutableList.of() + : payload.getNetworkPoliciesList(); + } + }; + + private static final PagedListDescriptor< + ListVmwareEngineNetworksRequest, ListVmwareEngineNetworksResponse, VmwareEngineNetwork> + LIST_VMWARE_ENGINE_NETWORKS_PAGE_STR_DESC = + new PagedListDescriptor< + ListVmwareEngineNetworksRequest, + ListVmwareEngineNetworksResponse, + VmwareEngineNetwork>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListVmwareEngineNetworksRequest injectToken( + ListVmwareEngineNetworksRequest payload, String token) { + return ListVmwareEngineNetworksRequest.newBuilder(payload) + .setPageToken(token) + .build(); + } + + @Override + public ListVmwareEngineNetworksRequest injectPageSize( + ListVmwareEngineNetworksRequest payload, int pageSize) { + return ListVmwareEngineNetworksRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(ListVmwareEngineNetworksRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListVmwareEngineNetworksResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListVmwareEngineNetworksResponse payload) { + return payload.getVmwareEngineNetworksList() == null + ? ImmutableList.of() + : payload.getVmwareEngineNetworksList(); + } + }; + + private static final PagedListDescriptor + LIST_LOCATIONS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListLocationsRequest injectToken(ListLocationsRequest payload, String token) { + return ListLocationsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListLocationsRequest injectPageSize(ListLocationsRequest payload, int pageSize) { + return ListLocationsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListLocationsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListLocationsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListLocationsResponse payload) { + return payload.getLocationsList() == null + ? ImmutableList.of() + : payload.getLocationsList(); + } + }; + + private static final PagedListResponseFactory< + ListPrivateCloudsRequest, ListPrivateCloudsResponse, ListPrivateCloudsPagedResponse> + LIST_PRIVATE_CLOUDS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListPrivateCloudsRequest, + ListPrivateCloudsResponse, + ListPrivateCloudsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListPrivateCloudsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext + pageContext = + PageContext.create( + callable, LIST_PRIVATE_CLOUDS_PAGE_STR_DESC, request, context); + return ListPrivateCloudsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListClustersRequest, ListClustersResponse, ListClustersPagedResponse> + LIST_CLUSTERS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListClustersRequest, ListClustersResponse, ListClustersPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListClustersRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_CLUSTERS_PAGE_STR_DESC, request, context); + return ListClustersPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListSubnetsRequest, ListSubnetsResponse, ListSubnetsPagedResponse> + LIST_SUBNETS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListSubnetsRequest, ListSubnetsResponse, ListSubnetsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListSubnetsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_SUBNETS_PAGE_STR_DESC, request, context); + return ListSubnetsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListNodeTypesRequest, ListNodeTypesResponse, ListNodeTypesPagedResponse> + LIST_NODE_TYPES_PAGE_STR_FACT = + new PagedListResponseFactory< + ListNodeTypesRequest, ListNodeTypesResponse, ListNodeTypesPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListNodeTypesRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_NODE_TYPES_PAGE_STR_DESC, request, context); + return ListNodeTypesPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListHcxActivationKeysRequest, + ListHcxActivationKeysResponse, + ListHcxActivationKeysPagedResponse> + LIST_HCX_ACTIVATION_KEYS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListHcxActivationKeysRequest, + ListHcxActivationKeysResponse, + ListHcxActivationKeysPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListHcxActivationKeysRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListHcxActivationKeysRequest, ListHcxActivationKeysResponse, HcxActivationKey> + pageContext = + PageContext.create( + callable, LIST_HCX_ACTIVATION_KEYS_PAGE_STR_DESC, request, context); + return ListHcxActivationKeysPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListNetworkPoliciesRequest, ListNetworkPoliciesResponse, ListNetworkPoliciesPagedResponse> + LIST_NETWORK_POLICIES_PAGE_STR_FACT = + new PagedListResponseFactory< + ListNetworkPoliciesRequest, + ListNetworkPoliciesResponse, + ListNetworkPoliciesPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListNetworkPoliciesRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext + pageContext = + PageContext.create( + callable, LIST_NETWORK_POLICIES_PAGE_STR_DESC, request, context); + return ListNetworkPoliciesPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListVmwareEngineNetworksRequest, + ListVmwareEngineNetworksResponse, + ListVmwareEngineNetworksPagedResponse> + LIST_VMWARE_ENGINE_NETWORKS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListVmwareEngineNetworksRequest, + ListVmwareEngineNetworksResponse, + ListVmwareEngineNetworksPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable + callable, + ListVmwareEngineNetworksRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListVmwareEngineNetworksRequest, + ListVmwareEngineNetworksResponse, + VmwareEngineNetwork> + pageContext = + PageContext.create( + callable, LIST_VMWARE_ENGINE_NETWORKS_PAGE_STR_DESC, request, context); + return ListVmwareEngineNetworksPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + LIST_LOCATIONS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListLocationsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_LOCATIONS_PAGE_STR_DESC, request, context); + return ListLocationsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to listPrivateClouds. */ + public PagedCallSettings< + ListPrivateCloudsRequest, ListPrivateCloudsResponse, ListPrivateCloudsPagedResponse> + listPrivateCloudsSettings() { + return listPrivateCloudsSettings; + } + + /** Returns the object with the settings used for calls to getPrivateCloud. */ + public UnaryCallSettings getPrivateCloudSettings() { + return getPrivateCloudSettings; + } + + /** Returns the object with the settings used for calls to createPrivateCloud. */ + public UnaryCallSettings createPrivateCloudSettings() { + return createPrivateCloudSettings; + } + + /** Returns the object with the settings used for calls to createPrivateCloud. */ + public OperationCallSettings + createPrivateCloudOperationSettings() { + return createPrivateCloudOperationSettings; + } + + /** Returns the object with the settings used for calls to updatePrivateCloud. */ + public UnaryCallSettings updatePrivateCloudSettings() { + return updatePrivateCloudSettings; + } + + /** Returns the object with the settings used for calls to updatePrivateCloud. */ + public OperationCallSettings + updatePrivateCloudOperationSettings() { + return updatePrivateCloudOperationSettings; + } + + /** Returns the object with the settings used for calls to deletePrivateCloud. */ + public UnaryCallSettings deletePrivateCloudSettings() { + return deletePrivateCloudSettings; + } + + /** Returns the object with the settings used for calls to deletePrivateCloud. */ + public OperationCallSettings + deletePrivateCloudOperationSettings() { + return deletePrivateCloudOperationSettings; + } + + /** Returns the object with the settings used for calls to undeletePrivateCloud. */ + public UnaryCallSettings undeletePrivateCloudSettings() { + return undeletePrivateCloudSettings; + } + + /** Returns the object with the settings used for calls to undeletePrivateCloud. */ + public OperationCallSettings + undeletePrivateCloudOperationSettings() { + return undeletePrivateCloudOperationSettings; + } + + /** Returns the object with the settings used for calls to listClusters. */ + public PagedCallSettings + listClustersSettings() { + return listClustersSettings; + } + + /** Returns the object with the settings used for calls to getCluster. */ + public UnaryCallSettings getClusterSettings() { + return getClusterSettings; + } + + /** Returns the object with the settings used for calls to createCluster. */ + public UnaryCallSettings createClusterSettings() { + return createClusterSettings; + } + + /** Returns the object with the settings used for calls to createCluster. */ + public OperationCallSettings + createClusterOperationSettings() { + return createClusterOperationSettings; + } + + /** Returns the object with the settings used for calls to updateCluster. */ + public UnaryCallSettings updateClusterSettings() { + return updateClusterSettings; + } + + /** Returns the object with the settings used for calls to updateCluster. */ + public OperationCallSettings + updateClusterOperationSettings() { + return updateClusterOperationSettings; + } + + /** Returns the object with the settings used for calls to deleteCluster. */ + public UnaryCallSettings deleteClusterSettings() { + return deleteClusterSettings; + } + + /** Returns the object with the settings used for calls to deleteCluster. */ + public OperationCallSettings + deleteClusterOperationSettings() { + return deleteClusterOperationSettings; + } + + /** Returns the object with the settings used for calls to listSubnets. */ + public PagedCallSettings + listSubnetsSettings() { + return listSubnetsSettings; + } + + /** Returns the object with the settings used for calls to listNodeTypes. */ + public PagedCallSettings + listNodeTypesSettings() { + return listNodeTypesSettings; + } + + /** Returns the object with the settings used for calls to getNodeType. */ + public UnaryCallSettings getNodeTypeSettings() { + return getNodeTypeSettings; + } + + /** Returns the object with the settings used for calls to showNsxCredentials. */ + public UnaryCallSettings showNsxCredentialsSettings() { + return showNsxCredentialsSettings; + } + + /** Returns the object with the settings used for calls to showVcenterCredentials. */ + public UnaryCallSettings + showVcenterCredentialsSettings() { + return showVcenterCredentialsSettings; + } + + /** Returns the object with the settings used for calls to resetNsxCredentials. */ + public UnaryCallSettings resetNsxCredentialsSettings() { + return resetNsxCredentialsSettings; + } + + /** Returns the object with the settings used for calls to resetNsxCredentials. */ + public OperationCallSettings + resetNsxCredentialsOperationSettings() { + return resetNsxCredentialsOperationSettings; + } + + /** Returns the object with the settings used for calls to resetVcenterCredentials. */ + public UnaryCallSettings + resetVcenterCredentialsSettings() { + return resetVcenterCredentialsSettings; + } + + /** Returns the object with the settings used for calls to resetVcenterCredentials. */ + public OperationCallSettings + resetVcenterCredentialsOperationSettings() { + return resetVcenterCredentialsOperationSettings; + } + + /** Returns the object with the settings used for calls to createHcxActivationKey. */ + public UnaryCallSettings + createHcxActivationKeySettings() { + return createHcxActivationKeySettings; + } + + /** Returns the object with the settings used for calls to createHcxActivationKey. */ + public OperationCallSettings + createHcxActivationKeyOperationSettings() { + return createHcxActivationKeyOperationSettings; + } + + /** Returns the object with the settings used for calls to listHcxActivationKeys. */ + public PagedCallSettings< + ListHcxActivationKeysRequest, + ListHcxActivationKeysResponse, + ListHcxActivationKeysPagedResponse> + listHcxActivationKeysSettings() { + return listHcxActivationKeysSettings; + } + + /** Returns the object with the settings used for calls to getHcxActivationKey. */ + public UnaryCallSettings + getHcxActivationKeySettings() { + return getHcxActivationKeySettings; + } + + /** Returns the object with the settings used for calls to getNetworkPolicy. */ + public UnaryCallSettings getNetworkPolicySettings() { + return getNetworkPolicySettings; + } + + /** Returns the object with the settings used for calls to listNetworkPolicies. */ + public PagedCallSettings< + ListNetworkPoliciesRequest, ListNetworkPoliciesResponse, ListNetworkPoliciesPagedResponse> + listNetworkPoliciesSettings() { + return listNetworkPoliciesSettings; + } + + /** Returns the object with the settings used for calls to createNetworkPolicy. */ + public UnaryCallSettings createNetworkPolicySettings() { + return createNetworkPolicySettings; + } + + /** Returns the object with the settings used for calls to createNetworkPolicy. */ + public OperationCallSettings + createNetworkPolicyOperationSettings() { + return createNetworkPolicyOperationSettings; + } + + /** Returns the object with the settings used for calls to updateNetworkPolicy. */ + public UnaryCallSettings updateNetworkPolicySettings() { + return updateNetworkPolicySettings; + } + + /** Returns the object with the settings used for calls to updateNetworkPolicy. */ + public OperationCallSettings + updateNetworkPolicyOperationSettings() { + return updateNetworkPolicyOperationSettings; + } + + /** Returns the object with the settings used for calls to deleteNetworkPolicy. */ + public UnaryCallSettings deleteNetworkPolicySettings() { + return deleteNetworkPolicySettings; + } + + /** Returns the object with the settings used for calls to deleteNetworkPolicy. */ + public OperationCallSettings + deleteNetworkPolicyOperationSettings() { + return deleteNetworkPolicyOperationSettings; + } + + /** Returns the object with the settings used for calls to createVmwareEngineNetwork. */ + public UnaryCallSettings + createVmwareEngineNetworkSettings() { + return createVmwareEngineNetworkSettings; + } + + /** Returns the object with the settings used for calls to createVmwareEngineNetwork. */ + public OperationCallSettings< + CreateVmwareEngineNetworkRequest, VmwareEngineNetwork, OperationMetadata> + createVmwareEngineNetworkOperationSettings() { + return createVmwareEngineNetworkOperationSettings; + } + + /** Returns the object with the settings used for calls to updateVmwareEngineNetwork. */ + public UnaryCallSettings + updateVmwareEngineNetworkSettings() { + return updateVmwareEngineNetworkSettings; + } + + /** Returns the object with the settings used for calls to updateVmwareEngineNetwork. */ + public OperationCallSettings< + UpdateVmwareEngineNetworkRequest, VmwareEngineNetwork, OperationMetadata> + updateVmwareEngineNetworkOperationSettings() { + return updateVmwareEngineNetworkOperationSettings; + } + + /** Returns the object with the settings used for calls to deleteVmwareEngineNetwork. */ + public UnaryCallSettings + deleteVmwareEngineNetworkSettings() { + return deleteVmwareEngineNetworkSettings; + } + + /** Returns the object with the settings used for calls to deleteVmwareEngineNetwork. */ + public OperationCallSettings + deleteVmwareEngineNetworkOperationSettings() { + return deleteVmwareEngineNetworkOperationSettings; + } + + /** Returns the object with the settings used for calls to getVmwareEngineNetwork. */ + public UnaryCallSettings + getVmwareEngineNetworkSettings() { + return getVmwareEngineNetworkSettings; + } + + /** Returns the object with the settings used for calls to listVmwareEngineNetworks. */ + public PagedCallSettings< + ListVmwareEngineNetworksRequest, + ListVmwareEngineNetworksResponse, + ListVmwareEngineNetworksPagedResponse> + listVmwareEngineNetworksSettings() { + return listVmwareEngineNetworksSettings; + } + + /** Returns the object with the settings used for calls to listLocations. */ + public PagedCallSettings + listLocationsSettings() { + return listLocationsSettings; + } + + /** Returns the object with the settings used for calls to getLocation. */ + public UnaryCallSettings getLocationSettings() { + return getLocationSettings; + } + + /** 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 getIamPolicy. */ + public UnaryCallSettings getIamPolicySettings() { + return getIamPolicySettings; + } + + /** Returns the object with the settings used for calls to testIamPermissions. */ + public UnaryCallSettings + testIamPermissionsSettings() { + return testIamPermissionsSettings; + } + + public VmwareEngineStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcVmwareEngineStub.create(this); + } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonVmwareEngineStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return "vmwareengine.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "vmwareengine.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 gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder() + .setMaxInboundMessageSize(Integer.MAX_VALUE); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(VmwareEngineStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(VmwareEngineStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return VmwareEngineStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected VmwareEngineStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + listPrivateCloudsSettings = settingsBuilder.listPrivateCloudsSettings().build(); + getPrivateCloudSettings = settingsBuilder.getPrivateCloudSettings().build(); + createPrivateCloudSettings = settingsBuilder.createPrivateCloudSettings().build(); + createPrivateCloudOperationSettings = + settingsBuilder.createPrivateCloudOperationSettings().build(); + updatePrivateCloudSettings = settingsBuilder.updatePrivateCloudSettings().build(); + updatePrivateCloudOperationSettings = + settingsBuilder.updatePrivateCloudOperationSettings().build(); + deletePrivateCloudSettings = settingsBuilder.deletePrivateCloudSettings().build(); + deletePrivateCloudOperationSettings = + settingsBuilder.deletePrivateCloudOperationSettings().build(); + undeletePrivateCloudSettings = settingsBuilder.undeletePrivateCloudSettings().build(); + undeletePrivateCloudOperationSettings = + settingsBuilder.undeletePrivateCloudOperationSettings().build(); + listClustersSettings = settingsBuilder.listClustersSettings().build(); + getClusterSettings = settingsBuilder.getClusterSettings().build(); + createClusterSettings = settingsBuilder.createClusterSettings().build(); + createClusterOperationSettings = settingsBuilder.createClusterOperationSettings().build(); + updateClusterSettings = settingsBuilder.updateClusterSettings().build(); + updateClusterOperationSettings = settingsBuilder.updateClusterOperationSettings().build(); + deleteClusterSettings = settingsBuilder.deleteClusterSettings().build(); + deleteClusterOperationSettings = settingsBuilder.deleteClusterOperationSettings().build(); + listSubnetsSettings = settingsBuilder.listSubnetsSettings().build(); + listNodeTypesSettings = settingsBuilder.listNodeTypesSettings().build(); + getNodeTypeSettings = settingsBuilder.getNodeTypeSettings().build(); + showNsxCredentialsSettings = settingsBuilder.showNsxCredentialsSettings().build(); + showVcenterCredentialsSettings = settingsBuilder.showVcenterCredentialsSettings().build(); + resetNsxCredentialsSettings = settingsBuilder.resetNsxCredentialsSettings().build(); + resetNsxCredentialsOperationSettings = + settingsBuilder.resetNsxCredentialsOperationSettings().build(); + resetVcenterCredentialsSettings = settingsBuilder.resetVcenterCredentialsSettings().build(); + resetVcenterCredentialsOperationSettings = + settingsBuilder.resetVcenterCredentialsOperationSettings().build(); + createHcxActivationKeySettings = settingsBuilder.createHcxActivationKeySettings().build(); + createHcxActivationKeyOperationSettings = + settingsBuilder.createHcxActivationKeyOperationSettings().build(); + listHcxActivationKeysSettings = settingsBuilder.listHcxActivationKeysSettings().build(); + getHcxActivationKeySettings = settingsBuilder.getHcxActivationKeySettings().build(); + getNetworkPolicySettings = settingsBuilder.getNetworkPolicySettings().build(); + listNetworkPoliciesSettings = settingsBuilder.listNetworkPoliciesSettings().build(); + createNetworkPolicySettings = settingsBuilder.createNetworkPolicySettings().build(); + createNetworkPolicyOperationSettings = + settingsBuilder.createNetworkPolicyOperationSettings().build(); + updateNetworkPolicySettings = settingsBuilder.updateNetworkPolicySettings().build(); + updateNetworkPolicyOperationSettings = + settingsBuilder.updateNetworkPolicyOperationSettings().build(); + deleteNetworkPolicySettings = settingsBuilder.deleteNetworkPolicySettings().build(); + deleteNetworkPolicyOperationSettings = + settingsBuilder.deleteNetworkPolicyOperationSettings().build(); + createVmwareEngineNetworkSettings = settingsBuilder.createVmwareEngineNetworkSettings().build(); + createVmwareEngineNetworkOperationSettings = + settingsBuilder.createVmwareEngineNetworkOperationSettings().build(); + updateVmwareEngineNetworkSettings = settingsBuilder.updateVmwareEngineNetworkSettings().build(); + updateVmwareEngineNetworkOperationSettings = + settingsBuilder.updateVmwareEngineNetworkOperationSettings().build(); + deleteVmwareEngineNetworkSettings = settingsBuilder.deleteVmwareEngineNetworkSettings().build(); + deleteVmwareEngineNetworkOperationSettings = + settingsBuilder.deleteVmwareEngineNetworkOperationSettings().build(); + getVmwareEngineNetworkSettings = settingsBuilder.getVmwareEngineNetworkSettings().build(); + listVmwareEngineNetworksSettings = settingsBuilder.listVmwareEngineNetworksSettings().build(); + listLocationsSettings = settingsBuilder.listLocationsSettings().build(); + getLocationSettings = settingsBuilder.getLocationSettings().build(); + setIamPolicySettings = settingsBuilder.setIamPolicySettings().build(); + getIamPolicySettings = settingsBuilder.getIamPolicySettings().build(); + testIamPermissionsSettings = settingsBuilder.testIamPermissionsSettings().build(); + } + + /** Builder for VmwareEngineStubSettings. */ + public static class Builder extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final PagedCallSettings.Builder< + ListPrivateCloudsRequest, ListPrivateCloudsResponse, ListPrivateCloudsPagedResponse> + listPrivateCloudsSettings; + private final UnaryCallSettings.Builder + getPrivateCloudSettings; + private final UnaryCallSettings.Builder + createPrivateCloudSettings; + private final OperationCallSettings.Builder< + CreatePrivateCloudRequest, PrivateCloud, OperationMetadata> + createPrivateCloudOperationSettings; + private final UnaryCallSettings.Builder + updatePrivateCloudSettings; + private final OperationCallSettings.Builder< + UpdatePrivateCloudRequest, PrivateCloud, OperationMetadata> + updatePrivateCloudOperationSettings; + private final UnaryCallSettings.Builder + deletePrivateCloudSettings; + private final OperationCallSettings.Builder< + DeletePrivateCloudRequest, PrivateCloud, OperationMetadata> + deletePrivateCloudOperationSettings; + private final UnaryCallSettings.Builder + undeletePrivateCloudSettings; + private final OperationCallSettings.Builder< + UndeletePrivateCloudRequest, PrivateCloud, OperationMetadata> + undeletePrivateCloudOperationSettings; + private final PagedCallSettings.Builder< + ListClustersRequest, ListClustersResponse, ListClustersPagedResponse> + listClustersSettings; + private final UnaryCallSettings.Builder getClusterSettings; + private final UnaryCallSettings.Builder createClusterSettings; + private final OperationCallSettings.Builder + createClusterOperationSettings; + private final UnaryCallSettings.Builder updateClusterSettings; + private final OperationCallSettings.Builder + updateClusterOperationSettings; + private final UnaryCallSettings.Builder deleteClusterSettings; + private final OperationCallSettings.Builder + deleteClusterOperationSettings; + private final PagedCallSettings.Builder< + ListSubnetsRequest, ListSubnetsResponse, ListSubnetsPagedResponse> + listSubnetsSettings; + private final PagedCallSettings.Builder< + ListNodeTypesRequest, ListNodeTypesResponse, ListNodeTypesPagedResponse> + listNodeTypesSettings; + private final UnaryCallSettings.Builder getNodeTypeSettings; + private final UnaryCallSettings.Builder + showNsxCredentialsSettings; + private final UnaryCallSettings.Builder + showVcenterCredentialsSettings; + private final UnaryCallSettings.Builder + resetNsxCredentialsSettings; + private final OperationCallSettings.Builder< + ResetNsxCredentialsRequest, PrivateCloud, OperationMetadata> + resetNsxCredentialsOperationSettings; + private final UnaryCallSettings.Builder + resetVcenterCredentialsSettings; + private final OperationCallSettings.Builder< + ResetVcenterCredentialsRequest, PrivateCloud, OperationMetadata> + resetVcenterCredentialsOperationSettings; + private final UnaryCallSettings.Builder + createHcxActivationKeySettings; + private final OperationCallSettings.Builder< + CreateHcxActivationKeyRequest, HcxActivationKey, OperationMetadata> + createHcxActivationKeyOperationSettings; + private final PagedCallSettings.Builder< + ListHcxActivationKeysRequest, + ListHcxActivationKeysResponse, + ListHcxActivationKeysPagedResponse> + listHcxActivationKeysSettings; + private final UnaryCallSettings.Builder + getHcxActivationKeySettings; + private final UnaryCallSettings.Builder + getNetworkPolicySettings; + private final PagedCallSettings.Builder< + ListNetworkPoliciesRequest, + ListNetworkPoliciesResponse, + ListNetworkPoliciesPagedResponse> + listNetworkPoliciesSettings; + private final UnaryCallSettings.Builder + createNetworkPolicySettings; + private final OperationCallSettings.Builder< + CreateNetworkPolicyRequest, NetworkPolicy, OperationMetadata> + createNetworkPolicyOperationSettings; + private final UnaryCallSettings.Builder + updateNetworkPolicySettings; + private final OperationCallSettings.Builder< + UpdateNetworkPolicyRequest, NetworkPolicy, OperationMetadata> + updateNetworkPolicyOperationSettings; + private final UnaryCallSettings.Builder + deleteNetworkPolicySettings; + private final OperationCallSettings.Builder< + DeleteNetworkPolicyRequest, Empty, OperationMetadata> + deleteNetworkPolicyOperationSettings; + private final UnaryCallSettings.Builder + createVmwareEngineNetworkSettings; + private final OperationCallSettings.Builder< + CreateVmwareEngineNetworkRequest, VmwareEngineNetwork, OperationMetadata> + createVmwareEngineNetworkOperationSettings; + private final UnaryCallSettings.Builder + updateVmwareEngineNetworkSettings; + private final OperationCallSettings.Builder< + UpdateVmwareEngineNetworkRequest, VmwareEngineNetwork, OperationMetadata> + updateVmwareEngineNetworkOperationSettings; + private final UnaryCallSettings.Builder + deleteVmwareEngineNetworkSettings; + private final OperationCallSettings.Builder< + DeleteVmwareEngineNetworkRequest, Empty, OperationMetadata> + deleteVmwareEngineNetworkOperationSettings; + private final UnaryCallSettings.Builder + getVmwareEngineNetworkSettings; + private final PagedCallSettings.Builder< + ListVmwareEngineNetworksRequest, + ListVmwareEngineNetworksResponse, + ListVmwareEngineNetworksPagedResponse> + listVmwareEngineNetworksSettings; + private final PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings; + private final UnaryCallSettings.Builder getLocationSettings; + private final UnaryCallSettings.Builder setIamPolicySettings; + private final UnaryCallSettings.Builder getIamPolicySettings; + private final UnaryCallSettings.Builder + testIamPermissionsSettings; + 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.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() + .setInitialRetryDelay(Duration.ofMillis(1000L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelay(Duration.ofMillis(10000L)) + .setInitialRpcTimeout(Duration.ofMillis(120000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ofMillis(120000L)) + .setTotalTimeout(Duration.ofMillis(120000L)) + .build(); + definitions.put("retry_policy_0_params", settings); + settings = + RetrySettings.newBuilder() + .setInitialRpcTimeout(Duration.ofMillis(120000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ofMillis(120000L)) + .setTotalTimeout(Duration.ofMillis(120000L)) + .build(); + definitions.put("no_retry_1_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + listPrivateCloudsSettings = PagedCallSettings.newBuilder(LIST_PRIVATE_CLOUDS_PAGE_STR_FACT); + getPrivateCloudSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createPrivateCloudSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createPrivateCloudOperationSettings = OperationCallSettings.newBuilder(); + updatePrivateCloudSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updatePrivateCloudOperationSettings = OperationCallSettings.newBuilder(); + deletePrivateCloudSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deletePrivateCloudOperationSettings = OperationCallSettings.newBuilder(); + undeletePrivateCloudSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + undeletePrivateCloudOperationSettings = OperationCallSettings.newBuilder(); + listClustersSettings = PagedCallSettings.newBuilder(LIST_CLUSTERS_PAGE_STR_FACT); + getClusterSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createClusterSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createClusterOperationSettings = OperationCallSettings.newBuilder(); + updateClusterSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateClusterOperationSettings = OperationCallSettings.newBuilder(); + deleteClusterSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteClusterOperationSettings = OperationCallSettings.newBuilder(); + listSubnetsSettings = PagedCallSettings.newBuilder(LIST_SUBNETS_PAGE_STR_FACT); + listNodeTypesSettings = PagedCallSettings.newBuilder(LIST_NODE_TYPES_PAGE_STR_FACT); + getNodeTypeSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + showNsxCredentialsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + showVcenterCredentialsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + resetNsxCredentialsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + resetNsxCredentialsOperationSettings = OperationCallSettings.newBuilder(); + resetVcenterCredentialsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + resetVcenterCredentialsOperationSettings = OperationCallSettings.newBuilder(); + createHcxActivationKeySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createHcxActivationKeyOperationSettings = OperationCallSettings.newBuilder(); + listHcxActivationKeysSettings = + PagedCallSettings.newBuilder(LIST_HCX_ACTIVATION_KEYS_PAGE_STR_FACT); + getHcxActivationKeySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + getNetworkPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listNetworkPoliciesSettings = + PagedCallSettings.newBuilder(LIST_NETWORK_POLICIES_PAGE_STR_FACT); + createNetworkPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createNetworkPolicyOperationSettings = OperationCallSettings.newBuilder(); + updateNetworkPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateNetworkPolicyOperationSettings = OperationCallSettings.newBuilder(); + deleteNetworkPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteNetworkPolicyOperationSettings = OperationCallSettings.newBuilder(); + createVmwareEngineNetworkSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createVmwareEngineNetworkOperationSettings = OperationCallSettings.newBuilder(); + updateVmwareEngineNetworkSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateVmwareEngineNetworkOperationSettings = OperationCallSettings.newBuilder(); + deleteVmwareEngineNetworkSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteVmwareEngineNetworkOperationSettings = OperationCallSettings.newBuilder(); + getVmwareEngineNetworkSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listVmwareEngineNetworksSettings = + PagedCallSettings.newBuilder(LIST_VMWARE_ENGINE_NETWORKS_PAGE_STR_FACT); + listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT); + getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + setIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + getIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + testIamPermissionsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + listPrivateCloudsSettings, + getPrivateCloudSettings, + createPrivateCloudSettings, + updatePrivateCloudSettings, + deletePrivateCloudSettings, + undeletePrivateCloudSettings, + listClustersSettings, + getClusterSettings, + createClusterSettings, + updateClusterSettings, + deleteClusterSettings, + listSubnetsSettings, + listNodeTypesSettings, + getNodeTypeSettings, + showNsxCredentialsSettings, + showVcenterCredentialsSettings, + resetNsxCredentialsSettings, + resetVcenterCredentialsSettings, + createHcxActivationKeySettings, + listHcxActivationKeysSettings, + getHcxActivationKeySettings, + getNetworkPolicySettings, + listNetworkPoliciesSettings, + createNetworkPolicySettings, + updateNetworkPolicySettings, + deleteNetworkPolicySettings, + createVmwareEngineNetworkSettings, + updateVmwareEngineNetworkSettings, + deleteVmwareEngineNetworkSettings, + getVmwareEngineNetworkSettings, + listVmwareEngineNetworksSettings, + listLocationsSettings, + getLocationSettings, + setIamPolicySettings, + getIamPolicySettings, + testIamPermissionsSettings); + initDefaults(this); + } + + protected Builder(VmwareEngineStubSettings settings) { + super(settings); + + listPrivateCloudsSettings = settings.listPrivateCloudsSettings.toBuilder(); + getPrivateCloudSettings = settings.getPrivateCloudSettings.toBuilder(); + createPrivateCloudSettings = settings.createPrivateCloudSettings.toBuilder(); + createPrivateCloudOperationSettings = + settings.createPrivateCloudOperationSettings.toBuilder(); + updatePrivateCloudSettings = settings.updatePrivateCloudSettings.toBuilder(); + updatePrivateCloudOperationSettings = + settings.updatePrivateCloudOperationSettings.toBuilder(); + deletePrivateCloudSettings = settings.deletePrivateCloudSettings.toBuilder(); + deletePrivateCloudOperationSettings = + settings.deletePrivateCloudOperationSettings.toBuilder(); + undeletePrivateCloudSettings = settings.undeletePrivateCloudSettings.toBuilder(); + undeletePrivateCloudOperationSettings = + settings.undeletePrivateCloudOperationSettings.toBuilder(); + listClustersSettings = settings.listClustersSettings.toBuilder(); + getClusterSettings = settings.getClusterSettings.toBuilder(); + createClusterSettings = settings.createClusterSettings.toBuilder(); + createClusterOperationSettings = settings.createClusterOperationSettings.toBuilder(); + updateClusterSettings = settings.updateClusterSettings.toBuilder(); + updateClusterOperationSettings = settings.updateClusterOperationSettings.toBuilder(); + deleteClusterSettings = settings.deleteClusterSettings.toBuilder(); + deleteClusterOperationSettings = settings.deleteClusterOperationSettings.toBuilder(); + listSubnetsSettings = settings.listSubnetsSettings.toBuilder(); + listNodeTypesSettings = settings.listNodeTypesSettings.toBuilder(); + getNodeTypeSettings = settings.getNodeTypeSettings.toBuilder(); + showNsxCredentialsSettings = settings.showNsxCredentialsSettings.toBuilder(); + showVcenterCredentialsSettings = settings.showVcenterCredentialsSettings.toBuilder(); + resetNsxCredentialsSettings = settings.resetNsxCredentialsSettings.toBuilder(); + resetNsxCredentialsOperationSettings = + settings.resetNsxCredentialsOperationSettings.toBuilder(); + resetVcenterCredentialsSettings = settings.resetVcenterCredentialsSettings.toBuilder(); + resetVcenterCredentialsOperationSettings = + settings.resetVcenterCredentialsOperationSettings.toBuilder(); + createHcxActivationKeySettings = settings.createHcxActivationKeySettings.toBuilder(); + createHcxActivationKeyOperationSettings = + settings.createHcxActivationKeyOperationSettings.toBuilder(); + listHcxActivationKeysSettings = settings.listHcxActivationKeysSettings.toBuilder(); + getHcxActivationKeySettings = settings.getHcxActivationKeySettings.toBuilder(); + getNetworkPolicySettings = settings.getNetworkPolicySettings.toBuilder(); + listNetworkPoliciesSettings = settings.listNetworkPoliciesSettings.toBuilder(); + createNetworkPolicySettings = settings.createNetworkPolicySettings.toBuilder(); + createNetworkPolicyOperationSettings = + settings.createNetworkPolicyOperationSettings.toBuilder(); + updateNetworkPolicySettings = settings.updateNetworkPolicySettings.toBuilder(); + updateNetworkPolicyOperationSettings = + settings.updateNetworkPolicyOperationSettings.toBuilder(); + deleteNetworkPolicySettings = settings.deleteNetworkPolicySettings.toBuilder(); + deleteNetworkPolicyOperationSettings = + settings.deleteNetworkPolicyOperationSettings.toBuilder(); + createVmwareEngineNetworkSettings = settings.createVmwareEngineNetworkSettings.toBuilder(); + createVmwareEngineNetworkOperationSettings = + settings.createVmwareEngineNetworkOperationSettings.toBuilder(); + updateVmwareEngineNetworkSettings = settings.updateVmwareEngineNetworkSettings.toBuilder(); + updateVmwareEngineNetworkOperationSettings = + settings.updateVmwareEngineNetworkOperationSettings.toBuilder(); + deleteVmwareEngineNetworkSettings = settings.deleteVmwareEngineNetworkSettings.toBuilder(); + deleteVmwareEngineNetworkOperationSettings = + settings.deleteVmwareEngineNetworkOperationSettings.toBuilder(); + getVmwareEngineNetworkSettings = settings.getVmwareEngineNetworkSettings.toBuilder(); + listVmwareEngineNetworksSettings = settings.listVmwareEngineNetworksSettings.toBuilder(); + listLocationsSettings = settings.listLocationsSettings.toBuilder(); + getLocationSettings = settings.getLocationSettings.toBuilder(); + setIamPolicySettings = settings.setIamPolicySettings.toBuilder(); + getIamPolicySettings = settings.getIamPolicySettings.toBuilder(); + testIamPermissionsSettings = settings.testIamPermissionsSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + listPrivateCloudsSettings, + getPrivateCloudSettings, + createPrivateCloudSettings, + updatePrivateCloudSettings, + deletePrivateCloudSettings, + undeletePrivateCloudSettings, + listClustersSettings, + getClusterSettings, + createClusterSettings, + updateClusterSettings, + deleteClusterSettings, + listSubnetsSettings, + listNodeTypesSettings, + getNodeTypeSettings, + showNsxCredentialsSettings, + showVcenterCredentialsSettings, + resetNsxCredentialsSettings, + resetVcenterCredentialsSettings, + createHcxActivationKeySettings, + listHcxActivationKeysSettings, + getHcxActivationKeySettings, + getNetworkPolicySettings, + listNetworkPoliciesSettings, + createNetworkPolicySettings, + updateNetworkPolicySettings, + deleteNetworkPolicySettings, + createVmwareEngineNetworkSettings, + updateVmwareEngineNetworkSettings, + deleteVmwareEngineNetworkSettings, + getVmwareEngineNetworkSettings, + listVmwareEngineNetworksSettings, + listLocationsSettings, + getLocationSettings, + setIamPolicySettings, + getIamPolicySettings, + testIamPermissionsSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .listPrivateCloudsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getPrivateCloudSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .createPrivateCloudSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .updatePrivateCloudSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .deletePrivateCloudSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .undeletePrivateCloudSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .listClustersSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getClusterSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .createClusterSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .updateClusterSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .deleteClusterSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .listSubnetsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listNodeTypesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getNodeTypeSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .showNsxCredentialsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .showVcenterCredentialsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .resetNsxCredentialsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .resetVcenterCredentialsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .createHcxActivationKeySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .listHcxActivationKeysSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getHcxActivationKeySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getNetworkPolicySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listNetworkPoliciesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .createNetworkPolicySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .updateNetworkPolicySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .deleteNetworkPolicySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .createVmwareEngineNetworkSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .updateVmwareEngineNetworkSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .deleteVmwareEngineNetworkSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .getVmwareEngineNetworkSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listVmwareEngineNetworksSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listLocationsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .getLocationSettings() + .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 + .getIamPolicySettings() + .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 + .createPrivateCloudOperationSettings() + .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(PrivateCloud.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + builder + .updatePrivateCloudOperationSettings() + .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(PrivateCloud.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + builder + .deletePrivateCloudOperationSettings() + .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(PrivateCloud.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + builder + .undeletePrivateCloudOperationSettings() + .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(PrivateCloud.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + builder + .createClusterOperationSettings() + .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(Cluster.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + builder + .updateClusterOperationSettings() + .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(Cluster.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + builder + .deleteClusterOperationSettings() + .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(Empty.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + builder + .resetNsxCredentialsOperationSettings() + .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(PrivateCloud.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + builder + .resetVcenterCredentialsOperationSettings() + .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(PrivateCloud.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + builder + .createHcxActivationKeyOperationSettings() + .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(HcxActivationKey.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + builder + .createNetworkPolicyOperationSettings() + .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(NetworkPolicy.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + builder + .updateNetworkPolicyOperationSettings() + .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(NetworkPolicy.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + builder + .deleteNetworkPolicyOperationSettings() + .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(Empty.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + builder + .createVmwareEngineNetworkOperationSettings() + .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(VmwareEngineNetwork.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + builder + .updateVmwareEngineNetworkOperationSettings() + .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(VmwareEngineNetwork.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + builder + .deleteVmwareEngineNetworkOperationSettings() + .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(Empty.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + 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 listPrivateClouds. */ + public PagedCallSettings.Builder< + ListPrivateCloudsRequest, ListPrivateCloudsResponse, ListPrivateCloudsPagedResponse> + listPrivateCloudsSettings() { + return listPrivateCloudsSettings; + } + + /** Returns the builder for the settings used for calls to getPrivateCloud. */ + public UnaryCallSettings.Builder + getPrivateCloudSettings() { + return getPrivateCloudSettings; + } + + /** Returns the builder for the settings used for calls to createPrivateCloud. */ + public UnaryCallSettings.Builder + createPrivateCloudSettings() { + return createPrivateCloudSettings; + } + + /** Returns the builder for the settings used for calls to createPrivateCloud. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder + createPrivateCloudOperationSettings() { + return createPrivateCloudOperationSettings; + } + + /** Returns the builder for the settings used for calls to updatePrivateCloud. */ + public UnaryCallSettings.Builder + updatePrivateCloudSettings() { + return updatePrivateCloudSettings; + } + + /** Returns the builder for the settings used for calls to updatePrivateCloud. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder + updatePrivateCloudOperationSettings() { + return updatePrivateCloudOperationSettings; + } + + /** Returns the builder for the settings used for calls to deletePrivateCloud. */ + public UnaryCallSettings.Builder + deletePrivateCloudSettings() { + return deletePrivateCloudSettings; + } + + /** Returns the builder for the settings used for calls to deletePrivateCloud. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder + deletePrivateCloudOperationSettings() { + return deletePrivateCloudOperationSettings; + } + + /** Returns the builder for the settings used for calls to undeletePrivateCloud. */ + public UnaryCallSettings.Builder + undeletePrivateCloudSettings() { + return undeletePrivateCloudSettings; + } + + /** Returns the builder for the settings used for calls to undeletePrivateCloud. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder< + UndeletePrivateCloudRequest, PrivateCloud, OperationMetadata> + undeletePrivateCloudOperationSettings() { + return undeletePrivateCloudOperationSettings; + } + + /** Returns the builder for the settings used for calls to listClusters. */ + public PagedCallSettings.Builder< + ListClustersRequest, ListClustersResponse, ListClustersPagedResponse> + listClustersSettings() { + return listClustersSettings; + } + + /** Returns the builder for the settings used for calls to getCluster. */ + public UnaryCallSettings.Builder getClusterSettings() { + return getClusterSettings; + } + + /** Returns the builder for the settings used for calls to createCluster. */ + public UnaryCallSettings.Builder createClusterSettings() { + return createClusterSettings; + } + + /** Returns the builder for the settings used for calls to createCluster. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder + createClusterOperationSettings() { + return createClusterOperationSettings; + } + + /** Returns the builder for the settings used for calls to updateCluster. */ + public UnaryCallSettings.Builder updateClusterSettings() { + return updateClusterSettings; + } + + /** Returns the builder for the settings used for calls to updateCluster. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder + updateClusterOperationSettings() { + return updateClusterOperationSettings; + } + + /** Returns the builder for the settings used for calls to deleteCluster. */ + public UnaryCallSettings.Builder deleteClusterSettings() { + return deleteClusterSettings; + } + + /** Returns the builder for the settings used for calls to deleteCluster. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder + deleteClusterOperationSettings() { + return deleteClusterOperationSettings; + } + + /** Returns the builder for the settings used for calls to listSubnets. */ + public PagedCallSettings.Builder< + ListSubnetsRequest, ListSubnetsResponse, ListSubnetsPagedResponse> + listSubnetsSettings() { + return listSubnetsSettings; + } + + /** Returns the builder for the settings used for calls to listNodeTypes. */ + public PagedCallSettings.Builder< + ListNodeTypesRequest, ListNodeTypesResponse, ListNodeTypesPagedResponse> + listNodeTypesSettings() { + return listNodeTypesSettings; + } + + /** Returns the builder for the settings used for calls to getNodeType. */ + public UnaryCallSettings.Builder getNodeTypeSettings() { + return getNodeTypeSettings; + } + + /** Returns the builder for the settings used for calls to showNsxCredentials. */ + public UnaryCallSettings.Builder + showNsxCredentialsSettings() { + return showNsxCredentialsSettings; + } + + /** Returns the builder for the settings used for calls to showVcenterCredentials. */ + public UnaryCallSettings.Builder + showVcenterCredentialsSettings() { + return showVcenterCredentialsSettings; + } + + /** Returns the builder for the settings used for calls to resetNsxCredentials. */ + public UnaryCallSettings.Builder + resetNsxCredentialsSettings() { + return resetNsxCredentialsSettings; + } + + /** Returns the builder for the settings used for calls to resetNsxCredentials. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder< + ResetNsxCredentialsRequest, PrivateCloud, OperationMetadata> + resetNsxCredentialsOperationSettings() { + return resetNsxCredentialsOperationSettings; + } + + /** Returns the builder for the settings used for calls to resetVcenterCredentials. */ + public UnaryCallSettings.Builder + resetVcenterCredentialsSettings() { + return resetVcenterCredentialsSettings; + } + + /** Returns the builder for the settings used for calls to resetVcenterCredentials. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder< + ResetVcenterCredentialsRequest, PrivateCloud, OperationMetadata> + resetVcenterCredentialsOperationSettings() { + return resetVcenterCredentialsOperationSettings; + } + + /** Returns the builder for the settings used for calls to createHcxActivationKey. */ + public UnaryCallSettings.Builder + createHcxActivationKeySettings() { + return createHcxActivationKeySettings; + } + + /** Returns the builder for the settings used for calls to createHcxActivationKey. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder< + CreateHcxActivationKeyRequest, HcxActivationKey, OperationMetadata> + createHcxActivationKeyOperationSettings() { + return createHcxActivationKeyOperationSettings; + } + + /** Returns the builder for the settings used for calls to listHcxActivationKeys. */ + public PagedCallSettings.Builder< + ListHcxActivationKeysRequest, + ListHcxActivationKeysResponse, + ListHcxActivationKeysPagedResponse> + listHcxActivationKeysSettings() { + return listHcxActivationKeysSettings; + } + + /** Returns the builder for the settings used for calls to getHcxActivationKey. */ + public UnaryCallSettings.Builder + getHcxActivationKeySettings() { + return getHcxActivationKeySettings; + } + + /** Returns the builder for the settings used for calls to getNetworkPolicy. */ + public UnaryCallSettings.Builder + getNetworkPolicySettings() { + return getNetworkPolicySettings; + } + + /** Returns the builder for the settings used for calls to listNetworkPolicies. */ + public PagedCallSettings.Builder< + ListNetworkPoliciesRequest, + ListNetworkPoliciesResponse, + ListNetworkPoliciesPagedResponse> + listNetworkPoliciesSettings() { + return listNetworkPoliciesSettings; + } + + /** Returns the builder for the settings used for calls to createNetworkPolicy. */ + public UnaryCallSettings.Builder + createNetworkPolicySettings() { + return createNetworkPolicySettings; + } + + /** Returns the builder for the settings used for calls to createNetworkPolicy. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder< + CreateNetworkPolicyRequest, NetworkPolicy, OperationMetadata> + createNetworkPolicyOperationSettings() { + return createNetworkPolicyOperationSettings; + } + + /** Returns the builder for the settings used for calls to updateNetworkPolicy. */ + public UnaryCallSettings.Builder + updateNetworkPolicySettings() { + return updateNetworkPolicySettings; + } + + /** Returns the builder for the settings used for calls to updateNetworkPolicy. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder< + UpdateNetworkPolicyRequest, NetworkPolicy, OperationMetadata> + updateNetworkPolicyOperationSettings() { + return updateNetworkPolicyOperationSettings; + } + + /** Returns the builder for the settings used for calls to deleteNetworkPolicy. */ + public UnaryCallSettings.Builder + deleteNetworkPolicySettings() { + return deleteNetworkPolicySettings; + } + + /** Returns the builder for the settings used for calls to deleteNetworkPolicy. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder + deleteNetworkPolicyOperationSettings() { + return deleteNetworkPolicyOperationSettings; + } + + /** Returns the builder for the settings used for calls to createVmwareEngineNetwork. */ + public UnaryCallSettings.Builder + createVmwareEngineNetworkSettings() { + return createVmwareEngineNetworkSettings; + } + + /** Returns the builder for the settings used for calls to createVmwareEngineNetwork. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder< + CreateVmwareEngineNetworkRequest, VmwareEngineNetwork, OperationMetadata> + createVmwareEngineNetworkOperationSettings() { + return createVmwareEngineNetworkOperationSettings; + } + + /** Returns the builder for the settings used for calls to updateVmwareEngineNetwork. */ + public UnaryCallSettings.Builder + updateVmwareEngineNetworkSettings() { + return updateVmwareEngineNetworkSettings; + } + + /** Returns the builder for the settings used for calls to updateVmwareEngineNetwork. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder< + UpdateVmwareEngineNetworkRequest, VmwareEngineNetwork, OperationMetadata> + updateVmwareEngineNetworkOperationSettings() { + return updateVmwareEngineNetworkOperationSettings; + } + + /** Returns the builder for the settings used for calls to deleteVmwareEngineNetwork. */ + public UnaryCallSettings.Builder + deleteVmwareEngineNetworkSettings() { + return deleteVmwareEngineNetworkSettings; + } + + /** Returns the builder for the settings used for calls to deleteVmwareEngineNetwork. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder + deleteVmwareEngineNetworkOperationSettings() { + return deleteVmwareEngineNetworkOperationSettings; + } + + /** Returns the builder for the settings used for calls to getVmwareEngineNetwork. */ + public UnaryCallSettings.Builder + getVmwareEngineNetworkSettings() { + return getVmwareEngineNetworkSettings; + } + + /** Returns the builder for the settings used for calls to listVmwareEngineNetworks. */ + public PagedCallSettings.Builder< + ListVmwareEngineNetworksRequest, + ListVmwareEngineNetworksResponse, + ListVmwareEngineNetworksPagedResponse> + listVmwareEngineNetworksSettings() { + return listVmwareEngineNetworksSettings; + } + + /** Returns the builder for the settings used for calls to listLocations. */ + public PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings() { + return listLocationsSettings; + } + + /** Returns the builder for the settings used for calls to getLocation. */ + public UnaryCallSettings.Builder getLocationSettings() { + return getLocationSettings; + } + + /** 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 getIamPolicy. */ + public UnaryCallSettings.Builder getIamPolicySettings() { + return getIamPolicySettings; + } + + /** Returns the builder for the settings used for calls to testIamPermissions. */ + public UnaryCallSettings.Builder + testIamPermissionsSettings() { + return testIamPermissionsSettings; + } + + @Override + public VmwareEngineStubSettings build() throws IOException { + return new VmwareEngineStubSettings(this); + } + } +} diff --git a/java-vmwareengine/google-cloud-vmwareengine/src/test/java/com/google/cloud/vmwareengine/v1/MockIAMPolicy.java b/java-vmwareengine/google-cloud-vmwareengine/src/test/java/com/google/cloud/vmwareengine/v1/MockIAMPolicy.java new file mode 100644 index 000000000000..a6bf99dd2081 --- /dev/null +++ b/java-vmwareengine/google-cloud-vmwareengine/src/test/java/com/google/cloud/vmwareengine/v1/MockIAMPolicy.java @@ -0,0 +1,59 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.vmwareengine.v1; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockIAMPolicy implements MockGrpcService { + private final MockIAMPolicyImpl serviceImpl; + + public MockIAMPolicy() { + serviceImpl = new MockIAMPolicyImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/java-vmwareengine/google-cloud-vmwareengine/src/test/java/com/google/cloud/vmwareengine/v1/MockIAMPolicyImpl.java b/java-vmwareengine/google-cloud-vmwareengine/src/test/java/com/google/cloud/vmwareengine/v1/MockIAMPolicyImpl.java new file mode 100644 index 000000000000..bd61e2931081 --- /dev/null +++ b/java-vmwareengine/google-cloud-vmwareengine/src/test/java/com/google/cloud/vmwareengine/v1/MockIAMPolicyImpl.java @@ -0,0 +1,127 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.vmwareengine.v1; + +import com.google.api.core.BetaApi; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.IAMPolicyGrpc.IAMPolicyImplBase; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.protobuf.AbstractMessage; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockIAMPolicyImpl extends IAMPolicyImplBase { + private List requests; + private Queue responses; + + public MockIAMPolicyImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void testIamPermissions( + TestIamPermissionsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof TestIamPermissionsResponse) { + requests.add(request); + responseObserver.onNext(((TestIamPermissionsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method TestIamPermissions, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + TestIamPermissionsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void setIamPolicy(SetIamPolicyRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Policy) { + requests.add(request); + responseObserver.onNext(((Policy) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method SetIamPolicy, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Policy.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getIamPolicy(GetIamPolicyRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Policy) { + requests.add(request); + responseObserver.onNext(((Policy) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetIamPolicy, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Policy.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/java-vmwareengine/google-cloud-vmwareengine/src/test/java/com/google/cloud/vmwareengine/v1/MockLocations.java b/java-vmwareengine/google-cloud-vmwareengine/src/test/java/com/google/cloud/vmwareengine/v1/MockLocations.java new file mode 100644 index 000000000000..18bc7ac7022f --- /dev/null +++ b/java-vmwareengine/google-cloud-vmwareengine/src/test/java/com/google/cloud/vmwareengine/v1/MockLocations.java @@ -0,0 +1,59 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.vmwareengine.v1; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockLocations implements MockGrpcService { + private final MockLocationsImpl serviceImpl; + + public MockLocations() { + serviceImpl = new MockLocationsImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/java-vmwareengine/google-cloud-vmwareengine/src/test/java/com/google/cloud/vmwareengine/v1/MockLocationsImpl.java b/java-vmwareengine/google-cloud-vmwareengine/src/test/java/com/google/cloud/vmwareengine/v1/MockLocationsImpl.java new file mode 100644 index 000000000000..708784a4c01c --- /dev/null +++ b/java-vmwareengine/google-cloud-vmwareengine/src/test/java/com/google/cloud/vmwareengine/v1/MockLocationsImpl.java @@ -0,0 +1,105 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.vmwareengine.v1; + +import com.google.api.core.BetaApi; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.location.LocationsGrpc.LocationsImplBase; +import com.google.protobuf.AbstractMessage; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockLocationsImpl extends LocationsImplBase { + private List requests; + private Queue responses; + + public MockLocationsImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void listLocations( + ListLocationsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListLocationsResponse) { + requests.add(request); + responseObserver.onNext(((ListLocationsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListLocations, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListLocationsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getLocation(GetLocationRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Location) { + requests.add(request); + responseObserver.onNext(((Location) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetLocation, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Location.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/java-vmwareengine/google-cloud-vmwareengine/src/test/java/com/google/cloud/vmwareengine/v1/MockVmwareEngine.java b/java-vmwareengine/google-cloud-vmwareengine/src/test/java/com/google/cloud/vmwareengine/v1/MockVmwareEngine.java new file mode 100644 index 000000000000..df76f809941e --- /dev/null +++ b/java-vmwareengine/google-cloud-vmwareengine/src/test/java/com/google/cloud/vmwareengine/v1/MockVmwareEngine.java @@ -0,0 +1,59 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.vmwareengine.v1; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockVmwareEngine implements MockGrpcService { + private final MockVmwareEngineImpl serviceImpl; + + public MockVmwareEngine() { + serviceImpl = new MockVmwareEngineImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/java-vmwareengine/google-cloud-vmwareengine/src/test/java/com/google/cloud/vmwareengine/v1/MockVmwareEngineImpl.java b/java-vmwareengine/google-cloud-vmwareengine/src/test/java/com/google/cloud/vmwareengine/v1/MockVmwareEngineImpl.java new file mode 100644 index 000000000000..ca4188ebc31d --- /dev/null +++ b/java-vmwareengine/google-cloud-vmwareengine/src/test/java/com/google/cloud/vmwareengine/v1/MockVmwareEngineImpl.java @@ -0,0 +1,714 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.vmwareengine.v1; + +import com.google.api.core.BetaApi; +import com.google.cloud.vmwareengine.v1.VmwareEngineGrpc.VmwareEngineImplBase; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockVmwareEngineImpl extends VmwareEngineImplBase { + private List requests; + private Queue responses; + + public MockVmwareEngineImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void listPrivateClouds( + ListPrivateCloudsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListPrivateCloudsResponse) { + requests.add(request); + responseObserver.onNext(((ListPrivateCloudsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListPrivateClouds, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListPrivateCloudsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getPrivateCloud( + GetPrivateCloudRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof PrivateCloud) { + requests.add(request); + responseObserver.onNext(((PrivateCloud) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetPrivateCloud, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + PrivateCloud.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createPrivateCloud( + CreatePrivateCloudRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreatePrivateCloud, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updatePrivateCloud( + UpdatePrivateCloudRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdatePrivateCloud, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deletePrivateCloud( + DeletePrivateCloudRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeletePrivateCloud, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void undeletePrivateCloud( + UndeletePrivateCloudRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UndeletePrivateCloud, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listClusters( + ListClustersRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListClustersResponse) { + requests.add(request); + responseObserver.onNext(((ListClustersResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListClusters, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListClustersResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getCluster(GetClusterRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Cluster) { + requests.add(request); + responseObserver.onNext(((Cluster) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetCluster, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Cluster.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createCluster( + CreateClusterRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateCluster, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateCluster( + UpdateClusterRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateCluster, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteCluster( + DeleteClusterRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteCluster, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listSubnets( + ListSubnetsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListSubnetsResponse) { + requests.add(request); + responseObserver.onNext(((ListSubnetsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListSubnets, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListSubnetsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listNodeTypes( + ListNodeTypesRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListNodeTypesResponse) { + requests.add(request); + responseObserver.onNext(((ListNodeTypesResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListNodeTypes, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListNodeTypesResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getNodeType(GetNodeTypeRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof NodeType) { + requests.add(request); + responseObserver.onNext(((NodeType) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetNodeType, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + NodeType.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void showNsxCredentials( + ShowNsxCredentialsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Credentials) { + requests.add(request); + responseObserver.onNext(((Credentials) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ShowNsxCredentials, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Credentials.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void showVcenterCredentials( + ShowVcenterCredentialsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Credentials) { + requests.add(request); + responseObserver.onNext(((Credentials) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ShowVcenterCredentials, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Credentials.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void resetNsxCredentials( + ResetNsxCredentialsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ResetNsxCredentials, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void resetVcenterCredentials( + ResetVcenterCredentialsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ResetVcenterCredentials, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createHcxActivationKey( + CreateHcxActivationKeyRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateHcxActivationKey, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listHcxActivationKeys( + ListHcxActivationKeysRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListHcxActivationKeysResponse) { + requests.add(request); + responseObserver.onNext(((ListHcxActivationKeysResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListHcxActivationKeys, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListHcxActivationKeysResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getHcxActivationKey( + GetHcxActivationKeyRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof HcxActivationKey) { + requests.add(request); + responseObserver.onNext(((HcxActivationKey) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetHcxActivationKey, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + HcxActivationKey.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getNetworkPolicy( + GetNetworkPolicyRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof NetworkPolicy) { + requests.add(request); + responseObserver.onNext(((NetworkPolicy) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetNetworkPolicy, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + NetworkPolicy.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listNetworkPolicies( + ListNetworkPoliciesRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListNetworkPoliciesResponse) { + requests.add(request); + responseObserver.onNext(((ListNetworkPoliciesResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListNetworkPolicies, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListNetworkPoliciesResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createNetworkPolicy( + CreateNetworkPolicyRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateNetworkPolicy, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateNetworkPolicy( + UpdateNetworkPolicyRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateNetworkPolicy, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteNetworkPolicy( + DeleteNetworkPolicyRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteNetworkPolicy, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createVmwareEngineNetwork( + CreateVmwareEngineNetworkRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateVmwareEngineNetwork, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateVmwareEngineNetwork( + UpdateVmwareEngineNetworkRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateVmwareEngineNetwork, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteVmwareEngineNetwork( + DeleteVmwareEngineNetworkRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteVmwareEngineNetwork, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getVmwareEngineNetwork( + GetVmwareEngineNetworkRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof VmwareEngineNetwork) { + requests.add(request); + responseObserver.onNext(((VmwareEngineNetwork) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetVmwareEngineNetwork, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + VmwareEngineNetwork.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listVmwareEngineNetworks( + ListVmwareEngineNetworksRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListVmwareEngineNetworksResponse) { + requests.add(request); + responseObserver.onNext(((ListVmwareEngineNetworksResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListVmwareEngineNetworks, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListVmwareEngineNetworksResponse.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/java-vmwareengine/google-cloud-vmwareengine/src/test/java/com/google/cloud/vmwareengine/v1/VmwareEngineClientHttpJsonTest.java b/java-vmwareengine/google-cloud-vmwareengine/src/test/java/com/google/cloud/vmwareengine/v1/VmwareEngineClientHttpJsonTest.java new file mode 100644 index 000000000000..bb5aacff0209 --- /dev/null +++ b/java-vmwareengine/google-cloud-vmwareengine/src/test/java/com/google/cloud/vmwareengine/v1/VmwareEngineClientHttpJsonTest.java @@ -0,0 +1,3685 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.vmwareengine.v1; + +import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListClustersPagedResponse; +import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListHcxActivationKeysPagedResponse; +import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListLocationsPagedResponse; +import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListNetworkPoliciesPagedResponse; +import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListNodeTypesPagedResponse; +import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListPrivateCloudsPagedResponse; +import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListSubnetsPagedResponse; +import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListVmwareEngineNetworksPagedResponse; + +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.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.vmwareengine.v1.stub.HttpJsonVmwareEngineStub; +import com.google.common.collect.Lists; +import com.google.iam.v1.AuditConfig; +import com.google.iam.v1.Binding; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.protobuf.Any; +import com.google.protobuf.ByteString; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import com.google.protobuf.Timestamp; +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 VmwareEngineClientHttpJsonTest { + private static MockHttpService mockService; + private static VmwareEngineClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonVmwareEngineStub.getMethodDescriptors(), + VmwareEngineSettings.getDefaultEndpoint()); + VmwareEngineSettings settings = + VmwareEngineSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + VmwareEngineSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = VmwareEngineClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void listPrivateCloudsTest() throws Exception { + PrivateCloud responsesElement = PrivateCloud.newBuilder().build(); + ListPrivateCloudsResponse expectedResponse = + ListPrivateCloudsResponse.newBuilder() + .setNextPageToken("") + .addAllPrivateClouds(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListPrivateCloudsPagedResponse pagedListResponse = client.listPrivateClouds(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getPrivateCloudsList().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 listPrivateCloudsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listPrivateClouds(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listPrivateCloudsTest2() throws Exception { + PrivateCloud responsesElement = PrivateCloud.newBuilder().build(); + ListPrivateCloudsResponse expectedResponse = + ListPrivateCloudsResponse.newBuilder() + .setNextPageToken("") + .addAllPrivateClouds(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListPrivateCloudsPagedResponse pagedListResponse = client.listPrivateClouds(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getPrivateCloudsList().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 listPrivateCloudsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + client.listPrivateClouds(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getPrivateCloudTest() throws Exception { + PrivateCloud expectedResponse = + PrivateCloud.newBuilder() + .setName(PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) + .setNetworkConfig(NetworkConfig.newBuilder().build()) + .setManagementCluster(PrivateCloud.ManagementCluster.newBuilder().build()) + .setDescription("description-1724546052") + .setHcx(Hcx.newBuilder().build()) + .setNsx(Nsx.newBuilder().build()) + .setVcenter(Vcenter.newBuilder().build()) + .setUid("uid115792") + .build(); + mockService.addResponse(expectedResponse); + + PrivateCloudName name = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); + + PrivateCloud actualResponse = client.getPrivateCloud(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getPrivateCloudExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + PrivateCloudName name = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); + client.getPrivateCloud(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getPrivateCloudTest2() throws Exception { + PrivateCloud expectedResponse = + PrivateCloud.newBuilder() + .setName(PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) + .setNetworkConfig(NetworkConfig.newBuilder().build()) + .setManagementCluster(PrivateCloud.ManagementCluster.newBuilder().build()) + .setDescription("description-1724546052") + .setHcx(Hcx.newBuilder().build()) + .setNsx(Nsx.newBuilder().build()) + .setVcenter(Vcenter.newBuilder().build()) + .setUid("uid115792") + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-6537/locations/location-6537/privateClouds/privateCloud-6537"; + + PrivateCloud actualResponse = client.getPrivateCloud(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getPrivateCloudExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-6537/locations/location-6537/privateClouds/privateCloud-6537"; + client.getPrivateCloud(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createPrivateCloudTest() throws Exception { + PrivateCloud expectedResponse = + PrivateCloud.newBuilder() + .setName(PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) + .setNetworkConfig(NetworkConfig.newBuilder().build()) + .setManagementCluster(PrivateCloud.ManagementCluster.newBuilder().build()) + .setDescription("description-1724546052") + .setHcx(Hcx.newBuilder().build()) + .setNsx(Nsx.newBuilder().build()) + .setVcenter(Vcenter.newBuilder().build()) + .setUid("uid115792") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createPrivateCloudTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + PrivateCloud privateCloud = PrivateCloud.newBuilder().build(); + String privateCloudId = "privateCloudId573896493"; + + PrivateCloud actualResponse = + client.createPrivateCloudAsync(parent, privateCloud, privateCloudId).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 createPrivateCloudExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + PrivateCloud privateCloud = PrivateCloud.newBuilder().build(); + String privateCloudId = "privateCloudId573896493"; + client.createPrivateCloudAsync(parent, privateCloud, privateCloudId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createPrivateCloudTest2() throws Exception { + PrivateCloud expectedResponse = + PrivateCloud.newBuilder() + .setName(PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) + .setNetworkConfig(NetworkConfig.newBuilder().build()) + .setManagementCluster(PrivateCloud.ManagementCluster.newBuilder().build()) + .setDescription("description-1724546052") + .setHcx(Hcx.newBuilder().build()) + .setNsx(Nsx.newBuilder().build()) + .setVcenter(Vcenter.newBuilder().build()) + .setUid("uid115792") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createPrivateCloudTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "projects/project-5833/locations/location-5833"; + PrivateCloud privateCloud = PrivateCloud.newBuilder().build(); + String privateCloudId = "privateCloudId573896493"; + + PrivateCloud actualResponse = + client.createPrivateCloudAsync(parent, privateCloud, privateCloudId).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 createPrivateCloudExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + PrivateCloud privateCloud = PrivateCloud.newBuilder().build(); + String privateCloudId = "privateCloudId573896493"; + client.createPrivateCloudAsync(parent, privateCloud, privateCloudId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void updatePrivateCloudTest() throws Exception { + PrivateCloud expectedResponse = + PrivateCloud.newBuilder() + .setName(PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) + .setNetworkConfig(NetworkConfig.newBuilder().build()) + .setManagementCluster(PrivateCloud.ManagementCluster.newBuilder().build()) + .setDescription("description-1724546052") + .setHcx(Hcx.newBuilder().build()) + .setNsx(Nsx.newBuilder().build()) + .setVcenter(Vcenter.newBuilder().build()) + .setUid("uid115792") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updatePrivateCloudTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + PrivateCloud privateCloud = + PrivateCloud.newBuilder() + .setName(PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) + .setNetworkConfig(NetworkConfig.newBuilder().build()) + .setManagementCluster(PrivateCloud.ManagementCluster.newBuilder().build()) + .setDescription("description-1724546052") + .setHcx(Hcx.newBuilder().build()) + .setNsx(Nsx.newBuilder().build()) + .setVcenter(Vcenter.newBuilder().build()) + .setUid("uid115792") + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + PrivateCloud actualResponse = client.updatePrivateCloudAsync(privateCloud, updateMask).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 updatePrivateCloudExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + PrivateCloud privateCloud = + PrivateCloud.newBuilder() + .setName(PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) + .setNetworkConfig(NetworkConfig.newBuilder().build()) + .setManagementCluster(PrivateCloud.ManagementCluster.newBuilder().build()) + .setDescription("description-1724546052") + .setHcx(Hcx.newBuilder().build()) + .setNsx(Nsx.newBuilder().build()) + .setVcenter(Vcenter.newBuilder().build()) + .setUid("uid115792") + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updatePrivateCloudAsync(privateCloud, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deletePrivateCloudTest() throws Exception { + PrivateCloud expectedResponse = + PrivateCloud.newBuilder() + .setName(PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) + .setNetworkConfig(NetworkConfig.newBuilder().build()) + .setManagementCluster(PrivateCloud.ManagementCluster.newBuilder().build()) + .setDescription("description-1724546052") + .setHcx(Hcx.newBuilder().build()) + .setNsx(Nsx.newBuilder().build()) + .setVcenter(Vcenter.newBuilder().build()) + .setUid("uid115792") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deletePrivateCloudTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + PrivateCloudName name = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); + + PrivateCloud actualResponse = client.deletePrivateCloudAsync(name).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 deletePrivateCloudExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + PrivateCloudName name = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); + client.deletePrivateCloudAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deletePrivateCloudTest2() throws Exception { + PrivateCloud expectedResponse = + PrivateCloud.newBuilder() + .setName(PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) + .setNetworkConfig(NetworkConfig.newBuilder().build()) + .setManagementCluster(PrivateCloud.ManagementCluster.newBuilder().build()) + .setDescription("description-1724546052") + .setHcx(Hcx.newBuilder().build()) + .setNsx(Nsx.newBuilder().build()) + .setVcenter(Vcenter.newBuilder().build()) + .setUid("uid115792") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deletePrivateCloudTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = "projects/project-6537/locations/location-6537/privateClouds/privateCloud-6537"; + + PrivateCloud actualResponse = client.deletePrivateCloudAsync(name).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 deletePrivateCloudExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-6537/locations/location-6537/privateClouds/privateCloud-6537"; + client.deletePrivateCloudAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void undeletePrivateCloudTest() throws Exception { + PrivateCloud expectedResponse = + PrivateCloud.newBuilder() + .setName(PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) + .setNetworkConfig(NetworkConfig.newBuilder().build()) + .setManagementCluster(PrivateCloud.ManagementCluster.newBuilder().build()) + .setDescription("description-1724546052") + .setHcx(Hcx.newBuilder().build()) + .setNsx(Nsx.newBuilder().build()) + .setVcenter(Vcenter.newBuilder().build()) + .setUid("uid115792") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("undeletePrivateCloudTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + PrivateCloudName name = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); + + PrivateCloud actualResponse = client.undeletePrivateCloudAsync(name).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 undeletePrivateCloudExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + PrivateCloudName name = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); + client.undeletePrivateCloudAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void undeletePrivateCloudTest2() throws Exception { + PrivateCloud expectedResponse = + PrivateCloud.newBuilder() + .setName(PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) + .setNetworkConfig(NetworkConfig.newBuilder().build()) + .setManagementCluster(PrivateCloud.ManagementCluster.newBuilder().build()) + .setDescription("description-1724546052") + .setHcx(Hcx.newBuilder().build()) + .setNsx(Nsx.newBuilder().build()) + .setVcenter(Vcenter.newBuilder().build()) + .setUid("uid115792") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("undeletePrivateCloudTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = "projects/project-6537/locations/location-6537/privateClouds/privateCloud-6537"; + + PrivateCloud actualResponse = client.undeletePrivateCloudAsync(name).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 undeletePrivateCloudExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-6537/locations/location-6537/privateClouds/privateCloud-6537"; + client.undeletePrivateCloudAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void listClustersTest() throws Exception { + Cluster responsesElement = Cluster.newBuilder().build(); + ListClustersResponse expectedResponse = + ListClustersResponse.newBuilder() + .setNextPageToken("") + .addAllClusters(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + PrivateCloudName parent = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); + + ListClustersPagedResponse pagedListResponse = client.listClusters(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getClustersList().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 listClustersExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + PrivateCloudName parent = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); + client.listClusters(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listClustersTest2() throws Exception { + Cluster responsesElement = Cluster.newBuilder().build(); + ListClustersResponse expectedResponse = + ListClustersResponse.newBuilder() + .setNextPageToken("") + .addAllClusters(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-4854/locations/location-4854/privateClouds/privateCloud-4854"; + + ListClustersPagedResponse pagedListResponse = client.listClusters(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getClustersList().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 listClustersExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = + "projects/project-4854/locations/location-4854/privateClouds/privateCloud-4854"; + client.listClusters(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getClusterTest() throws Exception { + Cluster expectedResponse = + Cluster.newBuilder() + .setName( + ClusterName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[CLUSTER]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setManagement(true) + .setUid("uid115792") + .putAllNodeTypeConfigs(new HashMap()) + .build(); + mockService.addResponse(expectedResponse); + + ClusterName name = ClusterName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[CLUSTER]"); + + Cluster actualResponse = client.getCluster(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getClusterExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ClusterName name = ClusterName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[CLUSTER]"); + client.getCluster(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getClusterTest2() throws Exception { + Cluster expectedResponse = + Cluster.newBuilder() + .setName( + ClusterName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[CLUSTER]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setManagement(true) + .setUid("uid115792") + .putAllNodeTypeConfigs(new HashMap()) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-1428/locations/location-1428/privateClouds/privateCloud-1428/clusters/cluster-1428"; + + Cluster actualResponse = client.getCluster(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getClusterExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-1428/locations/location-1428/privateClouds/privateCloud-1428/clusters/cluster-1428"; + client.getCluster(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createClusterTest() throws Exception { + Cluster expectedResponse = + Cluster.newBuilder() + .setName( + ClusterName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[CLUSTER]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setManagement(true) + .setUid("uid115792") + .putAllNodeTypeConfigs(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createClusterTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + PrivateCloudName parent = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); + Cluster cluster = Cluster.newBuilder().build(); + String clusterId = "clusterId561939637"; + + Cluster actualResponse = client.createClusterAsync(parent, cluster, clusterId).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 createClusterExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + PrivateCloudName parent = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); + Cluster cluster = Cluster.newBuilder().build(); + String clusterId = "clusterId561939637"; + client.createClusterAsync(parent, cluster, clusterId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createClusterTest2() throws Exception { + Cluster expectedResponse = + Cluster.newBuilder() + .setName( + ClusterName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[CLUSTER]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setManagement(true) + .setUid("uid115792") + .putAllNodeTypeConfigs(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createClusterTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "projects/project-4854/locations/location-4854/privateClouds/privateCloud-4854"; + Cluster cluster = Cluster.newBuilder().build(); + String clusterId = "clusterId561939637"; + + Cluster actualResponse = client.createClusterAsync(parent, cluster, clusterId).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 createClusterExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = + "projects/project-4854/locations/location-4854/privateClouds/privateCloud-4854"; + Cluster cluster = Cluster.newBuilder().build(); + String clusterId = "clusterId561939637"; + client.createClusterAsync(parent, cluster, clusterId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void updateClusterTest() throws Exception { + Cluster expectedResponse = + Cluster.newBuilder() + .setName( + ClusterName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[CLUSTER]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setManagement(true) + .setUid("uid115792") + .putAllNodeTypeConfigs(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateClusterTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + Cluster cluster = + Cluster.newBuilder() + .setName( + ClusterName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[CLUSTER]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setManagement(true) + .setUid("uid115792") + .putAllNodeTypeConfigs(new HashMap()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Cluster actualResponse = client.updateClusterAsync(cluster, updateMask).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 updateClusterExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + Cluster cluster = + Cluster.newBuilder() + .setName( + ClusterName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[CLUSTER]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setManagement(true) + .setUid("uid115792") + .putAllNodeTypeConfigs(new HashMap()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateClusterAsync(cluster, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteClusterTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteClusterTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + ClusterName name = ClusterName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[CLUSTER]"); + + client.deleteClusterAsync(name).get(); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteClusterExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ClusterName name = ClusterName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[CLUSTER]"); + client.deleteClusterAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteClusterTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteClusterTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = + "projects/project-1428/locations/location-1428/privateClouds/privateCloud-1428/clusters/cluster-1428"; + + client.deleteClusterAsync(name).get(); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteClusterExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-1428/locations/location-1428/privateClouds/privateCloud-1428/clusters/cluster-1428"; + client.deleteClusterAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void listSubnetsTest() throws Exception { + Subnet responsesElement = Subnet.newBuilder().build(); + ListSubnetsResponse expectedResponse = + ListSubnetsResponse.newBuilder() + .setNextPageToken("") + .addAllSubnets(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + PrivateCloudName parent = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); + + ListSubnetsPagedResponse pagedListResponse = client.listSubnets(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSubnetsList().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 listSubnetsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + PrivateCloudName parent = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); + client.listSubnets(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listSubnetsTest2() throws Exception { + Subnet responsesElement = Subnet.newBuilder().build(); + ListSubnetsResponse expectedResponse = + ListSubnetsResponse.newBuilder() + .setNextPageToken("") + .addAllSubnets(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-4854/locations/location-4854/privateClouds/privateCloud-4854"; + + ListSubnetsPagedResponse pagedListResponse = client.listSubnets(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSubnetsList().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 listSubnetsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = + "projects/project-4854/locations/location-4854/privateClouds/privateCloud-4854"; + client.listSubnets(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listNodeTypesTest() throws Exception { + NodeType responsesElement = NodeType.newBuilder().build(); + ListNodeTypesResponse expectedResponse = + ListNodeTypesResponse.newBuilder() + .setNextPageToken("") + .addAllNodeTypes(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListNodeTypesPagedResponse pagedListResponse = client.listNodeTypes(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getNodeTypesList().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 listNodeTypesExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listNodeTypes(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listNodeTypesTest2() throws Exception { + NodeType responsesElement = NodeType.newBuilder().build(); + ListNodeTypesResponse expectedResponse = + ListNodeTypesResponse.newBuilder() + .setNextPageToken("") + .addAllNodeTypes(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListNodeTypesPagedResponse pagedListResponse = client.listNodeTypes(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getNodeTypesList().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 listNodeTypesExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + client.listNodeTypes(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getNodeTypeTest() throws Exception { + NodeType expectedResponse = + NodeType.newBuilder() + .setName(NodeTypeName.of("[PROJECT]", "[LOCATION]", "[NODE_TYPE]").toString()) + .setNodeTypeId("nodeTypeId1245332119") + .setDisplayName("displayName1714148973") + .setVirtualCpuCount(289038212) + .setTotalCoreCount(-282953654) + .setMemoryGb(1726613721) + .setDiskSizeGb(-757478089) + .addAllAvailableCustomCoreCounts(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + NodeTypeName name = NodeTypeName.of("[PROJECT]", "[LOCATION]", "[NODE_TYPE]"); + + NodeType actualResponse = client.getNodeType(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getNodeTypeExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + NodeTypeName name = NodeTypeName.of("[PROJECT]", "[LOCATION]", "[NODE_TYPE]"); + client.getNodeType(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getNodeTypeTest2() throws Exception { + NodeType expectedResponse = + NodeType.newBuilder() + .setName(NodeTypeName.of("[PROJECT]", "[LOCATION]", "[NODE_TYPE]").toString()) + .setNodeTypeId("nodeTypeId1245332119") + .setDisplayName("displayName1714148973") + .setVirtualCpuCount(289038212) + .setTotalCoreCount(-282953654) + .setMemoryGb(1726613721) + .setDiskSizeGb(-757478089) + .addAllAvailableCustomCoreCounts(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-1203/locations/location-1203/nodeTypes/nodeType-1203"; + + NodeType actualResponse = client.getNodeType(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getNodeTypeExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-1203/locations/location-1203/nodeTypes/nodeType-1203"; + client.getNodeType(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void showNsxCredentialsTest() throws Exception { + Credentials expectedResponse = + Credentials.newBuilder() + .setUsername("username-265713450") + .setPassword("password1216985755") + .build(); + mockService.addResponse(expectedResponse); + + PrivateCloudName privateCloud = + PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); + + Credentials actualResponse = client.showNsxCredentials(privateCloud); + 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 showNsxCredentialsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + PrivateCloudName privateCloud = + PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); + client.showNsxCredentials(privateCloud); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void showNsxCredentialsTest2() throws Exception { + Credentials expectedResponse = + Credentials.newBuilder() + .setUsername("username-265713450") + .setPassword("password1216985755") + .build(); + mockService.addResponse(expectedResponse); + + String privateCloud = + "projects/project-6942/locations/location-6942/privateClouds/privateCloud-6942"; + + Credentials actualResponse = client.showNsxCredentials(privateCloud); + 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 showNsxCredentialsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String privateCloud = + "projects/project-6942/locations/location-6942/privateClouds/privateCloud-6942"; + client.showNsxCredentials(privateCloud); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void showVcenterCredentialsTest() throws Exception { + Credentials expectedResponse = + Credentials.newBuilder() + .setUsername("username-265713450") + .setPassword("password1216985755") + .build(); + mockService.addResponse(expectedResponse); + + PrivateCloudName privateCloud = + PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); + + Credentials actualResponse = client.showVcenterCredentials(privateCloud); + 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 showVcenterCredentialsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + PrivateCloudName privateCloud = + PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); + client.showVcenterCredentials(privateCloud); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void showVcenterCredentialsTest2() throws Exception { + Credentials expectedResponse = + Credentials.newBuilder() + .setUsername("username-265713450") + .setPassword("password1216985755") + .build(); + mockService.addResponse(expectedResponse); + + String privateCloud = + "projects/project-6942/locations/location-6942/privateClouds/privateCloud-6942"; + + Credentials actualResponse = client.showVcenterCredentials(privateCloud); + 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 showVcenterCredentialsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String privateCloud = + "projects/project-6942/locations/location-6942/privateClouds/privateCloud-6942"; + client.showVcenterCredentials(privateCloud); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void resetNsxCredentialsTest() throws Exception { + PrivateCloud expectedResponse = + PrivateCloud.newBuilder() + .setName(PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) + .setNetworkConfig(NetworkConfig.newBuilder().build()) + .setManagementCluster(PrivateCloud.ManagementCluster.newBuilder().build()) + .setDescription("description-1724546052") + .setHcx(Hcx.newBuilder().build()) + .setNsx(Nsx.newBuilder().build()) + .setVcenter(Vcenter.newBuilder().build()) + .setUid("uid115792") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("resetNsxCredentialsTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + PrivateCloudName privateCloud = + PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); + + PrivateCloud actualResponse = client.resetNsxCredentialsAsync(privateCloud).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 resetNsxCredentialsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + PrivateCloudName privateCloud = + PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); + client.resetNsxCredentialsAsync(privateCloud).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void resetNsxCredentialsTest2() throws Exception { + PrivateCloud expectedResponse = + PrivateCloud.newBuilder() + .setName(PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) + .setNetworkConfig(NetworkConfig.newBuilder().build()) + .setManagementCluster(PrivateCloud.ManagementCluster.newBuilder().build()) + .setDescription("description-1724546052") + .setHcx(Hcx.newBuilder().build()) + .setNsx(Nsx.newBuilder().build()) + .setVcenter(Vcenter.newBuilder().build()) + .setUid("uid115792") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("resetNsxCredentialsTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String privateCloud = + "projects/project-6942/locations/location-6942/privateClouds/privateCloud-6942"; + + PrivateCloud actualResponse = client.resetNsxCredentialsAsync(privateCloud).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 resetNsxCredentialsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String privateCloud = + "projects/project-6942/locations/location-6942/privateClouds/privateCloud-6942"; + client.resetNsxCredentialsAsync(privateCloud).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void resetVcenterCredentialsTest() throws Exception { + PrivateCloud expectedResponse = + PrivateCloud.newBuilder() + .setName(PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) + .setNetworkConfig(NetworkConfig.newBuilder().build()) + .setManagementCluster(PrivateCloud.ManagementCluster.newBuilder().build()) + .setDescription("description-1724546052") + .setHcx(Hcx.newBuilder().build()) + .setNsx(Nsx.newBuilder().build()) + .setVcenter(Vcenter.newBuilder().build()) + .setUid("uid115792") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("resetVcenterCredentialsTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + PrivateCloudName privateCloud = + PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); + + PrivateCloud actualResponse = client.resetVcenterCredentialsAsync(privateCloud).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 resetVcenterCredentialsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + PrivateCloudName privateCloud = + PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); + client.resetVcenterCredentialsAsync(privateCloud).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void resetVcenterCredentialsTest2() throws Exception { + PrivateCloud expectedResponse = + PrivateCloud.newBuilder() + .setName(PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) + .setNetworkConfig(NetworkConfig.newBuilder().build()) + .setManagementCluster(PrivateCloud.ManagementCluster.newBuilder().build()) + .setDescription("description-1724546052") + .setHcx(Hcx.newBuilder().build()) + .setNsx(Nsx.newBuilder().build()) + .setVcenter(Vcenter.newBuilder().build()) + .setUid("uid115792") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("resetVcenterCredentialsTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String privateCloud = + "projects/project-6942/locations/location-6942/privateClouds/privateCloud-6942"; + + PrivateCloud actualResponse = client.resetVcenterCredentialsAsync(privateCloud).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 resetVcenterCredentialsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String privateCloud = + "projects/project-6942/locations/location-6942/privateClouds/privateCloud-6942"; + client.resetVcenterCredentialsAsync(privateCloud).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createHcxActivationKeyTest() throws Exception { + HcxActivationKey expectedResponse = + HcxActivationKey.newBuilder() + .setName( + HcxActivationKeyName.of( + "[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[HCX_ACTIVATION_KEY]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setActivationKey("activationKey1757742441") + .setUid("uid115792") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createHcxActivationKeyTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + PrivateCloudName parent = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); + HcxActivationKey hcxActivationKey = HcxActivationKey.newBuilder().build(); + String hcxActivationKeyId = "hcxActivationKeyId-645871673"; + + HcxActivationKey actualResponse = + client.createHcxActivationKeyAsync(parent, hcxActivationKey, hcxActivationKeyId).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 createHcxActivationKeyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + PrivateCloudName parent = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); + HcxActivationKey hcxActivationKey = HcxActivationKey.newBuilder().build(); + String hcxActivationKeyId = "hcxActivationKeyId-645871673"; + client.createHcxActivationKeyAsync(parent, hcxActivationKey, hcxActivationKeyId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createHcxActivationKeyTest2() throws Exception { + HcxActivationKey expectedResponse = + HcxActivationKey.newBuilder() + .setName( + HcxActivationKeyName.of( + "[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[HCX_ACTIVATION_KEY]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setActivationKey("activationKey1757742441") + .setUid("uid115792") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createHcxActivationKeyTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "projects/project-4854/locations/location-4854/privateClouds/privateCloud-4854"; + HcxActivationKey hcxActivationKey = HcxActivationKey.newBuilder().build(); + String hcxActivationKeyId = "hcxActivationKeyId-645871673"; + + HcxActivationKey actualResponse = + client.createHcxActivationKeyAsync(parent, hcxActivationKey, hcxActivationKeyId).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 createHcxActivationKeyExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = + "projects/project-4854/locations/location-4854/privateClouds/privateCloud-4854"; + HcxActivationKey hcxActivationKey = HcxActivationKey.newBuilder().build(); + String hcxActivationKeyId = "hcxActivationKeyId-645871673"; + client.createHcxActivationKeyAsync(parent, hcxActivationKey, hcxActivationKeyId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void listHcxActivationKeysTest() throws Exception { + HcxActivationKey responsesElement = HcxActivationKey.newBuilder().build(); + ListHcxActivationKeysResponse expectedResponse = + ListHcxActivationKeysResponse.newBuilder() + .setNextPageToken("") + .addAllHcxActivationKeys(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + PrivateCloudName parent = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); + + ListHcxActivationKeysPagedResponse pagedListResponse = client.listHcxActivationKeys(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getHcxActivationKeysList().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 listHcxActivationKeysExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + PrivateCloudName parent = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); + client.listHcxActivationKeys(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listHcxActivationKeysTest2() throws Exception { + HcxActivationKey responsesElement = HcxActivationKey.newBuilder().build(); + ListHcxActivationKeysResponse expectedResponse = + ListHcxActivationKeysResponse.newBuilder() + .setNextPageToken("") + .addAllHcxActivationKeys(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-4854/locations/location-4854/privateClouds/privateCloud-4854"; + + ListHcxActivationKeysPagedResponse pagedListResponse = client.listHcxActivationKeys(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getHcxActivationKeysList().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 listHcxActivationKeysExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = + "projects/project-4854/locations/location-4854/privateClouds/privateCloud-4854"; + client.listHcxActivationKeys(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getHcxActivationKeyTest() throws Exception { + HcxActivationKey expectedResponse = + HcxActivationKey.newBuilder() + .setName( + HcxActivationKeyName.of( + "[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[HCX_ACTIVATION_KEY]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setActivationKey("activationKey1757742441") + .setUid("uid115792") + .build(); + mockService.addResponse(expectedResponse); + + HcxActivationKeyName name = + HcxActivationKeyName.of( + "[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[HCX_ACTIVATION_KEY]"); + + HcxActivationKey actualResponse = client.getHcxActivationKey(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getHcxActivationKeyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + HcxActivationKeyName name = + HcxActivationKeyName.of( + "[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[HCX_ACTIVATION_KEY]"); + client.getHcxActivationKey(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getHcxActivationKeyTest2() throws Exception { + HcxActivationKey expectedResponse = + HcxActivationKey.newBuilder() + .setName( + HcxActivationKeyName.of( + "[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[HCX_ACTIVATION_KEY]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setActivationKey("activationKey1757742441") + .setUid("uid115792") + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-3178/locations/location-3178/privateClouds/privateCloud-3178/hcxActivationKeys/hcxActivationKey-3178"; + + HcxActivationKey actualResponse = client.getHcxActivationKey(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getHcxActivationKeyExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-3178/locations/location-3178/privateClouds/privateCloud-3178/hcxActivationKeys/hcxActivationKey-3178"; + client.getHcxActivationKey(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getNetworkPolicyTest() throws Exception { + NetworkPolicy expectedResponse = + NetworkPolicy.newBuilder() + .setName(NetworkPolicyName.of("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setInternetAccess(NetworkPolicy.NetworkService.newBuilder().build()) + .setExternalIp(NetworkPolicy.NetworkService.newBuilder().build()) + .setEdgeServicesCidr("edgeServicesCidr846515023") + .setUid("uid115792") + .setVmwareEngineNetwork( + VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]") + .toString()) + .setDescription("description-1724546052") + .setVmwareEngineNetworkCanonical( + VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]") + .toString()) + .build(); + mockService.addResponse(expectedResponse); + + NetworkPolicyName name = NetworkPolicyName.of("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]"); + + NetworkPolicy actualResponse = client.getNetworkPolicy(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getNetworkPolicyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + NetworkPolicyName name = NetworkPolicyName.of("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]"); + client.getNetworkPolicy(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getNetworkPolicyTest2() throws Exception { + NetworkPolicy expectedResponse = + NetworkPolicy.newBuilder() + .setName(NetworkPolicyName.of("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setInternetAccess(NetworkPolicy.NetworkService.newBuilder().build()) + .setExternalIp(NetworkPolicy.NetworkService.newBuilder().build()) + .setEdgeServicesCidr("edgeServicesCidr846515023") + .setUid("uid115792") + .setVmwareEngineNetwork( + VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]") + .toString()) + .setDescription("description-1724546052") + .setVmwareEngineNetworkCanonical( + VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]") + .toString()) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-6412/locations/location-6412/networkPolicies/networkPolicie-6412"; + + NetworkPolicy actualResponse = client.getNetworkPolicy(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getNetworkPolicyExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-6412/locations/location-6412/networkPolicies/networkPolicie-6412"; + client.getNetworkPolicy(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listNetworkPoliciesTest() throws Exception { + NetworkPolicy responsesElement = NetworkPolicy.newBuilder().build(); + ListNetworkPoliciesResponse expectedResponse = + ListNetworkPoliciesResponse.newBuilder() + .setNextPageToken("") + .addAllNetworkPolicies(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListNetworkPoliciesPagedResponse pagedListResponse = client.listNetworkPolicies(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getNetworkPoliciesList().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 listNetworkPoliciesExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listNetworkPolicies(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listNetworkPoliciesTest2() throws Exception { + NetworkPolicy responsesElement = NetworkPolicy.newBuilder().build(); + ListNetworkPoliciesResponse expectedResponse = + ListNetworkPoliciesResponse.newBuilder() + .setNextPageToken("") + .addAllNetworkPolicies(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListNetworkPoliciesPagedResponse pagedListResponse = client.listNetworkPolicies(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getNetworkPoliciesList().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 listNetworkPoliciesExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + client.listNetworkPolicies(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createNetworkPolicyTest() throws Exception { + NetworkPolicy expectedResponse = + NetworkPolicy.newBuilder() + .setName(NetworkPolicyName.of("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setInternetAccess(NetworkPolicy.NetworkService.newBuilder().build()) + .setExternalIp(NetworkPolicy.NetworkService.newBuilder().build()) + .setEdgeServicesCidr("edgeServicesCidr846515023") + .setUid("uid115792") + .setVmwareEngineNetwork( + VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]") + .toString()) + .setDescription("description-1724546052") + .setVmwareEngineNetworkCanonical( + VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]") + .toString()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createNetworkPolicyTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + NetworkPolicy networkPolicy = NetworkPolicy.newBuilder().build(); + String networkPolicyId = "networkPolicyId-727262661"; + + NetworkPolicy actualResponse = + client.createNetworkPolicyAsync(parent, networkPolicy, networkPolicyId).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 createNetworkPolicyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + NetworkPolicy networkPolicy = NetworkPolicy.newBuilder().build(); + String networkPolicyId = "networkPolicyId-727262661"; + client.createNetworkPolicyAsync(parent, networkPolicy, networkPolicyId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createNetworkPolicyTest2() throws Exception { + NetworkPolicy expectedResponse = + NetworkPolicy.newBuilder() + .setName(NetworkPolicyName.of("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setInternetAccess(NetworkPolicy.NetworkService.newBuilder().build()) + .setExternalIp(NetworkPolicy.NetworkService.newBuilder().build()) + .setEdgeServicesCidr("edgeServicesCidr846515023") + .setUid("uid115792") + .setVmwareEngineNetwork( + VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]") + .toString()) + .setDescription("description-1724546052") + .setVmwareEngineNetworkCanonical( + VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]") + .toString()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createNetworkPolicyTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "projects/project-5833/locations/location-5833"; + NetworkPolicy networkPolicy = NetworkPolicy.newBuilder().build(); + String networkPolicyId = "networkPolicyId-727262661"; + + NetworkPolicy actualResponse = + client.createNetworkPolicyAsync(parent, networkPolicy, networkPolicyId).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 createNetworkPolicyExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + NetworkPolicy networkPolicy = NetworkPolicy.newBuilder().build(); + String networkPolicyId = "networkPolicyId-727262661"; + client.createNetworkPolicyAsync(parent, networkPolicy, networkPolicyId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void updateNetworkPolicyTest() throws Exception { + NetworkPolicy expectedResponse = + NetworkPolicy.newBuilder() + .setName(NetworkPolicyName.of("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setInternetAccess(NetworkPolicy.NetworkService.newBuilder().build()) + .setExternalIp(NetworkPolicy.NetworkService.newBuilder().build()) + .setEdgeServicesCidr("edgeServicesCidr846515023") + .setUid("uid115792") + .setVmwareEngineNetwork( + VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]") + .toString()) + .setDescription("description-1724546052") + .setVmwareEngineNetworkCanonical( + VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]") + .toString()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateNetworkPolicyTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + NetworkPolicy networkPolicy = + NetworkPolicy.newBuilder() + .setName(NetworkPolicyName.of("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setInternetAccess(NetworkPolicy.NetworkService.newBuilder().build()) + .setExternalIp(NetworkPolicy.NetworkService.newBuilder().build()) + .setEdgeServicesCidr("edgeServicesCidr846515023") + .setUid("uid115792") + .setVmwareEngineNetwork( + VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]") + .toString()) + .setDescription("description-1724546052") + .setVmwareEngineNetworkCanonical( + VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]") + .toString()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + NetworkPolicy actualResponse = client.updateNetworkPolicyAsync(networkPolicy, updateMask).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 updateNetworkPolicyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + NetworkPolicy networkPolicy = + NetworkPolicy.newBuilder() + .setName( + NetworkPolicyName.of("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setInternetAccess(NetworkPolicy.NetworkService.newBuilder().build()) + .setExternalIp(NetworkPolicy.NetworkService.newBuilder().build()) + .setEdgeServicesCidr("edgeServicesCidr846515023") + .setUid("uid115792") + .setVmwareEngineNetwork( + VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]") + .toString()) + .setDescription("description-1724546052") + .setVmwareEngineNetworkCanonical( + VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]") + .toString()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateNetworkPolicyAsync(networkPolicy, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteNetworkPolicyTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteNetworkPolicyTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + NetworkPolicyName name = NetworkPolicyName.of("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]"); + + client.deleteNetworkPolicyAsync(name).get(); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteNetworkPolicyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + NetworkPolicyName name = NetworkPolicyName.of("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]"); + client.deleteNetworkPolicyAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteNetworkPolicyTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteNetworkPolicyTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = + "projects/project-6412/locations/location-6412/networkPolicies/networkPolicie-6412"; + + client.deleteNetworkPolicyAsync(name).get(); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteNetworkPolicyExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-6412/locations/location-6412/networkPolicies/networkPolicie-6412"; + client.deleteNetworkPolicyAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createVmwareEngineNetworkTest() throws Exception { + VmwareEngineNetwork expectedResponse = + VmwareEngineNetwork.newBuilder() + .setName( + VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDescription("description-1724546052") + .addAllVpcNetworks(new ArrayList()) + .setUid("uid115792") + .setEtag("etag3123477") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createVmwareEngineNetworkTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + VmwareEngineNetwork vmwareEngineNetwork = VmwareEngineNetwork.newBuilder().build(); + String vmwareEngineNetworkId = "vmwareEngineNetworkId532532083"; + + VmwareEngineNetwork actualResponse = + client + .createVmwareEngineNetworkAsync(parent, vmwareEngineNetwork, vmwareEngineNetworkId) + .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 createVmwareEngineNetworkExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + VmwareEngineNetwork vmwareEngineNetwork = VmwareEngineNetwork.newBuilder().build(); + String vmwareEngineNetworkId = "vmwareEngineNetworkId532532083"; + client + .createVmwareEngineNetworkAsync(parent, vmwareEngineNetwork, vmwareEngineNetworkId) + .get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createVmwareEngineNetworkTest2() throws Exception { + VmwareEngineNetwork expectedResponse = + VmwareEngineNetwork.newBuilder() + .setName( + VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDescription("description-1724546052") + .addAllVpcNetworks(new ArrayList()) + .setUid("uid115792") + .setEtag("etag3123477") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createVmwareEngineNetworkTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "projects/project-5833/locations/location-5833"; + VmwareEngineNetwork vmwareEngineNetwork = VmwareEngineNetwork.newBuilder().build(); + String vmwareEngineNetworkId = "vmwareEngineNetworkId532532083"; + + VmwareEngineNetwork actualResponse = + client + .createVmwareEngineNetworkAsync(parent, vmwareEngineNetwork, vmwareEngineNetworkId) + .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 createVmwareEngineNetworkExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + VmwareEngineNetwork vmwareEngineNetwork = VmwareEngineNetwork.newBuilder().build(); + String vmwareEngineNetworkId = "vmwareEngineNetworkId532532083"; + client + .createVmwareEngineNetworkAsync(parent, vmwareEngineNetwork, vmwareEngineNetworkId) + .get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void updateVmwareEngineNetworkTest() throws Exception { + VmwareEngineNetwork expectedResponse = + VmwareEngineNetwork.newBuilder() + .setName( + VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDescription("description-1724546052") + .addAllVpcNetworks(new ArrayList()) + .setUid("uid115792") + .setEtag("etag3123477") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateVmwareEngineNetworkTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + VmwareEngineNetwork vmwareEngineNetwork = + VmwareEngineNetwork.newBuilder() + .setName( + VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDescription("description-1724546052") + .addAllVpcNetworks(new ArrayList()) + .setUid("uid115792") + .setEtag("etag3123477") + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + VmwareEngineNetwork actualResponse = + client.updateVmwareEngineNetworkAsync(vmwareEngineNetwork, updateMask).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 updateVmwareEngineNetworkExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + VmwareEngineNetwork vmwareEngineNetwork = + VmwareEngineNetwork.newBuilder() + .setName( + VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDescription("description-1724546052") + .addAllVpcNetworks(new ArrayList()) + .setUid("uid115792") + .setEtag("etag3123477") + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateVmwareEngineNetworkAsync(vmwareEngineNetwork, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteVmwareEngineNetworkTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteVmwareEngineNetworkTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + VmwareEngineNetworkName name = + VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]"); + + client.deleteVmwareEngineNetworkAsync(name).get(); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteVmwareEngineNetworkExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + VmwareEngineNetworkName name = + VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]"); + client.deleteVmwareEngineNetworkAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteVmwareEngineNetworkTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteVmwareEngineNetworkTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = + "projects/project-9883/locations/location-9883/vmwareEngineNetworks/vmwareEngineNetwork-9883"; + + client.deleteVmwareEngineNetworkAsync(name).get(); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteVmwareEngineNetworkExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-9883/locations/location-9883/vmwareEngineNetworks/vmwareEngineNetwork-9883"; + client.deleteVmwareEngineNetworkAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void getVmwareEngineNetworkTest() throws Exception { + VmwareEngineNetwork expectedResponse = + VmwareEngineNetwork.newBuilder() + .setName( + VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDescription("description-1724546052") + .addAllVpcNetworks(new ArrayList()) + .setUid("uid115792") + .setEtag("etag3123477") + .build(); + mockService.addResponse(expectedResponse); + + VmwareEngineNetworkName name = + VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]"); + + VmwareEngineNetwork actualResponse = client.getVmwareEngineNetwork(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getVmwareEngineNetworkExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + VmwareEngineNetworkName name = + VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]"); + client.getVmwareEngineNetwork(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getVmwareEngineNetworkTest2() throws Exception { + VmwareEngineNetwork expectedResponse = + VmwareEngineNetwork.newBuilder() + .setName( + VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDescription("description-1724546052") + .addAllVpcNetworks(new ArrayList()) + .setUid("uid115792") + .setEtag("etag3123477") + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-9883/locations/location-9883/vmwareEngineNetworks/vmwareEngineNetwork-9883"; + + VmwareEngineNetwork actualResponse = client.getVmwareEngineNetwork(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getVmwareEngineNetworkExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-9883/locations/location-9883/vmwareEngineNetworks/vmwareEngineNetwork-9883"; + client.getVmwareEngineNetwork(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listVmwareEngineNetworksTest() throws Exception { + VmwareEngineNetwork responsesElement = VmwareEngineNetwork.newBuilder().build(); + ListVmwareEngineNetworksResponse expectedResponse = + ListVmwareEngineNetworksResponse.newBuilder() + .setNextPageToken("") + .addAllVmwareEngineNetworks(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListVmwareEngineNetworksPagedResponse pagedListResponse = + client.listVmwareEngineNetworks(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getVmwareEngineNetworksList().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 listVmwareEngineNetworksExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listVmwareEngineNetworks(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listVmwareEngineNetworksTest2() throws Exception { + VmwareEngineNetwork responsesElement = VmwareEngineNetwork.newBuilder().build(); + ListVmwareEngineNetworksResponse expectedResponse = + ListVmwareEngineNetworksResponse.newBuilder() + .setNextPageToken("") + .addAllVmwareEngineNetworks(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListVmwareEngineNetworksPagedResponse pagedListResponse = + client.listVmwareEngineNetworks(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getVmwareEngineNetworksList().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 listVmwareEngineNetworksExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + client.listVmwareEngineNetworks(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listLocationsTest() throws Exception { + Location responsesElement = Location.newBuilder().build(); + ListLocationsResponse expectedResponse = + ListLocationsResponse.newBuilder() + .setNextPageToken("") + .addAllLocations(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("projects/project-3664") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + + ListLocationsPagedResponse pagedListResponse = client.listLocations(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getLocationsList().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 listLocationsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("projects/project-3664") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + client.listLocations(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getLocationTest() throws Exception { + Location expectedResponse = + Location.newBuilder() + .setName("name3373707") + .setLocationId("locationId1541836720") + .setDisplayName("displayName1714148973") + .putAllLabels(new HashMap()) + .setMetadata(Any.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + GetLocationRequest request = + GetLocationRequest.newBuilder() + .setName("projects/project-9062/locations/location-9062") + .build(); + + Location actualResponse = client.getLocation(request); + 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 getLocationExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + GetLocationRequest request = + GetLocationRequest.newBuilder() + .setName("projects/project-9062/locations/location-9062") + .build(); + client.getLocation(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void setIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockService.addResponse(expectedResponse); + + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource( + ClusterName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[CLUSTER]") + .toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + + Policy actualResponse = client.setIamPolicy(request); + 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 { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource( + ClusterName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[CLUSTER]") + .toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + client.setIamPolicy(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockService.addResponse(expectedResponse); + + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource( + ClusterName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[CLUSTER]") + .toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + + Policy actualResponse = client.getIamPolicy(request); + 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 { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource( + ClusterName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[CLUSTER]") + .toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + client.getIamPolicy(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void testIamPermissionsTest() throws Exception { + TestIamPermissionsResponse expectedResponse = + TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build(); + mockService.addResponse(expectedResponse); + + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource( + ClusterName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[CLUSTER]") + .toString()) + .addAllPermissions(new ArrayList()) + .build(); + + TestIamPermissionsResponse actualResponse = client.testIamPermissions(request); + 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 { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource( + ClusterName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[CLUSTER]") + .toString()) + .addAllPermissions(new ArrayList()) + .build(); + client.testIamPermissions(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-vmwareengine/google-cloud-vmwareengine/src/test/java/com/google/cloud/vmwareengine/v1/VmwareEngineClientTest.java b/java-vmwareengine/google-cloud-vmwareengine/src/test/java/com/google/cloud/vmwareengine/v1/VmwareEngineClientTest.java new file mode 100644 index 000000000000..2ca710df439a --- /dev/null +++ b/java-vmwareengine/google-cloud-vmwareengine/src/test/java/com/google/cloud/vmwareengine/v1/VmwareEngineClientTest.java @@ -0,0 +1,3314 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.vmwareengine.v1; + +import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListClustersPagedResponse; +import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListHcxActivationKeysPagedResponse; +import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListLocationsPagedResponse; +import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListNetworkPoliciesPagedResponse; +import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListNodeTypesPagedResponse; +import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListPrivateCloudsPagedResponse; +import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListSubnetsPagedResponse; +import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListVmwareEngineNetworksPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.collect.Lists; +import com.google.iam.v1.AuditConfig; +import com.google.iam.v1.Binding; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Any; +import com.google.protobuf.ByteString; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import com.google.protobuf.Timestamp; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.UUID; +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 VmwareEngineClientTest { + private static MockIAMPolicy mockIAMPolicy; + private static MockLocations mockLocations; + private static MockServiceHelper mockServiceHelper; + private static MockVmwareEngine mockVmwareEngine; + private LocalChannelProvider channelProvider; + private VmwareEngineClient client; + + @BeforeClass + public static void startStaticServer() { + mockVmwareEngine = new MockVmwareEngine(); + mockLocations = new MockLocations(); + mockIAMPolicy = new MockIAMPolicy(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), + Arrays.asList(mockVmwareEngine, mockLocations, mockIAMPolicy)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + VmwareEngineSettings settings = + VmwareEngineSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = VmwareEngineClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void listPrivateCloudsTest() throws Exception { + PrivateCloud responsesElement = PrivateCloud.newBuilder().build(); + ListPrivateCloudsResponse expectedResponse = + ListPrivateCloudsResponse.newBuilder() + .setNextPageToken("") + .addAllPrivateClouds(Arrays.asList(responsesElement)) + .build(); + mockVmwareEngine.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListPrivateCloudsPagedResponse pagedListResponse = client.listPrivateClouds(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getPrivateCloudsList().get(0), resources.get(0)); + + List actualRequests = mockVmwareEngine.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListPrivateCloudsRequest actualRequest = ((ListPrivateCloudsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listPrivateCloudsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVmwareEngine.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listPrivateClouds(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listPrivateCloudsTest2() throws Exception { + PrivateCloud responsesElement = PrivateCloud.newBuilder().build(); + ListPrivateCloudsResponse expectedResponse = + ListPrivateCloudsResponse.newBuilder() + .setNextPageToken("") + .addAllPrivateClouds(Arrays.asList(responsesElement)) + .build(); + mockVmwareEngine.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListPrivateCloudsPagedResponse pagedListResponse = client.listPrivateClouds(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getPrivateCloudsList().get(0), resources.get(0)); + + List actualRequests = mockVmwareEngine.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListPrivateCloudsRequest actualRequest = ((ListPrivateCloudsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listPrivateCloudsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVmwareEngine.addException(exception); + + try { + String parent = "parent-995424086"; + client.listPrivateClouds(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getPrivateCloudTest() throws Exception { + PrivateCloud expectedResponse = + PrivateCloud.newBuilder() + .setName(PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) + .setNetworkConfig(NetworkConfig.newBuilder().build()) + .setManagementCluster(PrivateCloud.ManagementCluster.newBuilder().build()) + .setDescription("description-1724546052") + .setHcx(Hcx.newBuilder().build()) + .setNsx(Nsx.newBuilder().build()) + .setVcenter(Vcenter.newBuilder().build()) + .setUid("uid115792") + .build(); + mockVmwareEngine.addResponse(expectedResponse); + + PrivateCloudName name = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); + + PrivateCloud actualResponse = client.getPrivateCloud(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVmwareEngine.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetPrivateCloudRequest actualRequest = ((GetPrivateCloudRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getPrivateCloudExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVmwareEngine.addException(exception); + + try { + PrivateCloudName name = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); + client.getPrivateCloud(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getPrivateCloudTest2() throws Exception { + PrivateCloud expectedResponse = + PrivateCloud.newBuilder() + .setName(PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) + .setNetworkConfig(NetworkConfig.newBuilder().build()) + .setManagementCluster(PrivateCloud.ManagementCluster.newBuilder().build()) + .setDescription("description-1724546052") + .setHcx(Hcx.newBuilder().build()) + .setNsx(Nsx.newBuilder().build()) + .setVcenter(Vcenter.newBuilder().build()) + .setUid("uid115792") + .build(); + mockVmwareEngine.addResponse(expectedResponse); + + String name = "name3373707"; + + PrivateCloud actualResponse = client.getPrivateCloud(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVmwareEngine.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetPrivateCloudRequest actualRequest = ((GetPrivateCloudRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getPrivateCloudExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVmwareEngine.addException(exception); + + try { + String name = "name3373707"; + client.getPrivateCloud(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createPrivateCloudTest() throws Exception { + PrivateCloud expectedResponse = + PrivateCloud.newBuilder() + .setName(PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) + .setNetworkConfig(NetworkConfig.newBuilder().build()) + .setManagementCluster(PrivateCloud.ManagementCluster.newBuilder().build()) + .setDescription("description-1724546052") + .setHcx(Hcx.newBuilder().build()) + .setNsx(Nsx.newBuilder().build()) + .setVcenter(Vcenter.newBuilder().build()) + .setUid("uid115792") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createPrivateCloudTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockVmwareEngine.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + PrivateCloud privateCloud = PrivateCloud.newBuilder().build(); + String privateCloudId = "privateCloudId573896493"; + + PrivateCloud actualResponse = + client.createPrivateCloudAsync(parent, privateCloud, privateCloudId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVmwareEngine.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreatePrivateCloudRequest actualRequest = ((CreatePrivateCloudRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(privateCloud, actualRequest.getPrivateCloud()); + Assert.assertEquals(privateCloudId, actualRequest.getPrivateCloudId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createPrivateCloudExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVmwareEngine.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + PrivateCloud privateCloud = PrivateCloud.newBuilder().build(); + String privateCloudId = "privateCloudId573896493"; + client.createPrivateCloudAsync(parent, privateCloud, privateCloudId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void createPrivateCloudTest2() throws Exception { + PrivateCloud expectedResponse = + PrivateCloud.newBuilder() + .setName(PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) + .setNetworkConfig(NetworkConfig.newBuilder().build()) + .setManagementCluster(PrivateCloud.ManagementCluster.newBuilder().build()) + .setDescription("description-1724546052") + .setHcx(Hcx.newBuilder().build()) + .setNsx(Nsx.newBuilder().build()) + .setVcenter(Vcenter.newBuilder().build()) + .setUid("uid115792") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createPrivateCloudTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockVmwareEngine.addResponse(resultOperation); + + String parent = "parent-995424086"; + PrivateCloud privateCloud = PrivateCloud.newBuilder().build(); + String privateCloudId = "privateCloudId573896493"; + + PrivateCloud actualResponse = + client.createPrivateCloudAsync(parent, privateCloud, privateCloudId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVmwareEngine.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreatePrivateCloudRequest actualRequest = ((CreatePrivateCloudRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(privateCloud, actualRequest.getPrivateCloud()); + Assert.assertEquals(privateCloudId, actualRequest.getPrivateCloudId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createPrivateCloudExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVmwareEngine.addException(exception); + + try { + String parent = "parent-995424086"; + PrivateCloud privateCloud = PrivateCloud.newBuilder().build(); + String privateCloudId = "privateCloudId573896493"; + client.createPrivateCloudAsync(parent, privateCloud, privateCloudId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void updatePrivateCloudTest() throws Exception { + PrivateCloud expectedResponse = + PrivateCloud.newBuilder() + .setName(PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) + .setNetworkConfig(NetworkConfig.newBuilder().build()) + .setManagementCluster(PrivateCloud.ManagementCluster.newBuilder().build()) + .setDescription("description-1724546052") + .setHcx(Hcx.newBuilder().build()) + .setNsx(Nsx.newBuilder().build()) + .setVcenter(Vcenter.newBuilder().build()) + .setUid("uid115792") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updatePrivateCloudTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockVmwareEngine.addResponse(resultOperation); + + PrivateCloud privateCloud = PrivateCloud.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + PrivateCloud actualResponse = client.updatePrivateCloudAsync(privateCloud, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVmwareEngine.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdatePrivateCloudRequest actualRequest = ((UpdatePrivateCloudRequest) actualRequests.get(0)); + + Assert.assertEquals(privateCloud, actualRequest.getPrivateCloud()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updatePrivateCloudExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVmwareEngine.addException(exception); + + try { + PrivateCloud privateCloud = PrivateCloud.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updatePrivateCloudAsync(privateCloud, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deletePrivateCloudTest() throws Exception { + PrivateCloud expectedResponse = + PrivateCloud.newBuilder() + .setName(PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) + .setNetworkConfig(NetworkConfig.newBuilder().build()) + .setManagementCluster(PrivateCloud.ManagementCluster.newBuilder().build()) + .setDescription("description-1724546052") + .setHcx(Hcx.newBuilder().build()) + .setNsx(Nsx.newBuilder().build()) + .setVcenter(Vcenter.newBuilder().build()) + .setUid("uid115792") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deletePrivateCloudTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockVmwareEngine.addResponse(resultOperation); + + PrivateCloudName name = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); + + PrivateCloud actualResponse = client.deletePrivateCloudAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVmwareEngine.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeletePrivateCloudRequest actualRequest = ((DeletePrivateCloudRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deletePrivateCloudExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVmwareEngine.addException(exception); + + try { + PrivateCloudName name = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); + client.deletePrivateCloudAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deletePrivateCloudTest2() throws Exception { + PrivateCloud expectedResponse = + PrivateCloud.newBuilder() + .setName(PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) + .setNetworkConfig(NetworkConfig.newBuilder().build()) + .setManagementCluster(PrivateCloud.ManagementCluster.newBuilder().build()) + .setDescription("description-1724546052") + .setHcx(Hcx.newBuilder().build()) + .setNsx(Nsx.newBuilder().build()) + .setVcenter(Vcenter.newBuilder().build()) + .setUid("uid115792") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deletePrivateCloudTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockVmwareEngine.addResponse(resultOperation); + + String name = "name3373707"; + + PrivateCloud actualResponse = client.deletePrivateCloudAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVmwareEngine.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeletePrivateCloudRequest actualRequest = ((DeletePrivateCloudRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deletePrivateCloudExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVmwareEngine.addException(exception); + + try { + String name = "name3373707"; + client.deletePrivateCloudAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void undeletePrivateCloudTest() throws Exception { + PrivateCloud expectedResponse = + PrivateCloud.newBuilder() + .setName(PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) + .setNetworkConfig(NetworkConfig.newBuilder().build()) + .setManagementCluster(PrivateCloud.ManagementCluster.newBuilder().build()) + .setDescription("description-1724546052") + .setHcx(Hcx.newBuilder().build()) + .setNsx(Nsx.newBuilder().build()) + .setVcenter(Vcenter.newBuilder().build()) + .setUid("uid115792") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("undeletePrivateCloudTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockVmwareEngine.addResponse(resultOperation); + + PrivateCloudName name = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); + + PrivateCloud actualResponse = client.undeletePrivateCloudAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVmwareEngine.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UndeletePrivateCloudRequest actualRequest = + ((UndeletePrivateCloudRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void undeletePrivateCloudExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVmwareEngine.addException(exception); + + try { + PrivateCloudName name = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); + client.undeletePrivateCloudAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void undeletePrivateCloudTest2() throws Exception { + PrivateCloud expectedResponse = + PrivateCloud.newBuilder() + .setName(PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) + .setNetworkConfig(NetworkConfig.newBuilder().build()) + .setManagementCluster(PrivateCloud.ManagementCluster.newBuilder().build()) + .setDescription("description-1724546052") + .setHcx(Hcx.newBuilder().build()) + .setNsx(Nsx.newBuilder().build()) + .setVcenter(Vcenter.newBuilder().build()) + .setUid("uid115792") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("undeletePrivateCloudTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockVmwareEngine.addResponse(resultOperation); + + String name = "name3373707"; + + PrivateCloud actualResponse = client.undeletePrivateCloudAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVmwareEngine.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UndeletePrivateCloudRequest actualRequest = + ((UndeletePrivateCloudRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void undeletePrivateCloudExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVmwareEngine.addException(exception); + + try { + String name = "name3373707"; + client.undeletePrivateCloudAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void listClustersTest() throws Exception { + Cluster responsesElement = Cluster.newBuilder().build(); + ListClustersResponse expectedResponse = + ListClustersResponse.newBuilder() + .setNextPageToken("") + .addAllClusters(Arrays.asList(responsesElement)) + .build(); + mockVmwareEngine.addResponse(expectedResponse); + + PrivateCloudName parent = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); + + ListClustersPagedResponse pagedListResponse = client.listClusters(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getClustersList().get(0), resources.get(0)); + + List actualRequests = mockVmwareEngine.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListClustersRequest actualRequest = ((ListClustersRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listClustersExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVmwareEngine.addException(exception); + + try { + PrivateCloudName parent = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); + client.listClusters(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listClustersTest2() throws Exception { + Cluster responsesElement = Cluster.newBuilder().build(); + ListClustersResponse expectedResponse = + ListClustersResponse.newBuilder() + .setNextPageToken("") + .addAllClusters(Arrays.asList(responsesElement)) + .build(); + mockVmwareEngine.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListClustersPagedResponse pagedListResponse = client.listClusters(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getClustersList().get(0), resources.get(0)); + + List actualRequests = mockVmwareEngine.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListClustersRequest actualRequest = ((ListClustersRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listClustersExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVmwareEngine.addException(exception); + + try { + String parent = "parent-995424086"; + client.listClusters(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getClusterTest() throws Exception { + Cluster expectedResponse = + Cluster.newBuilder() + .setName( + ClusterName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[CLUSTER]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setManagement(true) + .setUid("uid115792") + .putAllNodeTypeConfigs(new HashMap()) + .build(); + mockVmwareEngine.addResponse(expectedResponse); + + ClusterName name = ClusterName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[CLUSTER]"); + + Cluster actualResponse = client.getCluster(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVmwareEngine.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetClusterRequest actualRequest = ((GetClusterRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getClusterExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVmwareEngine.addException(exception); + + try { + ClusterName name = ClusterName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[CLUSTER]"); + client.getCluster(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getClusterTest2() throws Exception { + Cluster expectedResponse = + Cluster.newBuilder() + .setName( + ClusterName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[CLUSTER]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setManagement(true) + .setUid("uid115792") + .putAllNodeTypeConfigs(new HashMap()) + .build(); + mockVmwareEngine.addResponse(expectedResponse); + + String name = "name3373707"; + + Cluster actualResponse = client.getCluster(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVmwareEngine.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetClusterRequest actualRequest = ((GetClusterRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getClusterExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVmwareEngine.addException(exception); + + try { + String name = "name3373707"; + client.getCluster(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createClusterTest() throws Exception { + Cluster expectedResponse = + Cluster.newBuilder() + .setName( + ClusterName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[CLUSTER]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setManagement(true) + .setUid("uid115792") + .putAllNodeTypeConfigs(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createClusterTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockVmwareEngine.addResponse(resultOperation); + + PrivateCloudName parent = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); + Cluster cluster = Cluster.newBuilder().build(); + String clusterId = "clusterId561939637"; + + Cluster actualResponse = client.createClusterAsync(parent, cluster, clusterId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVmwareEngine.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateClusterRequest actualRequest = ((CreateClusterRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(cluster, actualRequest.getCluster()); + Assert.assertEquals(clusterId, actualRequest.getClusterId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createClusterExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVmwareEngine.addException(exception); + + try { + PrivateCloudName parent = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); + Cluster cluster = Cluster.newBuilder().build(); + String clusterId = "clusterId561939637"; + client.createClusterAsync(parent, cluster, clusterId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void createClusterTest2() throws Exception { + Cluster expectedResponse = + Cluster.newBuilder() + .setName( + ClusterName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[CLUSTER]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setManagement(true) + .setUid("uid115792") + .putAllNodeTypeConfigs(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createClusterTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockVmwareEngine.addResponse(resultOperation); + + String parent = "parent-995424086"; + Cluster cluster = Cluster.newBuilder().build(); + String clusterId = "clusterId561939637"; + + Cluster actualResponse = client.createClusterAsync(parent, cluster, clusterId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVmwareEngine.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateClusterRequest actualRequest = ((CreateClusterRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(cluster, actualRequest.getCluster()); + Assert.assertEquals(clusterId, actualRequest.getClusterId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createClusterExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVmwareEngine.addException(exception); + + try { + String parent = "parent-995424086"; + Cluster cluster = Cluster.newBuilder().build(); + String clusterId = "clusterId561939637"; + client.createClusterAsync(parent, cluster, clusterId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void updateClusterTest() throws Exception { + Cluster expectedResponse = + Cluster.newBuilder() + .setName( + ClusterName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[CLUSTER]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setManagement(true) + .setUid("uid115792") + .putAllNodeTypeConfigs(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateClusterTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockVmwareEngine.addResponse(resultOperation); + + Cluster cluster = Cluster.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Cluster actualResponse = client.updateClusterAsync(cluster, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVmwareEngine.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateClusterRequest actualRequest = ((UpdateClusterRequest) actualRequests.get(0)); + + Assert.assertEquals(cluster, actualRequest.getCluster()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateClusterExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVmwareEngine.addException(exception); + + try { + Cluster cluster = Cluster.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateClusterAsync(cluster, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteClusterTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteClusterTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockVmwareEngine.addResponse(resultOperation); + + ClusterName name = ClusterName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[CLUSTER]"); + + client.deleteClusterAsync(name).get(); + + List actualRequests = mockVmwareEngine.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteClusterRequest actualRequest = ((DeleteClusterRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteClusterExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVmwareEngine.addException(exception); + + try { + ClusterName name = ClusterName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[CLUSTER]"); + client.deleteClusterAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteClusterTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteClusterTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockVmwareEngine.addResponse(resultOperation); + + String name = "name3373707"; + + client.deleteClusterAsync(name).get(); + + List actualRequests = mockVmwareEngine.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteClusterRequest actualRequest = ((DeleteClusterRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteClusterExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVmwareEngine.addException(exception); + + try { + String name = "name3373707"; + client.deleteClusterAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void listSubnetsTest() throws Exception { + Subnet responsesElement = Subnet.newBuilder().build(); + ListSubnetsResponse expectedResponse = + ListSubnetsResponse.newBuilder() + .setNextPageToken("") + .addAllSubnets(Arrays.asList(responsesElement)) + .build(); + mockVmwareEngine.addResponse(expectedResponse); + + PrivateCloudName parent = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); + + ListSubnetsPagedResponse pagedListResponse = client.listSubnets(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSubnetsList().get(0), resources.get(0)); + + List actualRequests = mockVmwareEngine.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListSubnetsRequest actualRequest = ((ListSubnetsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listSubnetsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVmwareEngine.addException(exception); + + try { + PrivateCloudName parent = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); + client.listSubnets(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listSubnetsTest2() throws Exception { + Subnet responsesElement = Subnet.newBuilder().build(); + ListSubnetsResponse expectedResponse = + ListSubnetsResponse.newBuilder() + .setNextPageToken("") + .addAllSubnets(Arrays.asList(responsesElement)) + .build(); + mockVmwareEngine.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListSubnetsPagedResponse pagedListResponse = client.listSubnets(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSubnetsList().get(0), resources.get(0)); + + List actualRequests = mockVmwareEngine.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListSubnetsRequest actualRequest = ((ListSubnetsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listSubnetsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVmwareEngine.addException(exception); + + try { + String parent = "parent-995424086"; + client.listSubnets(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listNodeTypesTest() throws Exception { + NodeType responsesElement = NodeType.newBuilder().build(); + ListNodeTypesResponse expectedResponse = + ListNodeTypesResponse.newBuilder() + .setNextPageToken("") + .addAllNodeTypes(Arrays.asList(responsesElement)) + .build(); + mockVmwareEngine.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListNodeTypesPagedResponse pagedListResponse = client.listNodeTypes(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getNodeTypesList().get(0), resources.get(0)); + + List actualRequests = mockVmwareEngine.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListNodeTypesRequest actualRequest = ((ListNodeTypesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listNodeTypesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVmwareEngine.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listNodeTypes(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listNodeTypesTest2() throws Exception { + NodeType responsesElement = NodeType.newBuilder().build(); + ListNodeTypesResponse expectedResponse = + ListNodeTypesResponse.newBuilder() + .setNextPageToken("") + .addAllNodeTypes(Arrays.asList(responsesElement)) + .build(); + mockVmwareEngine.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListNodeTypesPagedResponse pagedListResponse = client.listNodeTypes(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getNodeTypesList().get(0), resources.get(0)); + + List actualRequests = mockVmwareEngine.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListNodeTypesRequest actualRequest = ((ListNodeTypesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listNodeTypesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVmwareEngine.addException(exception); + + try { + String parent = "parent-995424086"; + client.listNodeTypes(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getNodeTypeTest() throws Exception { + NodeType expectedResponse = + NodeType.newBuilder() + .setName(NodeTypeName.of("[PROJECT]", "[LOCATION]", "[NODE_TYPE]").toString()) + .setNodeTypeId("nodeTypeId1245332119") + .setDisplayName("displayName1714148973") + .setVirtualCpuCount(289038212) + .setTotalCoreCount(-282953654) + .setMemoryGb(1726613721) + .setDiskSizeGb(-757478089) + .addAllAvailableCustomCoreCounts(new ArrayList()) + .build(); + mockVmwareEngine.addResponse(expectedResponse); + + NodeTypeName name = NodeTypeName.of("[PROJECT]", "[LOCATION]", "[NODE_TYPE]"); + + NodeType actualResponse = client.getNodeType(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVmwareEngine.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetNodeTypeRequest actualRequest = ((GetNodeTypeRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getNodeTypeExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVmwareEngine.addException(exception); + + try { + NodeTypeName name = NodeTypeName.of("[PROJECT]", "[LOCATION]", "[NODE_TYPE]"); + client.getNodeType(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getNodeTypeTest2() throws Exception { + NodeType expectedResponse = + NodeType.newBuilder() + .setName(NodeTypeName.of("[PROJECT]", "[LOCATION]", "[NODE_TYPE]").toString()) + .setNodeTypeId("nodeTypeId1245332119") + .setDisplayName("displayName1714148973") + .setVirtualCpuCount(289038212) + .setTotalCoreCount(-282953654) + .setMemoryGb(1726613721) + .setDiskSizeGb(-757478089) + .addAllAvailableCustomCoreCounts(new ArrayList()) + .build(); + mockVmwareEngine.addResponse(expectedResponse); + + String name = "name3373707"; + + NodeType actualResponse = client.getNodeType(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVmwareEngine.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetNodeTypeRequest actualRequest = ((GetNodeTypeRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getNodeTypeExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVmwareEngine.addException(exception); + + try { + String name = "name3373707"; + client.getNodeType(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void showNsxCredentialsTest() throws Exception { + Credentials expectedResponse = + Credentials.newBuilder() + .setUsername("username-265713450") + .setPassword("password1216985755") + .build(); + mockVmwareEngine.addResponse(expectedResponse); + + PrivateCloudName privateCloud = + PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); + + Credentials actualResponse = client.showNsxCredentials(privateCloud); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVmwareEngine.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ShowNsxCredentialsRequest actualRequest = ((ShowNsxCredentialsRequest) actualRequests.get(0)); + + Assert.assertEquals(privateCloud.toString(), actualRequest.getPrivateCloud()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void showNsxCredentialsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVmwareEngine.addException(exception); + + try { + PrivateCloudName privateCloud = + PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); + client.showNsxCredentials(privateCloud); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void showNsxCredentialsTest2() throws Exception { + Credentials expectedResponse = + Credentials.newBuilder() + .setUsername("username-265713450") + .setPassword("password1216985755") + .build(); + mockVmwareEngine.addResponse(expectedResponse); + + String privateCloud = "privateCloud974897778"; + + Credentials actualResponse = client.showNsxCredentials(privateCloud); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVmwareEngine.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ShowNsxCredentialsRequest actualRequest = ((ShowNsxCredentialsRequest) actualRequests.get(0)); + + Assert.assertEquals(privateCloud, actualRequest.getPrivateCloud()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void showNsxCredentialsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVmwareEngine.addException(exception); + + try { + String privateCloud = "privateCloud974897778"; + client.showNsxCredentials(privateCloud); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void showVcenterCredentialsTest() throws Exception { + Credentials expectedResponse = + Credentials.newBuilder() + .setUsername("username-265713450") + .setPassword("password1216985755") + .build(); + mockVmwareEngine.addResponse(expectedResponse); + + PrivateCloudName privateCloud = + PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); + + Credentials actualResponse = client.showVcenterCredentials(privateCloud); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVmwareEngine.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ShowVcenterCredentialsRequest actualRequest = + ((ShowVcenterCredentialsRequest) actualRequests.get(0)); + + Assert.assertEquals(privateCloud.toString(), actualRequest.getPrivateCloud()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void showVcenterCredentialsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVmwareEngine.addException(exception); + + try { + PrivateCloudName privateCloud = + PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); + client.showVcenterCredentials(privateCloud); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void showVcenterCredentialsTest2() throws Exception { + Credentials expectedResponse = + Credentials.newBuilder() + .setUsername("username-265713450") + .setPassword("password1216985755") + .build(); + mockVmwareEngine.addResponse(expectedResponse); + + String privateCloud = "privateCloud974897778"; + + Credentials actualResponse = client.showVcenterCredentials(privateCloud); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVmwareEngine.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ShowVcenterCredentialsRequest actualRequest = + ((ShowVcenterCredentialsRequest) actualRequests.get(0)); + + Assert.assertEquals(privateCloud, actualRequest.getPrivateCloud()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void showVcenterCredentialsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVmwareEngine.addException(exception); + + try { + String privateCloud = "privateCloud974897778"; + client.showVcenterCredentials(privateCloud); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void resetNsxCredentialsTest() throws Exception { + PrivateCloud expectedResponse = + PrivateCloud.newBuilder() + .setName(PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) + .setNetworkConfig(NetworkConfig.newBuilder().build()) + .setManagementCluster(PrivateCloud.ManagementCluster.newBuilder().build()) + .setDescription("description-1724546052") + .setHcx(Hcx.newBuilder().build()) + .setNsx(Nsx.newBuilder().build()) + .setVcenter(Vcenter.newBuilder().build()) + .setUid("uid115792") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("resetNsxCredentialsTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockVmwareEngine.addResponse(resultOperation); + + PrivateCloudName privateCloud = + PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); + + PrivateCloud actualResponse = client.resetNsxCredentialsAsync(privateCloud).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVmwareEngine.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ResetNsxCredentialsRequest actualRequest = ((ResetNsxCredentialsRequest) actualRequests.get(0)); + + Assert.assertEquals(privateCloud.toString(), actualRequest.getPrivateCloud()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void resetNsxCredentialsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVmwareEngine.addException(exception); + + try { + PrivateCloudName privateCloud = + PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); + client.resetNsxCredentialsAsync(privateCloud).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void resetNsxCredentialsTest2() throws Exception { + PrivateCloud expectedResponse = + PrivateCloud.newBuilder() + .setName(PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) + .setNetworkConfig(NetworkConfig.newBuilder().build()) + .setManagementCluster(PrivateCloud.ManagementCluster.newBuilder().build()) + .setDescription("description-1724546052") + .setHcx(Hcx.newBuilder().build()) + .setNsx(Nsx.newBuilder().build()) + .setVcenter(Vcenter.newBuilder().build()) + .setUid("uid115792") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("resetNsxCredentialsTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockVmwareEngine.addResponse(resultOperation); + + String privateCloud = "privateCloud974897778"; + + PrivateCloud actualResponse = client.resetNsxCredentialsAsync(privateCloud).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVmwareEngine.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ResetNsxCredentialsRequest actualRequest = ((ResetNsxCredentialsRequest) actualRequests.get(0)); + + Assert.assertEquals(privateCloud, actualRequest.getPrivateCloud()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void resetNsxCredentialsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVmwareEngine.addException(exception); + + try { + String privateCloud = "privateCloud974897778"; + client.resetNsxCredentialsAsync(privateCloud).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void resetVcenterCredentialsTest() throws Exception { + PrivateCloud expectedResponse = + PrivateCloud.newBuilder() + .setName(PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) + .setNetworkConfig(NetworkConfig.newBuilder().build()) + .setManagementCluster(PrivateCloud.ManagementCluster.newBuilder().build()) + .setDescription("description-1724546052") + .setHcx(Hcx.newBuilder().build()) + .setNsx(Nsx.newBuilder().build()) + .setVcenter(Vcenter.newBuilder().build()) + .setUid("uid115792") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("resetVcenterCredentialsTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockVmwareEngine.addResponse(resultOperation); + + PrivateCloudName privateCloud = + PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); + + PrivateCloud actualResponse = client.resetVcenterCredentialsAsync(privateCloud).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVmwareEngine.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ResetVcenterCredentialsRequest actualRequest = + ((ResetVcenterCredentialsRequest) actualRequests.get(0)); + + Assert.assertEquals(privateCloud.toString(), actualRequest.getPrivateCloud()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void resetVcenterCredentialsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVmwareEngine.addException(exception); + + try { + PrivateCloudName privateCloud = + PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); + client.resetVcenterCredentialsAsync(privateCloud).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void resetVcenterCredentialsTest2() throws Exception { + PrivateCloud expectedResponse = + PrivateCloud.newBuilder() + .setName(PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) + .setNetworkConfig(NetworkConfig.newBuilder().build()) + .setManagementCluster(PrivateCloud.ManagementCluster.newBuilder().build()) + .setDescription("description-1724546052") + .setHcx(Hcx.newBuilder().build()) + .setNsx(Nsx.newBuilder().build()) + .setVcenter(Vcenter.newBuilder().build()) + .setUid("uid115792") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("resetVcenterCredentialsTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockVmwareEngine.addResponse(resultOperation); + + String privateCloud = "privateCloud974897778"; + + PrivateCloud actualResponse = client.resetVcenterCredentialsAsync(privateCloud).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVmwareEngine.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ResetVcenterCredentialsRequest actualRequest = + ((ResetVcenterCredentialsRequest) actualRequests.get(0)); + + Assert.assertEquals(privateCloud, actualRequest.getPrivateCloud()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void resetVcenterCredentialsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVmwareEngine.addException(exception); + + try { + String privateCloud = "privateCloud974897778"; + client.resetVcenterCredentialsAsync(privateCloud).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void createHcxActivationKeyTest() throws Exception { + HcxActivationKey expectedResponse = + HcxActivationKey.newBuilder() + .setName( + HcxActivationKeyName.of( + "[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[HCX_ACTIVATION_KEY]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setActivationKey("activationKey1757742441") + .setUid("uid115792") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createHcxActivationKeyTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockVmwareEngine.addResponse(resultOperation); + + PrivateCloudName parent = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); + HcxActivationKey hcxActivationKey = HcxActivationKey.newBuilder().build(); + String hcxActivationKeyId = "hcxActivationKeyId-645871673"; + + HcxActivationKey actualResponse = + client.createHcxActivationKeyAsync(parent, hcxActivationKey, hcxActivationKeyId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVmwareEngine.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateHcxActivationKeyRequest actualRequest = + ((CreateHcxActivationKeyRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(hcxActivationKey, actualRequest.getHcxActivationKey()); + Assert.assertEquals(hcxActivationKeyId, actualRequest.getHcxActivationKeyId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createHcxActivationKeyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVmwareEngine.addException(exception); + + try { + PrivateCloudName parent = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); + HcxActivationKey hcxActivationKey = HcxActivationKey.newBuilder().build(); + String hcxActivationKeyId = "hcxActivationKeyId-645871673"; + client.createHcxActivationKeyAsync(parent, hcxActivationKey, hcxActivationKeyId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void createHcxActivationKeyTest2() throws Exception { + HcxActivationKey expectedResponse = + HcxActivationKey.newBuilder() + .setName( + HcxActivationKeyName.of( + "[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[HCX_ACTIVATION_KEY]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setActivationKey("activationKey1757742441") + .setUid("uid115792") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createHcxActivationKeyTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockVmwareEngine.addResponse(resultOperation); + + String parent = "parent-995424086"; + HcxActivationKey hcxActivationKey = HcxActivationKey.newBuilder().build(); + String hcxActivationKeyId = "hcxActivationKeyId-645871673"; + + HcxActivationKey actualResponse = + client.createHcxActivationKeyAsync(parent, hcxActivationKey, hcxActivationKeyId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVmwareEngine.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateHcxActivationKeyRequest actualRequest = + ((CreateHcxActivationKeyRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(hcxActivationKey, actualRequest.getHcxActivationKey()); + Assert.assertEquals(hcxActivationKeyId, actualRequest.getHcxActivationKeyId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createHcxActivationKeyExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVmwareEngine.addException(exception); + + try { + String parent = "parent-995424086"; + HcxActivationKey hcxActivationKey = HcxActivationKey.newBuilder().build(); + String hcxActivationKeyId = "hcxActivationKeyId-645871673"; + client.createHcxActivationKeyAsync(parent, hcxActivationKey, hcxActivationKeyId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void listHcxActivationKeysTest() throws Exception { + HcxActivationKey responsesElement = HcxActivationKey.newBuilder().build(); + ListHcxActivationKeysResponse expectedResponse = + ListHcxActivationKeysResponse.newBuilder() + .setNextPageToken("") + .addAllHcxActivationKeys(Arrays.asList(responsesElement)) + .build(); + mockVmwareEngine.addResponse(expectedResponse); + + PrivateCloudName parent = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); + + ListHcxActivationKeysPagedResponse pagedListResponse = client.listHcxActivationKeys(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getHcxActivationKeysList().get(0), resources.get(0)); + + List actualRequests = mockVmwareEngine.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListHcxActivationKeysRequest actualRequest = + ((ListHcxActivationKeysRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listHcxActivationKeysExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVmwareEngine.addException(exception); + + try { + PrivateCloudName parent = PrivateCloudName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"); + client.listHcxActivationKeys(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listHcxActivationKeysTest2() throws Exception { + HcxActivationKey responsesElement = HcxActivationKey.newBuilder().build(); + ListHcxActivationKeysResponse expectedResponse = + ListHcxActivationKeysResponse.newBuilder() + .setNextPageToken("") + .addAllHcxActivationKeys(Arrays.asList(responsesElement)) + .build(); + mockVmwareEngine.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListHcxActivationKeysPagedResponse pagedListResponse = client.listHcxActivationKeys(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getHcxActivationKeysList().get(0), resources.get(0)); + + List actualRequests = mockVmwareEngine.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListHcxActivationKeysRequest actualRequest = + ((ListHcxActivationKeysRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listHcxActivationKeysExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVmwareEngine.addException(exception); + + try { + String parent = "parent-995424086"; + client.listHcxActivationKeys(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getHcxActivationKeyTest() throws Exception { + HcxActivationKey expectedResponse = + HcxActivationKey.newBuilder() + .setName( + HcxActivationKeyName.of( + "[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[HCX_ACTIVATION_KEY]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setActivationKey("activationKey1757742441") + .setUid("uid115792") + .build(); + mockVmwareEngine.addResponse(expectedResponse); + + HcxActivationKeyName name = + HcxActivationKeyName.of( + "[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[HCX_ACTIVATION_KEY]"); + + HcxActivationKey actualResponse = client.getHcxActivationKey(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVmwareEngine.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetHcxActivationKeyRequest actualRequest = ((GetHcxActivationKeyRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getHcxActivationKeyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVmwareEngine.addException(exception); + + try { + HcxActivationKeyName name = + HcxActivationKeyName.of( + "[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[HCX_ACTIVATION_KEY]"); + client.getHcxActivationKey(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getHcxActivationKeyTest2() throws Exception { + HcxActivationKey expectedResponse = + HcxActivationKey.newBuilder() + .setName( + HcxActivationKeyName.of( + "[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[HCX_ACTIVATION_KEY]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setActivationKey("activationKey1757742441") + .setUid("uid115792") + .build(); + mockVmwareEngine.addResponse(expectedResponse); + + String name = "name3373707"; + + HcxActivationKey actualResponse = client.getHcxActivationKey(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVmwareEngine.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetHcxActivationKeyRequest actualRequest = ((GetHcxActivationKeyRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getHcxActivationKeyExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVmwareEngine.addException(exception); + + try { + String name = "name3373707"; + client.getHcxActivationKey(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getNetworkPolicyTest() throws Exception { + NetworkPolicy expectedResponse = + NetworkPolicy.newBuilder() + .setName(NetworkPolicyName.of("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setInternetAccess(NetworkPolicy.NetworkService.newBuilder().build()) + .setExternalIp(NetworkPolicy.NetworkService.newBuilder().build()) + .setEdgeServicesCidr("edgeServicesCidr846515023") + .setUid("uid115792") + .setVmwareEngineNetwork( + VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]") + .toString()) + .setDescription("description-1724546052") + .setVmwareEngineNetworkCanonical( + VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]") + .toString()) + .build(); + mockVmwareEngine.addResponse(expectedResponse); + + NetworkPolicyName name = NetworkPolicyName.of("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]"); + + NetworkPolicy actualResponse = client.getNetworkPolicy(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVmwareEngine.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetNetworkPolicyRequest actualRequest = ((GetNetworkPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getNetworkPolicyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVmwareEngine.addException(exception); + + try { + NetworkPolicyName name = NetworkPolicyName.of("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]"); + client.getNetworkPolicy(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getNetworkPolicyTest2() throws Exception { + NetworkPolicy expectedResponse = + NetworkPolicy.newBuilder() + .setName(NetworkPolicyName.of("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setInternetAccess(NetworkPolicy.NetworkService.newBuilder().build()) + .setExternalIp(NetworkPolicy.NetworkService.newBuilder().build()) + .setEdgeServicesCidr("edgeServicesCidr846515023") + .setUid("uid115792") + .setVmwareEngineNetwork( + VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]") + .toString()) + .setDescription("description-1724546052") + .setVmwareEngineNetworkCanonical( + VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]") + .toString()) + .build(); + mockVmwareEngine.addResponse(expectedResponse); + + String name = "name3373707"; + + NetworkPolicy actualResponse = client.getNetworkPolicy(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVmwareEngine.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetNetworkPolicyRequest actualRequest = ((GetNetworkPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getNetworkPolicyExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVmwareEngine.addException(exception); + + try { + String name = "name3373707"; + client.getNetworkPolicy(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listNetworkPoliciesTest() throws Exception { + NetworkPolicy responsesElement = NetworkPolicy.newBuilder().build(); + ListNetworkPoliciesResponse expectedResponse = + ListNetworkPoliciesResponse.newBuilder() + .setNextPageToken("") + .addAllNetworkPolicies(Arrays.asList(responsesElement)) + .build(); + mockVmwareEngine.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListNetworkPoliciesPagedResponse pagedListResponse = client.listNetworkPolicies(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getNetworkPoliciesList().get(0), resources.get(0)); + + List actualRequests = mockVmwareEngine.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListNetworkPoliciesRequest actualRequest = ((ListNetworkPoliciesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listNetworkPoliciesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVmwareEngine.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listNetworkPolicies(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listNetworkPoliciesTest2() throws Exception { + NetworkPolicy responsesElement = NetworkPolicy.newBuilder().build(); + ListNetworkPoliciesResponse expectedResponse = + ListNetworkPoliciesResponse.newBuilder() + .setNextPageToken("") + .addAllNetworkPolicies(Arrays.asList(responsesElement)) + .build(); + mockVmwareEngine.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListNetworkPoliciesPagedResponse pagedListResponse = client.listNetworkPolicies(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getNetworkPoliciesList().get(0), resources.get(0)); + + List actualRequests = mockVmwareEngine.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListNetworkPoliciesRequest actualRequest = ((ListNetworkPoliciesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listNetworkPoliciesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVmwareEngine.addException(exception); + + try { + String parent = "parent-995424086"; + client.listNetworkPolicies(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createNetworkPolicyTest() throws Exception { + NetworkPolicy expectedResponse = + NetworkPolicy.newBuilder() + .setName(NetworkPolicyName.of("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setInternetAccess(NetworkPolicy.NetworkService.newBuilder().build()) + .setExternalIp(NetworkPolicy.NetworkService.newBuilder().build()) + .setEdgeServicesCidr("edgeServicesCidr846515023") + .setUid("uid115792") + .setVmwareEngineNetwork( + VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]") + .toString()) + .setDescription("description-1724546052") + .setVmwareEngineNetworkCanonical( + VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]") + .toString()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createNetworkPolicyTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockVmwareEngine.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + NetworkPolicy networkPolicy = NetworkPolicy.newBuilder().build(); + String networkPolicyId = "networkPolicyId-727262661"; + + NetworkPolicy actualResponse = + client.createNetworkPolicyAsync(parent, networkPolicy, networkPolicyId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVmwareEngine.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateNetworkPolicyRequest actualRequest = ((CreateNetworkPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(networkPolicy, actualRequest.getNetworkPolicy()); + Assert.assertEquals(networkPolicyId, actualRequest.getNetworkPolicyId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createNetworkPolicyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVmwareEngine.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + NetworkPolicy networkPolicy = NetworkPolicy.newBuilder().build(); + String networkPolicyId = "networkPolicyId-727262661"; + client.createNetworkPolicyAsync(parent, networkPolicy, networkPolicyId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void createNetworkPolicyTest2() throws Exception { + NetworkPolicy expectedResponse = + NetworkPolicy.newBuilder() + .setName(NetworkPolicyName.of("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setInternetAccess(NetworkPolicy.NetworkService.newBuilder().build()) + .setExternalIp(NetworkPolicy.NetworkService.newBuilder().build()) + .setEdgeServicesCidr("edgeServicesCidr846515023") + .setUid("uid115792") + .setVmwareEngineNetwork( + VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]") + .toString()) + .setDescription("description-1724546052") + .setVmwareEngineNetworkCanonical( + VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]") + .toString()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createNetworkPolicyTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockVmwareEngine.addResponse(resultOperation); + + String parent = "parent-995424086"; + NetworkPolicy networkPolicy = NetworkPolicy.newBuilder().build(); + String networkPolicyId = "networkPolicyId-727262661"; + + NetworkPolicy actualResponse = + client.createNetworkPolicyAsync(parent, networkPolicy, networkPolicyId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVmwareEngine.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateNetworkPolicyRequest actualRequest = ((CreateNetworkPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(networkPolicy, actualRequest.getNetworkPolicy()); + Assert.assertEquals(networkPolicyId, actualRequest.getNetworkPolicyId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createNetworkPolicyExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVmwareEngine.addException(exception); + + try { + String parent = "parent-995424086"; + NetworkPolicy networkPolicy = NetworkPolicy.newBuilder().build(); + String networkPolicyId = "networkPolicyId-727262661"; + client.createNetworkPolicyAsync(parent, networkPolicy, networkPolicyId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void updateNetworkPolicyTest() throws Exception { + NetworkPolicy expectedResponse = + NetworkPolicy.newBuilder() + .setName(NetworkPolicyName.of("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setInternetAccess(NetworkPolicy.NetworkService.newBuilder().build()) + .setExternalIp(NetworkPolicy.NetworkService.newBuilder().build()) + .setEdgeServicesCidr("edgeServicesCidr846515023") + .setUid("uid115792") + .setVmwareEngineNetwork( + VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]") + .toString()) + .setDescription("description-1724546052") + .setVmwareEngineNetworkCanonical( + VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]") + .toString()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateNetworkPolicyTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockVmwareEngine.addResponse(resultOperation); + + NetworkPolicy networkPolicy = NetworkPolicy.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + NetworkPolicy actualResponse = client.updateNetworkPolicyAsync(networkPolicy, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVmwareEngine.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateNetworkPolicyRequest actualRequest = ((UpdateNetworkPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(networkPolicy, actualRequest.getNetworkPolicy()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateNetworkPolicyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVmwareEngine.addException(exception); + + try { + NetworkPolicy networkPolicy = NetworkPolicy.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateNetworkPolicyAsync(networkPolicy, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteNetworkPolicyTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteNetworkPolicyTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockVmwareEngine.addResponse(resultOperation); + + NetworkPolicyName name = NetworkPolicyName.of("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]"); + + client.deleteNetworkPolicyAsync(name).get(); + + List actualRequests = mockVmwareEngine.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteNetworkPolicyRequest actualRequest = ((DeleteNetworkPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteNetworkPolicyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVmwareEngine.addException(exception); + + try { + NetworkPolicyName name = NetworkPolicyName.of("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]"); + client.deleteNetworkPolicyAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteNetworkPolicyTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteNetworkPolicyTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockVmwareEngine.addResponse(resultOperation); + + String name = "name3373707"; + + client.deleteNetworkPolicyAsync(name).get(); + + List actualRequests = mockVmwareEngine.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteNetworkPolicyRequest actualRequest = ((DeleteNetworkPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteNetworkPolicyExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVmwareEngine.addException(exception); + + try { + String name = "name3373707"; + client.deleteNetworkPolicyAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void createVmwareEngineNetworkTest() throws Exception { + VmwareEngineNetwork expectedResponse = + VmwareEngineNetwork.newBuilder() + .setName( + VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDescription("description-1724546052") + .addAllVpcNetworks(new ArrayList()) + .setUid("uid115792") + .setEtag("etag3123477") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createVmwareEngineNetworkTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockVmwareEngine.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + VmwareEngineNetwork vmwareEngineNetwork = VmwareEngineNetwork.newBuilder().build(); + String vmwareEngineNetworkId = "vmwareEngineNetworkId532532083"; + + VmwareEngineNetwork actualResponse = + client + .createVmwareEngineNetworkAsync(parent, vmwareEngineNetwork, vmwareEngineNetworkId) + .get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVmwareEngine.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateVmwareEngineNetworkRequest actualRequest = + ((CreateVmwareEngineNetworkRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(vmwareEngineNetwork, actualRequest.getVmwareEngineNetwork()); + Assert.assertEquals(vmwareEngineNetworkId, actualRequest.getVmwareEngineNetworkId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createVmwareEngineNetworkExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVmwareEngine.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + VmwareEngineNetwork vmwareEngineNetwork = VmwareEngineNetwork.newBuilder().build(); + String vmwareEngineNetworkId = "vmwareEngineNetworkId532532083"; + client + .createVmwareEngineNetworkAsync(parent, vmwareEngineNetwork, vmwareEngineNetworkId) + .get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void createVmwareEngineNetworkTest2() throws Exception { + VmwareEngineNetwork expectedResponse = + VmwareEngineNetwork.newBuilder() + .setName( + VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDescription("description-1724546052") + .addAllVpcNetworks(new ArrayList()) + .setUid("uid115792") + .setEtag("etag3123477") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createVmwareEngineNetworkTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockVmwareEngine.addResponse(resultOperation); + + String parent = "parent-995424086"; + VmwareEngineNetwork vmwareEngineNetwork = VmwareEngineNetwork.newBuilder().build(); + String vmwareEngineNetworkId = "vmwareEngineNetworkId532532083"; + + VmwareEngineNetwork actualResponse = + client + .createVmwareEngineNetworkAsync(parent, vmwareEngineNetwork, vmwareEngineNetworkId) + .get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVmwareEngine.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateVmwareEngineNetworkRequest actualRequest = + ((CreateVmwareEngineNetworkRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(vmwareEngineNetwork, actualRequest.getVmwareEngineNetwork()); + Assert.assertEquals(vmwareEngineNetworkId, actualRequest.getVmwareEngineNetworkId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createVmwareEngineNetworkExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVmwareEngine.addException(exception); + + try { + String parent = "parent-995424086"; + VmwareEngineNetwork vmwareEngineNetwork = VmwareEngineNetwork.newBuilder().build(); + String vmwareEngineNetworkId = "vmwareEngineNetworkId532532083"; + client + .createVmwareEngineNetworkAsync(parent, vmwareEngineNetwork, vmwareEngineNetworkId) + .get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void updateVmwareEngineNetworkTest() throws Exception { + VmwareEngineNetwork expectedResponse = + VmwareEngineNetwork.newBuilder() + .setName( + VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDescription("description-1724546052") + .addAllVpcNetworks(new ArrayList()) + .setUid("uid115792") + .setEtag("etag3123477") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateVmwareEngineNetworkTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockVmwareEngine.addResponse(resultOperation); + + VmwareEngineNetwork vmwareEngineNetwork = VmwareEngineNetwork.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + VmwareEngineNetwork actualResponse = + client.updateVmwareEngineNetworkAsync(vmwareEngineNetwork, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVmwareEngine.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateVmwareEngineNetworkRequest actualRequest = + ((UpdateVmwareEngineNetworkRequest) actualRequests.get(0)); + + Assert.assertEquals(vmwareEngineNetwork, actualRequest.getVmwareEngineNetwork()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateVmwareEngineNetworkExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVmwareEngine.addException(exception); + + try { + VmwareEngineNetwork vmwareEngineNetwork = VmwareEngineNetwork.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateVmwareEngineNetworkAsync(vmwareEngineNetwork, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteVmwareEngineNetworkTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteVmwareEngineNetworkTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockVmwareEngine.addResponse(resultOperation); + + VmwareEngineNetworkName name = + VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]"); + + client.deleteVmwareEngineNetworkAsync(name).get(); + + List actualRequests = mockVmwareEngine.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteVmwareEngineNetworkRequest actualRequest = + ((DeleteVmwareEngineNetworkRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteVmwareEngineNetworkExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVmwareEngine.addException(exception); + + try { + VmwareEngineNetworkName name = + VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]"); + client.deleteVmwareEngineNetworkAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteVmwareEngineNetworkTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteVmwareEngineNetworkTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockVmwareEngine.addResponse(resultOperation); + + String name = "name3373707"; + + client.deleteVmwareEngineNetworkAsync(name).get(); + + List actualRequests = mockVmwareEngine.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteVmwareEngineNetworkRequest actualRequest = + ((DeleteVmwareEngineNetworkRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteVmwareEngineNetworkExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVmwareEngine.addException(exception); + + try { + String name = "name3373707"; + client.deleteVmwareEngineNetworkAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void getVmwareEngineNetworkTest() throws Exception { + VmwareEngineNetwork expectedResponse = + VmwareEngineNetwork.newBuilder() + .setName( + VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDescription("description-1724546052") + .addAllVpcNetworks(new ArrayList()) + .setUid("uid115792") + .setEtag("etag3123477") + .build(); + mockVmwareEngine.addResponse(expectedResponse); + + VmwareEngineNetworkName name = + VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]"); + + VmwareEngineNetwork actualResponse = client.getVmwareEngineNetwork(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVmwareEngine.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetVmwareEngineNetworkRequest actualRequest = + ((GetVmwareEngineNetworkRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getVmwareEngineNetworkExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVmwareEngine.addException(exception); + + try { + VmwareEngineNetworkName name = + VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]"); + client.getVmwareEngineNetwork(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getVmwareEngineNetworkTest2() throws Exception { + VmwareEngineNetwork expectedResponse = + VmwareEngineNetwork.newBuilder() + .setName( + VmwareEngineNetworkName.of("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDescription("description-1724546052") + .addAllVpcNetworks(new ArrayList()) + .setUid("uid115792") + .setEtag("etag3123477") + .build(); + mockVmwareEngine.addResponse(expectedResponse); + + String name = "name3373707"; + + VmwareEngineNetwork actualResponse = client.getVmwareEngineNetwork(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVmwareEngine.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetVmwareEngineNetworkRequest actualRequest = + ((GetVmwareEngineNetworkRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getVmwareEngineNetworkExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVmwareEngine.addException(exception); + + try { + String name = "name3373707"; + client.getVmwareEngineNetwork(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listVmwareEngineNetworksTest() throws Exception { + VmwareEngineNetwork responsesElement = VmwareEngineNetwork.newBuilder().build(); + ListVmwareEngineNetworksResponse expectedResponse = + ListVmwareEngineNetworksResponse.newBuilder() + .setNextPageToken("") + .addAllVmwareEngineNetworks(Arrays.asList(responsesElement)) + .build(); + mockVmwareEngine.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListVmwareEngineNetworksPagedResponse pagedListResponse = + client.listVmwareEngineNetworks(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getVmwareEngineNetworksList().get(0), resources.get(0)); + + List actualRequests = mockVmwareEngine.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListVmwareEngineNetworksRequest actualRequest = + ((ListVmwareEngineNetworksRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listVmwareEngineNetworksExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVmwareEngine.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listVmwareEngineNetworks(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listVmwareEngineNetworksTest2() throws Exception { + VmwareEngineNetwork responsesElement = VmwareEngineNetwork.newBuilder().build(); + ListVmwareEngineNetworksResponse expectedResponse = + ListVmwareEngineNetworksResponse.newBuilder() + .setNextPageToken("") + .addAllVmwareEngineNetworks(Arrays.asList(responsesElement)) + .build(); + mockVmwareEngine.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListVmwareEngineNetworksPagedResponse pagedListResponse = + client.listVmwareEngineNetworks(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getVmwareEngineNetworksList().get(0), resources.get(0)); + + List actualRequests = mockVmwareEngine.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListVmwareEngineNetworksRequest actualRequest = + ((ListVmwareEngineNetworksRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listVmwareEngineNetworksExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVmwareEngine.addException(exception); + + try { + String parent = "parent-995424086"; + client.listVmwareEngineNetworks(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listLocationsTest() throws Exception { + Location responsesElement = Location.newBuilder().build(); + ListLocationsResponse expectedResponse = + ListLocationsResponse.newBuilder() + .setNextPageToken("") + .addAllLocations(Arrays.asList(responsesElement)) + .build(); + mockLocations.addResponse(expectedResponse); + + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + + ListLocationsPagedResponse pagedListResponse = client.listLocations(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getLocationsList().get(0), resources.get(0)); + + List actualRequests = mockLocations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListLocationsRequest actualRequest = ((ListLocationsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertEquals(request.getFilter(), actualRequest.getFilter()); + Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize()); + Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listLocationsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLocations.addException(exception); + + try { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + client.listLocations(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getLocationTest() throws Exception { + Location expectedResponse = + Location.newBuilder() + .setName("name3373707") + .setLocationId("locationId1541836720") + .setDisplayName("displayName1714148973") + .putAllLabels(new HashMap()) + .setMetadata(Any.newBuilder().build()) + .build(); + mockLocations.addResponse(expectedResponse); + + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + + Location actualResponse = client.getLocation(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockLocations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetLocationRequest actualRequest = ((GetLocationRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getLocationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLocations.addException(exception); + + try { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + client.getLocation(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void setIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockIAMPolicy.addResponse(expectedResponse); + + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource( + ClusterName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[CLUSTER]") + .toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + + Policy actualResponse = client.setIamPolicy(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockIAMPolicy.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + SetIamPolicyRequest actualRequest = ((SetIamPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getResource(), actualRequest.getResource()); + Assert.assertEquals(request.getPolicy(), actualRequest.getPolicy()); + Assert.assertEquals(request.getUpdateMask(), actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void setIamPolicyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIAMPolicy.addException(exception); + + try { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource( + ClusterName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[CLUSTER]") + .toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + client.setIamPolicy(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockIAMPolicy.addResponse(expectedResponse); + + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource( + ClusterName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[CLUSTER]") + .toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + + Policy actualResponse = client.getIamPolicy(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockIAMPolicy.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetIamPolicyRequest actualRequest = ((GetIamPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getResource(), actualRequest.getResource()); + Assert.assertEquals(request.getOptions(), actualRequest.getOptions()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getIamPolicyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIAMPolicy.addException(exception); + + try { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource( + ClusterName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[CLUSTER]") + .toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + client.getIamPolicy(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void testIamPermissionsTest() throws Exception { + TestIamPermissionsResponse expectedResponse = + TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build(); + mockIAMPolicy.addResponse(expectedResponse); + + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource( + ClusterName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[CLUSTER]") + .toString()) + .addAllPermissions(new ArrayList()) + .build(); + + TestIamPermissionsResponse actualResponse = client.testIamPermissions(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockIAMPolicy.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + TestIamPermissionsRequest actualRequest = ((TestIamPermissionsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getResource(), actualRequest.getResource()); + Assert.assertEquals(request.getPermissionsList(), actualRequest.getPermissionsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void testIamPermissionsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIAMPolicy.addException(exception); + + try { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource( + ClusterName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[CLUSTER]") + .toString()) + .addAllPermissions(new ArrayList()) + .build(); + client.testIamPermissions(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-vmwareengine/grpc-google-cloud-vmwareengine-v1/pom.xml b/java-vmwareengine/grpc-google-cloud-vmwareengine-v1/pom.xml new file mode 100644 index 000000000000..73452217527f --- /dev/null +++ b/java-vmwareengine/grpc-google-cloud-vmwareengine-v1/pom.xml @@ -0,0 +1,45 @@ + + 4.0.0 + com.google.api.grpc + grpc-google-cloud-vmwareengine-v1 + 0.0.1-SNAPSHOT + grpc-google-cloud-vmwareengine-v1 + GRPC library for google-cloud-vmwareengine + + com.google.cloud + google-cloud-vmwareengine-parent + 0.0.1-SNAPSHOT + + + + io.grpc + grpc-api + + + io.grpc + grpc-stub + + + io.grpc + grpc-protobuf + + + com.google.protobuf + protobuf-java + + + com.google.api.grpc + proto-google-common-protos + + + com.google.api.grpc + proto-google-cloud-vmwareengine-v1 + + + com.google.guava + guava + + + \ No newline at end of file diff --git a/java-vmwareengine/grpc-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/VmwareEngineGrpc.java b/java-vmwareengine/grpc-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/VmwareEngineGrpc.java new file mode 100644 index 000000000000..37512dd2f13b --- /dev/null +++ b/java-vmwareengine/grpc-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/VmwareEngineGrpc.java @@ -0,0 +1,4176 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.vmwareengine.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * VMwareEngine manages VMware's private clusters in the Cloud.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/vmwareengine/v1/vmwareengine.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class VmwareEngineGrpc { + + private VmwareEngineGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.vmwareengine.v1.VmwareEngine"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.ListPrivateCloudsRequest, + com.google.cloud.vmwareengine.v1.ListPrivateCloudsResponse> + getListPrivateCloudsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListPrivateClouds", + requestType = com.google.cloud.vmwareengine.v1.ListPrivateCloudsRequest.class, + responseType = com.google.cloud.vmwareengine.v1.ListPrivateCloudsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.ListPrivateCloudsRequest, + com.google.cloud.vmwareengine.v1.ListPrivateCloudsResponse> + getListPrivateCloudsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.ListPrivateCloudsRequest, + com.google.cloud.vmwareengine.v1.ListPrivateCloudsResponse> + getListPrivateCloudsMethod; + if ((getListPrivateCloudsMethod = VmwareEngineGrpc.getListPrivateCloudsMethod) == null) { + synchronized (VmwareEngineGrpc.class) { + if ((getListPrivateCloudsMethod = VmwareEngineGrpc.getListPrivateCloudsMethod) == null) { + VmwareEngineGrpc.getListPrivateCloudsMethod = + getListPrivateCloudsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListPrivateClouds")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.vmwareengine.v1.ListPrivateCloudsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.vmwareengine.v1.ListPrivateCloudsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new VmwareEngineMethodDescriptorSupplier("ListPrivateClouds")) + .build(); + } + } + } + return getListPrivateCloudsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.GetPrivateCloudRequest, + com.google.cloud.vmwareengine.v1.PrivateCloud> + getGetPrivateCloudMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetPrivateCloud", + requestType = com.google.cloud.vmwareengine.v1.GetPrivateCloudRequest.class, + responseType = com.google.cloud.vmwareengine.v1.PrivateCloud.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.GetPrivateCloudRequest, + com.google.cloud.vmwareengine.v1.PrivateCloud> + getGetPrivateCloudMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.GetPrivateCloudRequest, + com.google.cloud.vmwareengine.v1.PrivateCloud> + getGetPrivateCloudMethod; + if ((getGetPrivateCloudMethod = VmwareEngineGrpc.getGetPrivateCloudMethod) == null) { + synchronized (VmwareEngineGrpc.class) { + if ((getGetPrivateCloudMethod = VmwareEngineGrpc.getGetPrivateCloudMethod) == null) { + VmwareEngineGrpc.getGetPrivateCloudMethod = + getGetPrivateCloudMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetPrivateCloud")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.vmwareengine.v1.GetPrivateCloudRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.vmwareengine.v1.PrivateCloud.getDefaultInstance())) + .setSchemaDescriptor( + new VmwareEngineMethodDescriptorSupplier("GetPrivateCloud")) + .build(); + } + } + } + return getGetPrivateCloudMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.CreatePrivateCloudRequest, + com.google.longrunning.Operation> + getCreatePrivateCloudMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreatePrivateCloud", + requestType = com.google.cloud.vmwareengine.v1.CreatePrivateCloudRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.CreatePrivateCloudRequest, + com.google.longrunning.Operation> + getCreatePrivateCloudMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.CreatePrivateCloudRequest, + com.google.longrunning.Operation> + getCreatePrivateCloudMethod; + if ((getCreatePrivateCloudMethod = VmwareEngineGrpc.getCreatePrivateCloudMethod) == null) { + synchronized (VmwareEngineGrpc.class) { + if ((getCreatePrivateCloudMethod = VmwareEngineGrpc.getCreatePrivateCloudMethod) == null) { + VmwareEngineGrpc.getCreatePrivateCloudMethod = + getCreatePrivateCloudMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreatePrivateCloud")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.vmwareengine.v1.CreatePrivateCloudRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new VmwareEngineMethodDescriptorSupplier("CreatePrivateCloud")) + .build(); + } + } + } + return getCreatePrivateCloudMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest, + com.google.longrunning.Operation> + getUpdatePrivateCloudMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdatePrivateCloud", + requestType = com.google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest, + com.google.longrunning.Operation> + getUpdatePrivateCloudMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest, + com.google.longrunning.Operation> + getUpdatePrivateCloudMethod; + if ((getUpdatePrivateCloudMethod = VmwareEngineGrpc.getUpdatePrivateCloudMethod) == null) { + synchronized (VmwareEngineGrpc.class) { + if ((getUpdatePrivateCloudMethod = VmwareEngineGrpc.getUpdatePrivateCloudMethod) == null) { + VmwareEngineGrpc.getUpdatePrivateCloudMethod = + getUpdatePrivateCloudMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdatePrivateCloud")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new VmwareEngineMethodDescriptorSupplier("UpdatePrivateCloud")) + .build(); + } + } + } + return getUpdatePrivateCloudMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.DeletePrivateCloudRequest, + com.google.longrunning.Operation> + getDeletePrivateCloudMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeletePrivateCloud", + requestType = com.google.cloud.vmwareengine.v1.DeletePrivateCloudRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.DeletePrivateCloudRequest, + com.google.longrunning.Operation> + getDeletePrivateCloudMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.DeletePrivateCloudRequest, + com.google.longrunning.Operation> + getDeletePrivateCloudMethod; + if ((getDeletePrivateCloudMethod = VmwareEngineGrpc.getDeletePrivateCloudMethod) == null) { + synchronized (VmwareEngineGrpc.class) { + if ((getDeletePrivateCloudMethod = VmwareEngineGrpc.getDeletePrivateCloudMethod) == null) { + VmwareEngineGrpc.getDeletePrivateCloudMethod = + getDeletePrivateCloudMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeletePrivateCloud")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.vmwareengine.v1.DeletePrivateCloudRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new VmwareEngineMethodDescriptorSupplier("DeletePrivateCloud")) + .build(); + } + } + } + return getDeletePrivateCloudMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest, + com.google.longrunning.Operation> + getUndeletePrivateCloudMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UndeletePrivateCloud", + requestType = com.google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest, + com.google.longrunning.Operation> + getUndeletePrivateCloudMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest, + com.google.longrunning.Operation> + getUndeletePrivateCloudMethod; + if ((getUndeletePrivateCloudMethod = VmwareEngineGrpc.getUndeletePrivateCloudMethod) == null) { + synchronized (VmwareEngineGrpc.class) { + if ((getUndeletePrivateCloudMethod = VmwareEngineGrpc.getUndeletePrivateCloudMethod) + == null) { + VmwareEngineGrpc.getUndeletePrivateCloudMethod = + getUndeletePrivateCloudMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UndeletePrivateCloud")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new VmwareEngineMethodDescriptorSupplier("UndeletePrivateCloud")) + .build(); + } + } + } + return getUndeletePrivateCloudMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.ListClustersRequest, + com.google.cloud.vmwareengine.v1.ListClustersResponse> + getListClustersMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListClusters", + requestType = com.google.cloud.vmwareengine.v1.ListClustersRequest.class, + responseType = com.google.cloud.vmwareengine.v1.ListClustersResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.ListClustersRequest, + com.google.cloud.vmwareengine.v1.ListClustersResponse> + getListClustersMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.ListClustersRequest, + com.google.cloud.vmwareengine.v1.ListClustersResponse> + getListClustersMethod; + if ((getListClustersMethod = VmwareEngineGrpc.getListClustersMethod) == null) { + synchronized (VmwareEngineGrpc.class) { + if ((getListClustersMethod = VmwareEngineGrpc.getListClustersMethod) == null) { + VmwareEngineGrpc.getListClustersMethod = + getListClustersMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListClusters")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.vmwareengine.v1.ListClustersRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.vmwareengine.v1.ListClustersResponse + .getDefaultInstance())) + .setSchemaDescriptor(new VmwareEngineMethodDescriptorSupplier("ListClusters")) + .build(); + } + } + } + return getListClustersMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.GetClusterRequest, + com.google.cloud.vmwareengine.v1.Cluster> + getGetClusterMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetCluster", + requestType = com.google.cloud.vmwareengine.v1.GetClusterRequest.class, + responseType = com.google.cloud.vmwareengine.v1.Cluster.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.GetClusterRequest, + com.google.cloud.vmwareengine.v1.Cluster> + getGetClusterMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.GetClusterRequest, + com.google.cloud.vmwareengine.v1.Cluster> + getGetClusterMethod; + if ((getGetClusterMethod = VmwareEngineGrpc.getGetClusterMethod) == null) { + synchronized (VmwareEngineGrpc.class) { + if ((getGetClusterMethod = VmwareEngineGrpc.getGetClusterMethod) == null) { + VmwareEngineGrpc.getGetClusterMethod = + getGetClusterMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetCluster")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.vmwareengine.v1.GetClusterRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.vmwareengine.v1.Cluster.getDefaultInstance())) + .setSchemaDescriptor(new VmwareEngineMethodDescriptorSupplier("GetCluster")) + .build(); + } + } + } + return getGetClusterMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.CreateClusterRequest, com.google.longrunning.Operation> + getCreateClusterMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateCluster", + requestType = com.google.cloud.vmwareengine.v1.CreateClusterRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.CreateClusterRequest, com.google.longrunning.Operation> + getCreateClusterMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.CreateClusterRequest, com.google.longrunning.Operation> + getCreateClusterMethod; + if ((getCreateClusterMethod = VmwareEngineGrpc.getCreateClusterMethod) == null) { + synchronized (VmwareEngineGrpc.class) { + if ((getCreateClusterMethod = VmwareEngineGrpc.getCreateClusterMethod) == null) { + VmwareEngineGrpc.getCreateClusterMethod = + getCreateClusterMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateCluster")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.vmwareengine.v1.CreateClusterRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new VmwareEngineMethodDescriptorSupplier("CreateCluster")) + .build(); + } + } + } + return getCreateClusterMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.UpdateClusterRequest, com.google.longrunning.Operation> + getUpdateClusterMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateCluster", + requestType = com.google.cloud.vmwareengine.v1.UpdateClusterRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.UpdateClusterRequest, com.google.longrunning.Operation> + getUpdateClusterMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.UpdateClusterRequest, com.google.longrunning.Operation> + getUpdateClusterMethod; + if ((getUpdateClusterMethod = VmwareEngineGrpc.getUpdateClusterMethod) == null) { + synchronized (VmwareEngineGrpc.class) { + if ((getUpdateClusterMethod = VmwareEngineGrpc.getUpdateClusterMethod) == null) { + VmwareEngineGrpc.getUpdateClusterMethod = + getUpdateClusterMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateCluster")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.vmwareengine.v1.UpdateClusterRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new VmwareEngineMethodDescriptorSupplier("UpdateCluster")) + .build(); + } + } + } + return getUpdateClusterMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.DeleteClusterRequest, com.google.longrunning.Operation> + getDeleteClusterMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteCluster", + requestType = com.google.cloud.vmwareengine.v1.DeleteClusterRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.DeleteClusterRequest, com.google.longrunning.Operation> + getDeleteClusterMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.DeleteClusterRequest, com.google.longrunning.Operation> + getDeleteClusterMethod; + if ((getDeleteClusterMethod = VmwareEngineGrpc.getDeleteClusterMethod) == null) { + synchronized (VmwareEngineGrpc.class) { + if ((getDeleteClusterMethod = VmwareEngineGrpc.getDeleteClusterMethod) == null) { + VmwareEngineGrpc.getDeleteClusterMethod = + getDeleteClusterMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteCluster")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.vmwareengine.v1.DeleteClusterRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new VmwareEngineMethodDescriptorSupplier("DeleteCluster")) + .build(); + } + } + } + return getDeleteClusterMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.ListSubnetsRequest, + com.google.cloud.vmwareengine.v1.ListSubnetsResponse> + getListSubnetsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListSubnets", + requestType = com.google.cloud.vmwareengine.v1.ListSubnetsRequest.class, + responseType = com.google.cloud.vmwareengine.v1.ListSubnetsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.ListSubnetsRequest, + com.google.cloud.vmwareengine.v1.ListSubnetsResponse> + getListSubnetsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.ListSubnetsRequest, + com.google.cloud.vmwareengine.v1.ListSubnetsResponse> + getListSubnetsMethod; + if ((getListSubnetsMethod = VmwareEngineGrpc.getListSubnetsMethod) == null) { + synchronized (VmwareEngineGrpc.class) { + if ((getListSubnetsMethod = VmwareEngineGrpc.getListSubnetsMethod) == null) { + VmwareEngineGrpc.getListSubnetsMethod = + getListSubnetsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListSubnets")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.vmwareengine.v1.ListSubnetsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.vmwareengine.v1.ListSubnetsResponse + .getDefaultInstance())) + .setSchemaDescriptor(new VmwareEngineMethodDescriptorSupplier("ListSubnets")) + .build(); + } + } + } + return getListSubnetsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.ListNodeTypesRequest, + com.google.cloud.vmwareengine.v1.ListNodeTypesResponse> + getListNodeTypesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListNodeTypes", + requestType = com.google.cloud.vmwareengine.v1.ListNodeTypesRequest.class, + responseType = com.google.cloud.vmwareengine.v1.ListNodeTypesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.ListNodeTypesRequest, + com.google.cloud.vmwareengine.v1.ListNodeTypesResponse> + getListNodeTypesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.ListNodeTypesRequest, + com.google.cloud.vmwareengine.v1.ListNodeTypesResponse> + getListNodeTypesMethod; + if ((getListNodeTypesMethod = VmwareEngineGrpc.getListNodeTypesMethod) == null) { + synchronized (VmwareEngineGrpc.class) { + if ((getListNodeTypesMethod = VmwareEngineGrpc.getListNodeTypesMethod) == null) { + VmwareEngineGrpc.getListNodeTypesMethod = + getListNodeTypesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListNodeTypes")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.vmwareengine.v1.ListNodeTypesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.vmwareengine.v1.ListNodeTypesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new VmwareEngineMethodDescriptorSupplier("ListNodeTypes")) + .build(); + } + } + } + return getListNodeTypesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.GetNodeTypeRequest, + com.google.cloud.vmwareengine.v1.NodeType> + getGetNodeTypeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetNodeType", + requestType = com.google.cloud.vmwareengine.v1.GetNodeTypeRequest.class, + responseType = com.google.cloud.vmwareengine.v1.NodeType.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.GetNodeTypeRequest, + com.google.cloud.vmwareengine.v1.NodeType> + getGetNodeTypeMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.GetNodeTypeRequest, + com.google.cloud.vmwareengine.v1.NodeType> + getGetNodeTypeMethod; + if ((getGetNodeTypeMethod = VmwareEngineGrpc.getGetNodeTypeMethod) == null) { + synchronized (VmwareEngineGrpc.class) { + if ((getGetNodeTypeMethod = VmwareEngineGrpc.getGetNodeTypeMethod) == null) { + VmwareEngineGrpc.getGetNodeTypeMethod = + getGetNodeTypeMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetNodeType")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.vmwareengine.v1.GetNodeTypeRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.vmwareengine.v1.NodeType.getDefaultInstance())) + .setSchemaDescriptor(new VmwareEngineMethodDescriptorSupplier("GetNodeType")) + .build(); + } + } + } + return getGetNodeTypeMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest, + com.google.cloud.vmwareengine.v1.Credentials> + getShowNsxCredentialsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ShowNsxCredentials", + requestType = com.google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest.class, + responseType = com.google.cloud.vmwareengine.v1.Credentials.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest, + com.google.cloud.vmwareengine.v1.Credentials> + getShowNsxCredentialsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest, + com.google.cloud.vmwareengine.v1.Credentials> + getShowNsxCredentialsMethod; + if ((getShowNsxCredentialsMethod = VmwareEngineGrpc.getShowNsxCredentialsMethod) == null) { + synchronized (VmwareEngineGrpc.class) { + if ((getShowNsxCredentialsMethod = VmwareEngineGrpc.getShowNsxCredentialsMethod) == null) { + VmwareEngineGrpc.getShowNsxCredentialsMethod = + getShowNsxCredentialsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ShowNsxCredentials")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.vmwareengine.v1.Credentials.getDefaultInstance())) + .setSchemaDescriptor( + new VmwareEngineMethodDescriptorSupplier("ShowNsxCredentials")) + .build(); + } + } + } + return getShowNsxCredentialsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest, + com.google.cloud.vmwareengine.v1.Credentials> + getShowVcenterCredentialsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ShowVcenterCredentials", + requestType = com.google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest.class, + responseType = com.google.cloud.vmwareengine.v1.Credentials.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest, + com.google.cloud.vmwareengine.v1.Credentials> + getShowVcenterCredentialsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest, + com.google.cloud.vmwareengine.v1.Credentials> + getShowVcenterCredentialsMethod; + if ((getShowVcenterCredentialsMethod = VmwareEngineGrpc.getShowVcenterCredentialsMethod) + == null) { + synchronized (VmwareEngineGrpc.class) { + if ((getShowVcenterCredentialsMethod = VmwareEngineGrpc.getShowVcenterCredentialsMethod) + == null) { + VmwareEngineGrpc.getShowVcenterCredentialsMethod = + getShowVcenterCredentialsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ShowVcenterCredentials")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.vmwareengine.v1.Credentials.getDefaultInstance())) + .setSchemaDescriptor( + new VmwareEngineMethodDescriptorSupplier("ShowVcenterCredentials")) + .build(); + } + } + } + return getShowVcenterCredentialsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest, + com.google.longrunning.Operation> + getResetNsxCredentialsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ResetNsxCredentials", + requestType = com.google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest, + com.google.longrunning.Operation> + getResetNsxCredentialsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest, + com.google.longrunning.Operation> + getResetNsxCredentialsMethod; + if ((getResetNsxCredentialsMethod = VmwareEngineGrpc.getResetNsxCredentialsMethod) == null) { + synchronized (VmwareEngineGrpc.class) { + if ((getResetNsxCredentialsMethod = VmwareEngineGrpc.getResetNsxCredentialsMethod) + == null) { + VmwareEngineGrpc.getResetNsxCredentialsMethod = + getResetNsxCredentialsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ResetNsxCredentials")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new VmwareEngineMethodDescriptorSupplier("ResetNsxCredentials")) + .build(); + } + } + } + return getResetNsxCredentialsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest, + com.google.longrunning.Operation> + getResetVcenterCredentialsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ResetVcenterCredentials", + requestType = com.google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest, + com.google.longrunning.Operation> + getResetVcenterCredentialsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest, + com.google.longrunning.Operation> + getResetVcenterCredentialsMethod; + if ((getResetVcenterCredentialsMethod = VmwareEngineGrpc.getResetVcenterCredentialsMethod) + == null) { + synchronized (VmwareEngineGrpc.class) { + if ((getResetVcenterCredentialsMethod = VmwareEngineGrpc.getResetVcenterCredentialsMethod) + == null) { + VmwareEngineGrpc.getResetVcenterCredentialsMethod = + getResetVcenterCredentialsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ResetVcenterCredentials")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new VmwareEngineMethodDescriptorSupplier("ResetVcenterCredentials")) + .build(); + } + } + } + return getResetVcenterCredentialsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest, + com.google.longrunning.Operation> + getCreateHcxActivationKeyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateHcxActivationKey", + requestType = com.google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest, + com.google.longrunning.Operation> + getCreateHcxActivationKeyMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest, + com.google.longrunning.Operation> + getCreateHcxActivationKeyMethod; + if ((getCreateHcxActivationKeyMethod = VmwareEngineGrpc.getCreateHcxActivationKeyMethod) + == null) { + synchronized (VmwareEngineGrpc.class) { + if ((getCreateHcxActivationKeyMethod = VmwareEngineGrpc.getCreateHcxActivationKeyMethod) + == null) { + VmwareEngineGrpc.getCreateHcxActivationKeyMethod = + getCreateHcxActivationKeyMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateHcxActivationKey")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new VmwareEngineMethodDescriptorSupplier("CreateHcxActivationKey")) + .build(); + } + } + } + return getCreateHcxActivationKeyMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest, + com.google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse> + getListHcxActivationKeysMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListHcxActivationKeys", + requestType = com.google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest.class, + responseType = com.google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest, + com.google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse> + getListHcxActivationKeysMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest, + com.google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse> + getListHcxActivationKeysMethod; + if ((getListHcxActivationKeysMethod = VmwareEngineGrpc.getListHcxActivationKeysMethod) + == null) { + synchronized (VmwareEngineGrpc.class) { + if ((getListHcxActivationKeysMethod = VmwareEngineGrpc.getListHcxActivationKeysMethod) + == null) { + VmwareEngineGrpc.getListHcxActivationKeysMethod = + getListHcxActivationKeysMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListHcxActivationKeys")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new VmwareEngineMethodDescriptorSupplier("ListHcxActivationKeys")) + .build(); + } + } + } + return getListHcxActivationKeysMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest, + com.google.cloud.vmwareengine.v1.HcxActivationKey> + getGetHcxActivationKeyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetHcxActivationKey", + requestType = com.google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest.class, + responseType = com.google.cloud.vmwareengine.v1.HcxActivationKey.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest, + com.google.cloud.vmwareengine.v1.HcxActivationKey> + getGetHcxActivationKeyMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest, + com.google.cloud.vmwareengine.v1.HcxActivationKey> + getGetHcxActivationKeyMethod; + if ((getGetHcxActivationKeyMethod = VmwareEngineGrpc.getGetHcxActivationKeyMethod) == null) { + synchronized (VmwareEngineGrpc.class) { + if ((getGetHcxActivationKeyMethod = VmwareEngineGrpc.getGetHcxActivationKeyMethod) + == null) { + VmwareEngineGrpc.getGetHcxActivationKeyMethod = + getGetHcxActivationKeyMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetHcxActivationKey")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.vmwareengine.v1.HcxActivationKey + .getDefaultInstance())) + .setSchemaDescriptor( + new VmwareEngineMethodDescriptorSupplier("GetHcxActivationKey")) + .build(); + } + } + } + return getGetHcxActivationKeyMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.GetNetworkPolicyRequest, + com.google.cloud.vmwareengine.v1.NetworkPolicy> + getGetNetworkPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetNetworkPolicy", + requestType = com.google.cloud.vmwareengine.v1.GetNetworkPolicyRequest.class, + responseType = com.google.cloud.vmwareengine.v1.NetworkPolicy.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.GetNetworkPolicyRequest, + com.google.cloud.vmwareengine.v1.NetworkPolicy> + getGetNetworkPolicyMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.GetNetworkPolicyRequest, + com.google.cloud.vmwareengine.v1.NetworkPolicy> + getGetNetworkPolicyMethod; + if ((getGetNetworkPolicyMethod = VmwareEngineGrpc.getGetNetworkPolicyMethod) == null) { + synchronized (VmwareEngineGrpc.class) { + if ((getGetNetworkPolicyMethod = VmwareEngineGrpc.getGetNetworkPolicyMethod) == null) { + VmwareEngineGrpc.getGetNetworkPolicyMethod = + getGetNetworkPolicyMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetNetworkPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.vmwareengine.v1.GetNetworkPolicyRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.vmwareengine.v1.NetworkPolicy.getDefaultInstance())) + .setSchemaDescriptor( + new VmwareEngineMethodDescriptorSupplier("GetNetworkPolicy")) + .build(); + } + } + } + return getGetNetworkPolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest, + com.google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse> + getListNetworkPoliciesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListNetworkPolicies", + requestType = com.google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest.class, + responseType = com.google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest, + com.google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse> + getListNetworkPoliciesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest, + com.google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse> + getListNetworkPoliciesMethod; + if ((getListNetworkPoliciesMethod = VmwareEngineGrpc.getListNetworkPoliciesMethod) == null) { + synchronized (VmwareEngineGrpc.class) { + if ((getListNetworkPoliciesMethod = VmwareEngineGrpc.getListNetworkPoliciesMethod) + == null) { + VmwareEngineGrpc.getListNetworkPoliciesMethod = + getListNetworkPoliciesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListNetworkPolicies")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new VmwareEngineMethodDescriptorSupplier("ListNetworkPolicies")) + .build(); + } + } + } + return getListNetworkPoliciesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest, + com.google.longrunning.Operation> + getCreateNetworkPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateNetworkPolicy", + requestType = com.google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest, + com.google.longrunning.Operation> + getCreateNetworkPolicyMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest, + com.google.longrunning.Operation> + getCreateNetworkPolicyMethod; + if ((getCreateNetworkPolicyMethod = VmwareEngineGrpc.getCreateNetworkPolicyMethod) == null) { + synchronized (VmwareEngineGrpc.class) { + if ((getCreateNetworkPolicyMethod = VmwareEngineGrpc.getCreateNetworkPolicyMethod) + == null) { + VmwareEngineGrpc.getCreateNetworkPolicyMethod = + getCreateNetworkPolicyMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateNetworkPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new VmwareEngineMethodDescriptorSupplier("CreateNetworkPolicy")) + .build(); + } + } + } + return getCreateNetworkPolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest, + com.google.longrunning.Operation> + getUpdateNetworkPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateNetworkPolicy", + requestType = com.google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest, + com.google.longrunning.Operation> + getUpdateNetworkPolicyMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest, + com.google.longrunning.Operation> + getUpdateNetworkPolicyMethod; + if ((getUpdateNetworkPolicyMethod = VmwareEngineGrpc.getUpdateNetworkPolicyMethod) == null) { + synchronized (VmwareEngineGrpc.class) { + if ((getUpdateNetworkPolicyMethod = VmwareEngineGrpc.getUpdateNetworkPolicyMethod) + == null) { + VmwareEngineGrpc.getUpdateNetworkPolicyMethod = + getUpdateNetworkPolicyMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateNetworkPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new VmwareEngineMethodDescriptorSupplier("UpdateNetworkPolicy")) + .build(); + } + } + } + return getUpdateNetworkPolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest, + com.google.longrunning.Operation> + getDeleteNetworkPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteNetworkPolicy", + requestType = com.google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest, + com.google.longrunning.Operation> + getDeleteNetworkPolicyMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest, + com.google.longrunning.Operation> + getDeleteNetworkPolicyMethod; + if ((getDeleteNetworkPolicyMethod = VmwareEngineGrpc.getDeleteNetworkPolicyMethod) == null) { + synchronized (VmwareEngineGrpc.class) { + if ((getDeleteNetworkPolicyMethod = VmwareEngineGrpc.getDeleteNetworkPolicyMethod) + == null) { + VmwareEngineGrpc.getDeleteNetworkPolicyMethod = + getDeleteNetworkPolicyMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteNetworkPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new VmwareEngineMethodDescriptorSupplier("DeleteNetworkPolicy")) + .build(); + } + } + } + return getDeleteNetworkPolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest, + com.google.longrunning.Operation> + getCreateVmwareEngineNetworkMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateVmwareEngineNetwork", + requestType = com.google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest, + com.google.longrunning.Operation> + getCreateVmwareEngineNetworkMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest, + com.google.longrunning.Operation> + getCreateVmwareEngineNetworkMethod; + if ((getCreateVmwareEngineNetworkMethod = VmwareEngineGrpc.getCreateVmwareEngineNetworkMethod) + == null) { + synchronized (VmwareEngineGrpc.class) { + if ((getCreateVmwareEngineNetworkMethod = + VmwareEngineGrpc.getCreateVmwareEngineNetworkMethod) + == null) { + VmwareEngineGrpc.getCreateVmwareEngineNetworkMethod = + getCreateVmwareEngineNetworkMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateVmwareEngineNetwork")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new VmwareEngineMethodDescriptorSupplier("CreateVmwareEngineNetwork")) + .build(); + } + } + } + return getCreateVmwareEngineNetworkMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest, + com.google.longrunning.Operation> + getUpdateVmwareEngineNetworkMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateVmwareEngineNetwork", + requestType = com.google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest, + com.google.longrunning.Operation> + getUpdateVmwareEngineNetworkMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest, + com.google.longrunning.Operation> + getUpdateVmwareEngineNetworkMethod; + if ((getUpdateVmwareEngineNetworkMethod = VmwareEngineGrpc.getUpdateVmwareEngineNetworkMethod) + == null) { + synchronized (VmwareEngineGrpc.class) { + if ((getUpdateVmwareEngineNetworkMethod = + VmwareEngineGrpc.getUpdateVmwareEngineNetworkMethod) + == null) { + VmwareEngineGrpc.getUpdateVmwareEngineNetworkMethod = + getUpdateVmwareEngineNetworkMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateVmwareEngineNetwork")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new VmwareEngineMethodDescriptorSupplier("UpdateVmwareEngineNetwork")) + .build(); + } + } + } + return getUpdateVmwareEngineNetworkMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest, + com.google.longrunning.Operation> + getDeleteVmwareEngineNetworkMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteVmwareEngineNetwork", + requestType = com.google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest, + com.google.longrunning.Operation> + getDeleteVmwareEngineNetworkMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest, + com.google.longrunning.Operation> + getDeleteVmwareEngineNetworkMethod; + if ((getDeleteVmwareEngineNetworkMethod = VmwareEngineGrpc.getDeleteVmwareEngineNetworkMethod) + == null) { + synchronized (VmwareEngineGrpc.class) { + if ((getDeleteVmwareEngineNetworkMethod = + VmwareEngineGrpc.getDeleteVmwareEngineNetworkMethod) + == null) { + VmwareEngineGrpc.getDeleteVmwareEngineNetworkMethod = + getDeleteVmwareEngineNetworkMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteVmwareEngineNetwork")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new VmwareEngineMethodDescriptorSupplier("DeleteVmwareEngineNetwork")) + .build(); + } + } + } + return getDeleteVmwareEngineNetworkMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest, + com.google.cloud.vmwareengine.v1.VmwareEngineNetwork> + getGetVmwareEngineNetworkMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetVmwareEngineNetwork", + requestType = com.google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest.class, + responseType = com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest, + com.google.cloud.vmwareengine.v1.VmwareEngineNetwork> + getGetVmwareEngineNetworkMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest, + com.google.cloud.vmwareengine.v1.VmwareEngineNetwork> + getGetVmwareEngineNetworkMethod; + if ((getGetVmwareEngineNetworkMethod = VmwareEngineGrpc.getGetVmwareEngineNetworkMethod) + == null) { + synchronized (VmwareEngineGrpc.class) { + if ((getGetVmwareEngineNetworkMethod = VmwareEngineGrpc.getGetVmwareEngineNetworkMethod) + == null) { + VmwareEngineGrpc.getGetVmwareEngineNetworkMethod = + getGetVmwareEngineNetworkMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetVmwareEngineNetwork")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.vmwareengine.v1.VmwareEngineNetwork + .getDefaultInstance())) + .setSchemaDescriptor( + new VmwareEngineMethodDescriptorSupplier("GetVmwareEngineNetwork")) + .build(); + } + } + } + return getGetVmwareEngineNetworkMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest, + com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse> + getListVmwareEngineNetworksMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListVmwareEngineNetworks", + requestType = com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest.class, + responseType = com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest, + com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse> + getListVmwareEngineNetworksMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest, + com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse> + getListVmwareEngineNetworksMethod; + if ((getListVmwareEngineNetworksMethod = VmwareEngineGrpc.getListVmwareEngineNetworksMethod) + == null) { + synchronized (VmwareEngineGrpc.class) { + if ((getListVmwareEngineNetworksMethod = VmwareEngineGrpc.getListVmwareEngineNetworksMethod) + == null) { + VmwareEngineGrpc.getListVmwareEngineNetworksMethod = + getListVmwareEngineNetworksMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListVmwareEngineNetworks")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new VmwareEngineMethodDescriptorSupplier("ListVmwareEngineNetworks")) + .build(); + } + } + } + return getListVmwareEngineNetworksMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static VmwareEngineStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public VmwareEngineStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new VmwareEngineStub(channel, callOptions); + } + }; + return VmwareEngineStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static VmwareEngineBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public VmwareEngineBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new VmwareEngineBlockingStub(channel, callOptions); + } + }; + return VmwareEngineBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static VmwareEngineFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public VmwareEngineFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new VmwareEngineFutureStub(channel, callOptions); + } + }; + return VmwareEngineFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * VMwareEngine manages VMware's private clusters in the Cloud.
+   * 
+ */ + public abstract static class VmwareEngineImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * Lists `PrivateCloud` resources in a given project and location.
+     * 
+ */ + public void listPrivateClouds( + com.google.cloud.vmwareengine.v1.ListPrivateCloudsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListPrivateCloudsMethod(), responseObserver); + } + + /** + * + * + *
+     * Retrieves a `PrivateCloud` resource by its resource name.
+     * 
+ */ + public void getPrivateCloud( + com.google.cloud.vmwareengine.v1.GetPrivateCloudRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetPrivateCloudMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a new `PrivateCloud` resource in a given project and location.
+     * Private clouds can only be created in zones, regional private clouds are
+     * not supported.
+     * Creating a private cloud also creates a [management
+     * cluster](https://cloud.google.com/vmware-engine/docs/concepts-vmware-components)
+     * for that private cloud.
+     * 
+ */ + public void createPrivateCloud( + com.google.cloud.vmwareengine.v1.CreatePrivateCloudRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreatePrivateCloudMethod(), responseObserver); + } + + /** + * + * + *
+     * Modifies a `PrivateCloud` resource. Only the following fields can be
+     * updated: `description`.
+     * Only fields specified in `updateMask` are applied.
+     * During operation processing, the resource is temporarily in the `ACTIVE`
+     * state before the operation fully completes. For that period of time, you
+     * can't update the resource. Use the operation status to determine when the
+     * processing fully completes.
+     * 
+ */ + public void updatePrivateCloud( + com.google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdatePrivateCloudMethod(), responseObserver); + } + + /** + * + * + *
+     * Schedules a `PrivateCloud` resource for deletion.
+     * A `PrivateCloud` resource scheduled for deletion has `PrivateCloud.state`
+     * set to `DELETED` and `expireTime` set to the time when deletion is final
+     * and can no longer be reversed. The delete operation is marked as done
+     * as soon as the `PrivateCloud` is successfully scheduled for deletion
+     * (this also applies when `delayHours` is set to zero), and the operation is
+     * not kept in pending state until `PrivateCloud` is purged.
+     * `PrivateCloud` can be restored using `UndeletePrivateCloud` method before
+     * the `expireTime` elapses. When `expireTime` is reached, deletion is final
+     * and all private cloud resources are irreversibly removed and billing stops.
+     * During the final removal process, `PrivateCloud.state` is set to `PURGING`.
+     * `PrivateCloud` can be polled using standard `GET` method for the whole
+     * period of deletion and purging. It will not be returned only
+     * when it is completely purged.
+     * 
+ */ + public void deletePrivateCloud( + com.google.cloud.vmwareengine.v1.DeletePrivateCloudRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeletePrivateCloudMethod(), responseObserver); + } + + /** + * + * + *
+     * Restores a private cloud that was previously scheduled for deletion by
+     * `DeletePrivateCloud`. A `PrivateCloud` resource scheduled for deletion has
+     * `PrivateCloud.state` set to `DELETED` and `PrivateCloud.expireTime` set to
+     * the time when deletion can no longer be reversed.
+     * 
+ */ + public void undeletePrivateCloud( + com.google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUndeletePrivateCloudMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists `Cluster` resources in a given private cloud.
+     * 
+ */ + public void listClusters( + com.google.cloud.vmwareengine.v1.ListClustersRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListClustersMethod(), responseObserver); + } + + /** + * + * + *
+     * Retrieves a `Cluster` resource by its resource name.
+     * 
+ */ + public void getCluster( + com.google.cloud.vmwareengine.v1.GetClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetClusterMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a new cluster in a given private cloud.
+     * Creating a new cluster provides additional nodes for
+     * use in the parent private cloud and requires sufficient [node
+     * quota](https://cloud.google.com/vmware-engine/quotas).
+     * 
+ */ + public void createCluster( + com.google.cloud.vmwareengine.v1.CreateClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateClusterMethod(), responseObserver); + } + + /** + * + * + *
+     * Modifies a `Cluster` resource. Only the following fields can be updated:
+     * `node_type_configs.*.node_count`. Only fields specified in `updateMask` are
+     * applied.
+     * During operation processing, the resource is temporarily in the `ACTIVE`
+     * state before the operation fully completes. For that period of time, you
+     * can't update the resource. Use the operation status to determine when the
+     * processing fully completes.
+     * 
+ */ + public void updateCluster( + com.google.cloud.vmwareengine.v1.UpdateClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateClusterMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a `Cluster` resource. To avoid unintended data loss, migrate or
+     * gracefully shut down any workloads running on the cluster before deletion.
+     * You cannot delete the management cluster of a private cloud using this
+     * method.
+     * 
+ */ + public void deleteCluster( + com.google.cloud.vmwareengine.v1.DeleteClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteClusterMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists subnets in a given private cloud.
+     * 
+ */ + public void listSubnets( + com.google.cloud.vmwareengine.v1.ListSubnetsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListSubnetsMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists node types
+     * 
+ */ + public void listNodeTypes( + com.google.cloud.vmwareengine.v1.ListNodeTypesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListNodeTypesMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets details of a single `NodeType`.
+     * 
+ */ + public void getNodeType( + com.google.cloud.vmwareengine.v1.GetNodeTypeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetNodeTypeMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets details of credentials for NSX appliance.
+     * 
+ */ + public void showNsxCredentials( + com.google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getShowNsxCredentialsMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets details of credentials for Vcenter appliance.
+     * 
+ */ + public void showVcenterCredentials( + com.google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getShowVcenterCredentialsMethod(), responseObserver); + } + + /** + * + * + *
+     * Resets credentials of the NSX appliance.
+     * 
+ */ + public void resetNsxCredentials( + com.google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getResetNsxCredentialsMethod(), responseObserver); + } + + /** + * + * + *
+     * Resets credentials of the Vcenter appliance.
+     * 
+ */ + public void resetVcenterCredentials( + com.google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getResetVcenterCredentialsMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a new HCX activation key in a given private cloud.
+     * 
+ */ + public void createHcxActivationKey( + com.google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateHcxActivationKeyMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists `HcxActivationKey` resources in a given private cloud.
+     * 
+ */ + public void listHcxActivationKeys( + com.google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListHcxActivationKeysMethod(), responseObserver); + } + + /** + * + * + *
+     * Retrieves a `HcxActivationKey` resource by its resource name.
+     * 
+ */ + public void getHcxActivationKey( + com.google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetHcxActivationKeyMethod(), responseObserver); + } + + /** + * + * + *
+     * Retrieves a `NetworkPolicy` resource by its resource name.
+     * 
+ */ + public void getNetworkPolicy( + com.google.cloud.vmwareengine.v1.GetNetworkPolicyRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetNetworkPolicyMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists `NetworkPolicy` resources in a specified project and location.
+     * 
+ */ + public void listNetworkPolicies( + com.google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListNetworkPoliciesMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a new network policy in a given VMware Engine network of a
+     * project and location (region). A new network policy cannot be created if
+     * another network policy already exists in the same scope.
+     * 
+ */ + public void createNetworkPolicy( + com.google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateNetworkPolicyMethod(), responseObserver); + } + + /** + * + * + *
+     * Modifies a `NetworkPolicy` resource. Only the following fields can be
+     * updated: `internet_access`, `external_ip`, `edge_services_cidr`.
+     * Only fields specified in `updateMask` are applied. When updating a network
+     * policy, the external IP network service can only be disabled if there are
+     * no external IP addresses present in the scope of the policy. Also, a
+     * `NetworkService` cannot be updated when `NetworkService.state` is set
+     * to `RECONCILING`.
+     * During operation processing, the resource is temporarily in the `ACTIVE`
+     * state before the operation fully completes. For that period of time, you
+     * can't update the resource. Use the operation status to determine when the
+     * processing fully completes.
+     * 
+ */ + public void updateNetworkPolicy( + com.google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateNetworkPolicyMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a `NetworkPolicy` resource. A network policy cannot be deleted
+     * when `NetworkService.state` is set to `RECONCILING` for either its external
+     * IP or internet access service.
+     * 
+ */ + public void deleteNetworkPolicy( + com.google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteNetworkPolicyMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a new VMware Engine network that can be used by a private cloud.
+     * 
+ */ + public void createVmwareEngineNetwork( + com.google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateVmwareEngineNetworkMethod(), responseObserver); + } + + /** + * + * + *
+     * Modifies a VMware Engine network resource. Only the following fields can be
+     * updated: `description`. Only fields specified in `updateMask` are
+     * applied.
+     * 
+ */ + public void updateVmwareEngineNetwork( + com.google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateVmwareEngineNetworkMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a `VmwareEngineNetwork` resource. You can only delete a VMware
+     * Engine network after all resources that refer to it are deleted. For
+     * example, a private cloud, a network peering, and a network policy can all
+     * refer to the same VMware Engine network.
+     * 
+ */ + public void deleteVmwareEngineNetwork( + com.google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteVmwareEngineNetworkMethod(), responseObserver); + } + + /** + * + * + *
+     * Retrieves a `VmwareEngineNetwork` resource by its resource name. The
+     * resource contains details of the VMware Engine network, such as its VMware
+     * Engine network type, peered networks in a service project, and state
+     * (for example, `CREATING`, `ACTIVE`, `DELETING`).
+     * 
+ */ + public void getVmwareEngineNetwork( + com.google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetVmwareEngineNetworkMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists `VmwareEngineNetwork` resources in a given project and location.
+     * 
+ */ + public void listVmwareEngineNetworks( + com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListVmwareEngineNetworksMethod(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListPrivateCloudsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vmwareengine.v1.ListPrivateCloudsRequest, + com.google.cloud.vmwareengine.v1.ListPrivateCloudsResponse>( + this, METHODID_LIST_PRIVATE_CLOUDS))) + .addMethod( + getGetPrivateCloudMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vmwareengine.v1.GetPrivateCloudRequest, + com.google.cloud.vmwareengine.v1.PrivateCloud>( + this, METHODID_GET_PRIVATE_CLOUD))) + .addMethod( + getCreatePrivateCloudMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vmwareengine.v1.CreatePrivateCloudRequest, + com.google.longrunning.Operation>(this, METHODID_CREATE_PRIVATE_CLOUD))) + .addMethod( + getUpdatePrivateCloudMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest, + com.google.longrunning.Operation>(this, METHODID_UPDATE_PRIVATE_CLOUD))) + .addMethod( + getDeletePrivateCloudMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vmwareengine.v1.DeletePrivateCloudRequest, + com.google.longrunning.Operation>(this, METHODID_DELETE_PRIVATE_CLOUD))) + .addMethod( + getUndeletePrivateCloudMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest, + com.google.longrunning.Operation>(this, METHODID_UNDELETE_PRIVATE_CLOUD))) + .addMethod( + getListClustersMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vmwareengine.v1.ListClustersRequest, + com.google.cloud.vmwareengine.v1.ListClustersResponse>( + this, METHODID_LIST_CLUSTERS))) + .addMethod( + getGetClusterMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vmwareengine.v1.GetClusterRequest, + com.google.cloud.vmwareengine.v1.Cluster>(this, METHODID_GET_CLUSTER))) + .addMethod( + getCreateClusterMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vmwareengine.v1.CreateClusterRequest, + com.google.longrunning.Operation>(this, METHODID_CREATE_CLUSTER))) + .addMethod( + getUpdateClusterMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vmwareengine.v1.UpdateClusterRequest, + com.google.longrunning.Operation>(this, METHODID_UPDATE_CLUSTER))) + .addMethod( + getDeleteClusterMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vmwareengine.v1.DeleteClusterRequest, + com.google.longrunning.Operation>(this, METHODID_DELETE_CLUSTER))) + .addMethod( + getListSubnetsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vmwareengine.v1.ListSubnetsRequest, + com.google.cloud.vmwareengine.v1.ListSubnetsResponse>( + this, METHODID_LIST_SUBNETS))) + .addMethod( + getListNodeTypesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vmwareengine.v1.ListNodeTypesRequest, + com.google.cloud.vmwareengine.v1.ListNodeTypesResponse>( + this, METHODID_LIST_NODE_TYPES))) + .addMethod( + getGetNodeTypeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vmwareengine.v1.GetNodeTypeRequest, + com.google.cloud.vmwareengine.v1.NodeType>(this, METHODID_GET_NODE_TYPE))) + .addMethod( + getShowNsxCredentialsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest, + com.google.cloud.vmwareengine.v1.Credentials>( + this, METHODID_SHOW_NSX_CREDENTIALS))) + .addMethod( + getShowVcenterCredentialsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest, + com.google.cloud.vmwareengine.v1.Credentials>( + this, METHODID_SHOW_VCENTER_CREDENTIALS))) + .addMethod( + getResetNsxCredentialsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest, + com.google.longrunning.Operation>(this, METHODID_RESET_NSX_CREDENTIALS))) + .addMethod( + getResetVcenterCredentialsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest, + com.google.longrunning.Operation>(this, METHODID_RESET_VCENTER_CREDENTIALS))) + .addMethod( + getCreateHcxActivationKeyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest, + com.google.longrunning.Operation>(this, METHODID_CREATE_HCX_ACTIVATION_KEY))) + .addMethod( + getListHcxActivationKeysMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest, + com.google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse>( + this, METHODID_LIST_HCX_ACTIVATION_KEYS))) + .addMethod( + getGetHcxActivationKeyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest, + com.google.cloud.vmwareengine.v1.HcxActivationKey>( + this, METHODID_GET_HCX_ACTIVATION_KEY))) + .addMethod( + getGetNetworkPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vmwareengine.v1.GetNetworkPolicyRequest, + com.google.cloud.vmwareengine.v1.NetworkPolicy>( + this, METHODID_GET_NETWORK_POLICY))) + .addMethod( + getListNetworkPoliciesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest, + com.google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse>( + this, METHODID_LIST_NETWORK_POLICIES))) + .addMethod( + getCreateNetworkPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest, + com.google.longrunning.Operation>(this, METHODID_CREATE_NETWORK_POLICY))) + .addMethod( + getUpdateNetworkPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest, + com.google.longrunning.Operation>(this, METHODID_UPDATE_NETWORK_POLICY))) + .addMethod( + getDeleteNetworkPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest, + com.google.longrunning.Operation>(this, METHODID_DELETE_NETWORK_POLICY))) + .addMethod( + getCreateVmwareEngineNetworkMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest, + com.google.longrunning.Operation>( + this, METHODID_CREATE_VMWARE_ENGINE_NETWORK))) + .addMethod( + getUpdateVmwareEngineNetworkMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest, + com.google.longrunning.Operation>( + this, METHODID_UPDATE_VMWARE_ENGINE_NETWORK))) + .addMethod( + getDeleteVmwareEngineNetworkMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest, + com.google.longrunning.Operation>( + this, METHODID_DELETE_VMWARE_ENGINE_NETWORK))) + .addMethod( + getGetVmwareEngineNetworkMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest, + com.google.cloud.vmwareengine.v1.VmwareEngineNetwork>( + this, METHODID_GET_VMWARE_ENGINE_NETWORK))) + .addMethod( + getListVmwareEngineNetworksMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest, + com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse>( + this, METHODID_LIST_VMWARE_ENGINE_NETWORKS))) + .build(); + } + } + + /** + * + * + *
+   * VMwareEngine manages VMware's private clusters in the Cloud.
+   * 
+ */ + public static final class VmwareEngineStub + extends io.grpc.stub.AbstractAsyncStub { + private VmwareEngineStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected VmwareEngineStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new VmwareEngineStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists `PrivateCloud` resources in a given project and location.
+     * 
+ */ + public void listPrivateClouds( + com.google.cloud.vmwareengine.v1.ListPrivateCloudsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListPrivateCloudsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Retrieves a `PrivateCloud` resource by its resource name.
+     * 
+ */ + public void getPrivateCloud( + com.google.cloud.vmwareengine.v1.GetPrivateCloudRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetPrivateCloudMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a new `PrivateCloud` resource in a given project and location.
+     * Private clouds can only be created in zones, regional private clouds are
+     * not supported.
+     * Creating a private cloud also creates a [management
+     * cluster](https://cloud.google.com/vmware-engine/docs/concepts-vmware-components)
+     * for that private cloud.
+     * 
+ */ + public void createPrivateCloud( + com.google.cloud.vmwareengine.v1.CreatePrivateCloudRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreatePrivateCloudMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Modifies a `PrivateCloud` resource. Only the following fields can be
+     * updated: `description`.
+     * Only fields specified in `updateMask` are applied.
+     * During operation processing, the resource is temporarily in the `ACTIVE`
+     * state before the operation fully completes. For that period of time, you
+     * can't update the resource. Use the operation status to determine when the
+     * processing fully completes.
+     * 
+ */ + public void updatePrivateCloud( + com.google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdatePrivateCloudMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Schedules a `PrivateCloud` resource for deletion.
+     * A `PrivateCloud` resource scheduled for deletion has `PrivateCloud.state`
+     * set to `DELETED` and `expireTime` set to the time when deletion is final
+     * and can no longer be reversed. The delete operation is marked as done
+     * as soon as the `PrivateCloud` is successfully scheduled for deletion
+     * (this also applies when `delayHours` is set to zero), and the operation is
+     * not kept in pending state until `PrivateCloud` is purged.
+     * `PrivateCloud` can be restored using `UndeletePrivateCloud` method before
+     * the `expireTime` elapses. When `expireTime` is reached, deletion is final
+     * and all private cloud resources are irreversibly removed and billing stops.
+     * During the final removal process, `PrivateCloud.state` is set to `PURGING`.
+     * `PrivateCloud` can be polled using standard `GET` method for the whole
+     * period of deletion and purging. It will not be returned only
+     * when it is completely purged.
+     * 
+ */ + public void deletePrivateCloud( + com.google.cloud.vmwareengine.v1.DeletePrivateCloudRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeletePrivateCloudMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Restores a private cloud that was previously scheduled for deletion by
+     * `DeletePrivateCloud`. A `PrivateCloud` resource scheduled for deletion has
+     * `PrivateCloud.state` set to `DELETED` and `PrivateCloud.expireTime` set to
+     * the time when deletion can no longer be reversed.
+     * 
+ */ + public void undeletePrivateCloud( + com.google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUndeletePrivateCloudMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists `Cluster` resources in a given private cloud.
+     * 
+ */ + public void listClusters( + com.google.cloud.vmwareengine.v1.ListClustersRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListClustersMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Retrieves a `Cluster` resource by its resource name.
+     * 
+ */ + public void getCluster( + com.google.cloud.vmwareengine.v1.GetClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetClusterMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Creates a new cluster in a given private cloud.
+     * Creating a new cluster provides additional nodes for
+     * use in the parent private cloud and requires sufficient [node
+     * quota](https://cloud.google.com/vmware-engine/quotas).
+     * 
+ */ + public void createCluster( + com.google.cloud.vmwareengine.v1.CreateClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateClusterMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Modifies a `Cluster` resource. Only the following fields can be updated:
+     * `node_type_configs.*.node_count`. Only fields specified in `updateMask` are
+     * applied.
+     * During operation processing, the resource is temporarily in the `ACTIVE`
+     * state before the operation fully completes. For that period of time, you
+     * can't update the resource. Use the operation status to determine when the
+     * processing fully completes.
+     * 
+ */ + public void updateCluster( + com.google.cloud.vmwareengine.v1.UpdateClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateClusterMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a `Cluster` resource. To avoid unintended data loss, migrate or
+     * gracefully shut down any workloads running on the cluster before deletion.
+     * You cannot delete the management cluster of a private cloud using this
+     * method.
+     * 
+ */ + public void deleteCluster( + com.google.cloud.vmwareengine.v1.DeleteClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteClusterMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists subnets in a given private cloud.
+     * 
+ */ + public void listSubnets( + com.google.cloud.vmwareengine.v1.ListSubnetsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListSubnetsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists node types
+     * 
+ */ + public void listNodeTypes( + com.google.cloud.vmwareengine.v1.ListNodeTypesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListNodeTypesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets details of a single `NodeType`.
+     * 
+ */ + public void getNodeType( + com.google.cloud.vmwareengine.v1.GetNodeTypeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetNodeTypeMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets details of credentials for NSX appliance.
+     * 
+ */ + public void showNsxCredentials( + com.google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getShowNsxCredentialsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets details of credentials for Vcenter appliance.
+     * 
+ */ + public void showVcenterCredentials( + com.google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getShowVcenterCredentialsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Resets credentials of the NSX appliance.
+     * 
+ */ + public void resetNsxCredentials( + com.google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getResetNsxCredentialsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Resets credentials of the Vcenter appliance.
+     * 
+ */ + public void resetVcenterCredentials( + com.google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getResetVcenterCredentialsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a new HCX activation key in a given private cloud.
+     * 
+ */ + public void createHcxActivationKey( + com.google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateHcxActivationKeyMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists `HcxActivationKey` resources in a given private cloud.
+     * 
+ */ + public void listHcxActivationKeys( + com.google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListHcxActivationKeysMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Retrieves a `HcxActivationKey` resource by its resource name.
+     * 
+ */ + public void getHcxActivationKey( + com.google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetHcxActivationKeyMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Retrieves a `NetworkPolicy` resource by its resource name.
+     * 
+ */ + public void getNetworkPolicy( + com.google.cloud.vmwareengine.v1.GetNetworkPolicyRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetNetworkPolicyMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists `NetworkPolicy` resources in a specified project and location.
+     * 
+ */ + public void listNetworkPolicies( + com.google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListNetworkPoliciesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a new network policy in a given VMware Engine network of a
+     * project and location (region). A new network policy cannot be created if
+     * another network policy already exists in the same scope.
+     * 
+ */ + public void createNetworkPolicy( + com.google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateNetworkPolicyMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Modifies a `NetworkPolicy` resource. Only the following fields can be
+     * updated: `internet_access`, `external_ip`, `edge_services_cidr`.
+     * Only fields specified in `updateMask` are applied. When updating a network
+     * policy, the external IP network service can only be disabled if there are
+     * no external IP addresses present in the scope of the policy. Also, a
+     * `NetworkService` cannot be updated when `NetworkService.state` is set
+     * to `RECONCILING`.
+     * During operation processing, the resource is temporarily in the `ACTIVE`
+     * state before the operation fully completes. For that period of time, you
+     * can't update the resource. Use the operation status to determine when the
+     * processing fully completes.
+     * 
+ */ + public void updateNetworkPolicy( + com.google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateNetworkPolicyMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a `NetworkPolicy` resource. A network policy cannot be deleted
+     * when `NetworkService.state` is set to `RECONCILING` for either its external
+     * IP or internet access service.
+     * 
+ */ + public void deleteNetworkPolicy( + com.google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteNetworkPolicyMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a new VMware Engine network that can be used by a private cloud.
+     * 
+ */ + public void createVmwareEngineNetwork( + com.google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateVmwareEngineNetworkMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Modifies a VMware Engine network resource. Only the following fields can be
+     * updated: `description`. Only fields specified in `updateMask` are
+     * applied.
+     * 
+ */ + public void updateVmwareEngineNetwork( + com.google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateVmwareEngineNetworkMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a `VmwareEngineNetwork` resource. You can only delete a VMware
+     * Engine network after all resources that refer to it are deleted. For
+     * example, a private cloud, a network peering, and a network policy can all
+     * refer to the same VMware Engine network.
+     * 
+ */ + public void deleteVmwareEngineNetwork( + com.google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteVmwareEngineNetworkMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Retrieves a `VmwareEngineNetwork` resource by its resource name. The
+     * resource contains details of the VMware Engine network, such as its VMware
+     * Engine network type, peered networks in a service project, and state
+     * (for example, `CREATING`, `ACTIVE`, `DELETING`).
+     * 
+ */ + public void getVmwareEngineNetwork( + com.google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetVmwareEngineNetworkMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists `VmwareEngineNetwork` resources in a given project and location.
+     * 
+ */ + public void listVmwareEngineNetworks( + com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListVmwareEngineNetworksMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * + * + *
+   * VMwareEngine manages VMware's private clusters in the Cloud.
+   * 
+ */ + public static final class VmwareEngineBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private VmwareEngineBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected VmwareEngineBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new VmwareEngineBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists `PrivateCloud` resources in a given project and location.
+     * 
+ */ + public com.google.cloud.vmwareengine.v1.ListPrivateCloudsResponse listPrivateClouds( + com.google.cloud.vmwareengine.v1.ListPrivateCloudsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListPrivateCloudsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Retrieves a `PrivateCloud` resource by its resource name.
+     * 
+ */ + public com.google.cloud.vmwareengine.v1.PrivateCloud getPrivateCloud( + com.google.cloud.vmwareengine.v1.GetPrivateCloudRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetPrivateCloudMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a new `PrivateCloud` resource in a given project and location.
+     * Private clouds can only be created in zones, regional private clouds are
+     * not supported.
+     * Creating a private cloud also creates a [management
+     * cluster](https://cloud.google.com/vmware-engine/docs/concepts-vmware-components)
+     * for that private cloud.
+     * 
+ */ + public com.google.longrunning.Operation createPrivateCloud( + com.google.cloud.vmwareengine.v1.CreatePrivateCloudRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreatePrivateCloudMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Modifies a `PrivateCloud` resource. Only the following fields can be
+     * updated: `description`.
+     * Only fields specified in `updateMask` are applied.
+     * During operation processing, the resource is temporarily in the `ACTIVE`
+     * state before the operation fully completes. For that period of time, you
+     * can't update the resource. Use the operation status to determine when the
+     * processing fully completes.
+     * 
+ */ + public com.google.longrunning.Operation updatePrivateCloud( + com.google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdatePrivateCloudMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Schedules a `PrivateCloud` resource for deletion.
+     * A `PrivateCloud` resource scheduled for deletion has `PrivateCloud.state`
+     * set to `DELETED` and `expireTime` set to the time when deletion is final
+     * and can no longer be reversed. The delete operation is marked as done
+     * as soon as the `PrivateCloud` is successfully scheduled for deletion
+     * (this also applies when `delayHours` is set to zero), and the operation is
+     * not kept in pending state until `PrivateCloud` is purged.
+     * `PrivateCloud` can be restored using `UndeletePrivateCloud` method before
+     * the `expireTime` elapses. When `expireTime` is reached, deletion is final
+     * and all private cloud resources are irreversibly removed and billing stops.
+     * During the final removal process, `PrivateCloud.state` is set to `PURGING`.
+     * `PrivateCloud` can be polled using standard `GET` method for the whole
+     * period of deletion and purging. It will not be returned only
+     * when it is completely purged.
+     * 
+ */ + public com.google.longrunning.Operation deletePrivateCloud( + com.google.cloud.vmwareengine.v1.DeletePrivateCloudRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeletePrivateCloudMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Restores a private cloud that was previously scheduled for deletion by
+     * `DeletePrivateCloud`. A `PrivateCloud` resource scheduled for deletion has
+     * `PrivateCloud.state` set to `DELETED` and `PrivateCloud.expireTime` set to
+     * the time when deletion can no longer be reversed.
+     * 
+ */ + public com.google.longrunning.Operation undeletePrivateCloud( + com.google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUndeletePrivateCloudMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists `Cluster` resources in a given private cloud.
+     * 
+ */ + public com.google.cloud.vmwareengine.v1.ListClustersResponse listClusters( + com.google.cloud.vmwareengine.v1.ListClustersRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListClustersMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Retrieves a `Cluster` resource by its resource name.
+     * 
+ */ + public com.google.cloud.vmwareengine.v1.Cluster getCluster( + com.google.cloud.vmwareengine.v1.GetClusterRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetClusterMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a new cluster in a given private cloud.
+     * Creating a new cluster provides additional nodes for
+     * use in the parent private cloud and requires sufficient [node
+     * quota](https://cloud.google.com/vmware-engine/quotas).
+     * 
+ */ + public com.google.longrunning.Operation createCluster( + com.google.cloud.vmwareengine.v1.CreateClusterRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateClusterMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Modifies a `Cluster` resource. Only the following fields can be updated:
+     * `node_type_configs.*.node_count`. Only fields specified in `updateMask` are
+     * applied.
+     * During operation processing, the resource is temporarily in the `ACTIVE`
+     * state before the operation fully completes. For that period of time, you
+     * can't update the resource. Use the operation status to determine when the
+     * processing fully completes.
+     * 
+ */ + public com.google.longrunning.Operation updateCluster( + com.google.cloud.vmwareengine.v1.UpdateClusterRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateClusterMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a `Cluster` resource. To avoid unintended data loss, migrate or
+     * gracefully shut down any workloads running on the cluster before deletion.
+     * You cannot delete the management cluster of a private cloud using this
+     * method.
+     * 
+ */ + public com.google.longrunning.Operation deleteCluster( + com.google.cloud.vmwareengine.v1.DeleteClusterRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteClusterMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists subnets in a given private cloud.
+     * 
+ */ + public com.google.cloud.vmwareengine.v1.ListSubnetsResponse listSubnets( + com.google.cloud.vmwareengine.v1.ListSubnetsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListSubnetsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists node types
+     * 
+ */ + public com.google.cloud.vmwareengine.v1.ListNodeTypesResponse listNodeTypes( + com.google.cloud.vmwareengine.v1.ListNodeTypesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListNodeTypesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets details of a single `NodeType`.
+     * 
+ */ + public com.google.cloud.vmwareengine.v1.NodeType getNodeType( + com.google.cloud.vmwareengine.v1.GetNodeTypeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetNodeTypeMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets details of credentials for NSX appliance.
+     * 
+ */ + public com.google.cloud.vmwareengine.v1.Credentials showNsxCredentials( + com.google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getShowNsxCredentialsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets details of credentials for Vcenter appliance.
+     * 
+ */ + public com.google.cloud.vmwareengine.v1.Credentials showVcenterCredentials( + com.google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getShowVcenterCredentialsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Resets credentials of the NSX appliance.
+     * 
+ */ + public com.google.longrunning.Operation resetNsxCredentials( + com.google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getResetNsxCredentialsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Resets credentials of the Vcenter appliance.
+     * 
+ */ + public com.google.longrunning.Operation resetVcenterCredentials( + com.google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getResetVcenterCredentialsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a new HCX activation key in a given private cloud.
+     * 
+ */ + public com.google.longrunning.Operation createHcxActivationKey( + com.google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateHcxActivationKeyMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists `HcxActivationKey` resources in a given private cloud.
+     * 
+ */ + public com.google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse listHcxActivationKeys( + com.google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListHcxActivationKeysMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Retrieves a `HcxActivationKey` resource by its resource name.
+     * 
+ */ + public com.google.cloud.vmwareengine.v1.HcxActivationKey getHcxActivationKey( + com.google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetHcxActivationKeyMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Retrieves a `NetworkPolicy` resource by its resource name.
+     * 
+ */ + public com.google.cloud.vmwareengine.v1.NetworkPolicy getNetworkPolicy( + com.google.cloud.vmwareengine.v1.GetNetworkPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetNetworkPolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists `NetworkPolicy` resources in a specified project and location.
+     * 
+ */ + public com.google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse listNetworkPolicies( + com.google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListNetworkPoliciesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a new network policy in a given VMware Engine network of a
+     * project and location (region). A new network policy cannot be created if
+     * another network policy already exists in the same scope.
+     * 
+ */ + public com.google.longrunning.Operation createNetworkPolicy( + com.google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateNetworkPolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Modifies a `NetworkPolicy` resource. Only the following fields can be
+     * updated: `internet_access`, `external_ip`, `edge_services_cidr`.
+     * Only fields specified in `updateMask` are applied. When updating a network
+     * policy, the external IP network service can only be disabled if there are
+     * no external IP addresses present in the scope of the policy. Also, a
+     * `NetworkService` cannot be updated when `NetworkService.state` is set
+     * to `RECONCILING`.
+     * During operation processing, the resource is temporarily in the `ACTIVE`
+     * state before the operation fully completes. For that period of time, you
+     * can't update the resource. Use the operation status to determine when the
+     * processing fully completes.
+     * 
+ */ + public com.google.longrunning.Operation updateNetworkPolicy( + com.google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateNetworkPolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a `NetworkPolicy` resource. A network policy cannot be deleted
+     * when `NetworkService.state` is set to `RECONCILING` for either its external
+     * IP or internet access service.
+     * 
+ */ + public com.google.longrunning.Operation deleteNetworkPolicy( + com.google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteNetworkPolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a new VMware Engine network that can be used by a private cloud.
+     * 
+ */ + public com.google.longrunning.Operation createVmwareEngineNetwork( + com.google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateVmwareEngineNetworkMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Modifies a VMware Engine network resource. Only the following fields can be
+     * updated: `description`. Only fields specified in `updateMask` are
+     * applied.
+     * 
+ */ + public com.google.longrunning.Operation updateVmwareEngineNetwork( + com.google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateVmwareEngineNetworkMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a `VmwareEngineNetwork` resource. You can only delete a VMware
+     * Engine network after all resources that refer to it are deleted. For
+     * example, a private cloud, a network peering, and a network policy can all
+     * refer to the same VMware Engine network.
+     * 
+ */ + public com.google.longrunning.Operation deleteVmwareEngineNetwork( + com.google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteVmwareEngineNetworkMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Retrieves a `VmwareEngineNetwork` resource by its resource name. The
+     * resource contains details of the VMware Engine network, such as its VMware
+     * Engine network type, peered networks in a service project, and state
+     * (for example, `CREATING`, `ACTIVE`, `DELETING`).
+     * 
+ */ + public com.google.cloud.vmwareengine.v1.VmwareEngineNetwork getVmwareEngineNetwork( + com.google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetVmwareEngineNetworkMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists `VmwareEngineNetwork` resources in a given project and location.
+     * 
+ */ + public com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse + listVmwareEngineNetworks( + com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListVmwareEngineNetworksMethod(), getCallOptions(), request); + } + } + + /** + * + * + *
+   * VMwareEngine manages VMware's private clusters in the Cloud.
+   * 
+ */ + public static final class VmwareEngineFutureStub + extends io.grpc.stub.AbstractFutureStub { + private VmwareEngineFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected VmwareEngineFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new VmwareEngineFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists `PrivateCloud` resources in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.vmwareengine.v1.ListPrivateCloudsResponse> + listPrivateClouds(com.google.cloud.vmwareengine.v1.ListPrivateCloudsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListPrivateCloudsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Retrieves a `PrivateCloud` resource by its resource name.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.vmwareengine.v1.PrivateCloud> + getPrivateCloud(com.google.cloud.vmwareengine.v1.GetPrivateCloudRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetPrivateCloudMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a new `PrivateCloud` resource in a given project and location.
+     * Private clouds can only be created in zones, regional private clouds are
+     * not supported.
+     * Creating a private cloud also creates a [management
+     * cluster](https://cloud.google.com/vmware-engine/docs/concepts-vmware-components)
+     * for that private cloud.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createPrivateCloud(com.google.cloud.vmwareengine.v1.CreatePrivateCloudRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreatePrivateCloudMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Modifies a `PrivateCloud` resource. Only the following fields can be
+     * updated: `description`.
+     * Only fields specified in `updateMask` are applied.
+     * During operation processing, the resource is temporarily in the `ACTIVE`
+     * state before the operation fully completes. For that period of time, you
+     * can't update the resource. Use the operation status to determine when the
+     * processing fully completes.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updatePrivateCloud(com.google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdatePrivateCloudMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Schedules a `PrivateCloud` resource for deletion.
+     * A `PrivateCloud` resource scheduled for deletion has `PrivateCloud.state`
+     * set to `DELETED` and `expireTime` set to the time when deletion is final
+     * and can no longer be reversed. The delete operation is marked as done
+     * as soon as the `PrivateCloud` is successfully scheduled for deletion
+     * (this also applies when `delayHours` is set to zero), and the operation is
+     * not kept in pending state until `PrivateCloud` is purged.
+     * `PrivateCloud` can be restored using `UndeletePrivateCloud` method before
+     * the `expireTime` elapses. When `expireTime` is reached, deletion is final
+     * and all private cloud resources are irreversibly removed and billing stops.
+     * During the final removal process, `PrivateCloud.state` is set to `PURGING`.
+     * `PrivateCloud` can be polled using standard `GET` method for the whole
+     * period of deletion and purging. It will not be returned only
+     * when it is completely purged.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deletePrivateCloud(com.google.cloud.vmwareengine.v1.DeletePrivateCloudRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeletePrivateCloudMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Restores a private cloud that was previously scheduled for deletion by
+     * `DeletePrivateCloud`. A `PrivateCloud` resource scheduled for deletion has
+     * `PrivateCloud.state` set to `DELETED` and `PrivateCloud.expireTime` set to
+     * the time when deletion can no longer be reversed.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + undeletePrivateCloud(com.google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUndeletePrivateCloudMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists `Cluster` resources in a given private cloud.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.vmwareengine.v1.ListClustersResponse> + listClusters(com.google.cloud.vmwareengine.v1.ListClustersRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListClustersMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Retrieves a `Cluster` resource by its resource name.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.vmwareengine.v1.Cluster> + getCluster(com.google.cloud.vmwareengine.v1.GetClusterRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetClusterMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a new cluster in a given private cloud.
+     * Creating a new cluster provides additional nodes for
+     * use in the parent private cloud and requires sufficient [node
+     * quota](https://cloud.google.com/vmware-engine/quotas).
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createCluster(com.google.cloud.vmwareengine.v1.CreateClusterRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateClusterMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Modifies a `Cluster` resource. Only the following fields can be updated:
+     * `node_type_configs.*.node_count`. Only fields specified in `updateMask` are
+     * applied.
+     * During operation processing, the resource is temporarily in the `ACTIVE`
+     * state before the operation fully completes. For that period of time, you
+     * can't update the resource. Use the operation status to determine when the
+     * processing fully completes.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateCluster(com.google.cloud.vmwareengine.v1.UpdateClusterRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateClusterMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a `Cluster` resource. To avoid unintended data loss, migrate or
+     * gracefully shut down any workloads running on the cluster before deletion.
+     * You cannot delete the management cluster of a private cloud using this
+     * method.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteCluster(com.google.cloud.vmwareengine.v1.DeleteClusterRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteClusterMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists subnets in a given private cloud.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.vmwareengine.v1.ListSubnetsResponse> + listSubnets(com.google.cloud.vmwareengine.v1.ListSubnetsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListSubnetsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists node types
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.vmwareengine.v1.ListNodeTypesResponse> + listNodeTypes(com.google.cloud.vmwareengine.v1.ListNodeTypesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListNodeTypesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets details of a single `NodeType`.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.vmwareengine.v1.NodeType> + getNodeType(com.google.cloud.vmwareengine.v1.GetNodeTypeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetNodeTypeMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets details of credentials for NSX appliance.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.vmwareengine.v1.Credentials> + showNsxCredentials(com.google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getShowNsxCredentialsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets details of credentials for Vcenter appliance.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.vmwareengine.v1.Credentials> + showVcenterCredentials( + com.google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getShowVcenterCredentialsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Resets credentials of the NSX appliance.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + resetNsxCredentials(com.google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getResetNsxCredentialsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Resets credentials of the Vcenter appliance.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + resetVcenterCredentials( + com.google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getResetVcenterCredentialsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a new HCX activation key in a given private cloud.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createHcxActivationKey( + com.google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateHcxActivationKeyMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists `HcxActivationKey` resources in a given private cloud.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse> + listHcxActivationKeys( + com.google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListHcxActivationKeysMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Retrieves a `HcxActivationKey` resource by its resource name.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.vmwareengine.v1.HcxActivationKey> + getHcxActivationKey(com.google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetHcxActivationKeyMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Retrieves a `NetworkPolicy` resource by its resource name.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.vmwareengine.v1.NetworkPolicy> + getNetworkPolicy(com.google.cloud.vmwareengine.v1.GetNetworkPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetNetworkPolicyMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists `NetworkPolicy` resources in a specified project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse> + listNetworkPolicies(com.google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListNetworkPoliciesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a new network policy in a given VMware Engine network of a
+     * project and location (region). A new network policy cannot be created if
+     * another network policy already exists in the same scope.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createNetworkPolicy(com.google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateNetworkPolicyMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Modifies a `NetworkPolicy` resource. Only the following fields can be
+     * updated: `internet_access`, `external_ip`, `edge_services_cidr`.
+     * Only fields specified in `updateMask` are applied. When updating a network
+     * policy, the external IP network service can only be disabled if there are
+     * no external IP addresses present in the scope of the policy. Also, a
+     * `NetworkService` cannot be updated when `NetworkService.state` is set
+     * to `RECONCILING`.
+     * During operation processing, the resource is temporarily in the `ACTIVE`
+     * state before the operation fully completes. For that period of time, you
+     * can't update the resource. Use the operation status to determine when the
+     * processing fully completes.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateNetworkPolicy(com.google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateNetworkPolicyMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a `NetworkPolicy` resource. A network policy cannot be deleted
+     * when `NetworkService.state` is set to `RECONCILING` for either its external
+     * IP or internet access service.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteNetworkPolicy(com.google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteNetworkPolicyMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a new VMware Engine network that can be used by a private cloud.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createVmwareEngineNetwork( + com.google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateVmwareEngineNetworkMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Modifies a VMware Engine network resource. Only the following fields can be
+     * updated: `description`. Only fields specified in `updateMask` are
+     * applied.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateVmwareEngineNetwork( + com.google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateVmwareEngineNetworkMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a `VmwareEngineNetwork` resource. You can only delete a VMware
+     * Engine network after all resources that refer to it are deleted. For
+     * example, a private cloud, a network peering, and a network policy can all
+     * refer to the same VMware Engine network.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteVmwareEngineNetwork( + com.google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteVmwareEngineNetworkMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Retrieves a `VmwareEngineNetwork` resource by its resource name. The
+     * resource contains details of the VMware Engine network, such as its VMware
+     * Engine network type, peered networks in a service project, and state
+     * (for example, `CREATING`, `ACTIVE`, `DELETING`).
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.vmwareengine.v1.VmwareEngineNetwork> + getVmwareEngineNetwork( + com.google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetVmwareEngineNetworkMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists `VmwareEngineNetwork` resources in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse> + listVmwareEngineNetworks( + com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListVmwareEngineNetworksMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_PRIVATE_CLOUDS = 0; + private static final int METHODID_GET_PRIVATE_CLOUD = 1; + private static final int METHODID_CREATE_PRIVATE_CLOUD = 2; + private static final int METHODID_UPDATE_PRIVATE_CLOUD = 3; + private static final int METHODID_DELETE_PRIVATE_CLOUD = 4; + private static final int METHODID_UNDELETE_PRIVATE_CLOUD = 5; + private static final int METHODID_LIST_CLUSTERS = 6; + private static final int METHODID_GET_CLUSTER = 7; + private static final int METHODID_CREATE_CLUSTER = 8; + private static final int METHODID_UPDATE_CLUSTER = 9; + private static final int METHODID_DELETE_CLUSTER = 10; + private static final int METHODID_LIST_SUBNETS = 11; + private static final int METHODID_LIST_NODE_TYPES = 12; + private static final int METHODID_GET_NODE_TYPE = 13; + private static final int METHODID_SHOW_NSX_CREDENTIALS = 14; + private static final int METHODID_SHOW_VCENTER_CREDENTIALS = 15; + private static final int METHODID_RESET_NSX_CREDENTIALS = 16; + private static final int METHODID_RESET_VCENTER_CREDENTIALS = 17; + private static final int METHODID_CREATE_HCX_ACTIVATION_KEY = 18; + private static final int METHODID_LIST_HCX_ACTIVATION_KEYS = 19; + private static final int METHODID_GET_HCX_ACTIVATION_KEY = 20; + private static final int METHODID_GET_NETWORK_POLICY = 21; + private static final int METHODID_LIST_NETWORK_POLICIES = 22; + private static final int METHODID_CREATE_NETWORK_POLICY = 23; + private static final int METHODID_UPDATE_NETWORK_POLICY = 24; + private static final int METHODID_DELETE_NETWORK_POLICY = 25; + private static final int METHODID_CREATE_VMWARE_ENGINE_NETWORK = 26; + private static final int METHODID_UPDATE_VMWARE_ENGINE_NETWORK = 27; + private static final int METHODID_DELETE_VMWARE_ENGINE_NETWORK = 28; + private static final int METHODID_GET_VMWARE_ENGINE_NETWORK = 29; + private static final int METHODID_LIST_VMWARE_ENGINE_NETWORKS = 30; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final VmwareEngineImplBase serviceImpl; + private final int methodId; + + MethodHandlers(VmwareEngineImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_LIST_PRIVATE_CLOUDS: + serviceImpl.listPrivateClouds( + (com.google.cloud.vmwareengine.v1.ListPrivateCloudsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.vmwareengine.v1.ListPrivateCloudsResponse>) + responseObserver); + break; + case METHODID_GET_PRIVATE_CLOUD: + serviceImpl.getPrivateCloud( + (com.google.cloud.vmwareengine.v1.GetPrivateCloudRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_PRIVATE_CLOUD: + serviceImpl.createPrivateCloud( + (com.google.cloud.vmwareengine.v1.CreatePrivateCloudRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_PRIVATE_CLOUD: + serviceImpl.updatePrivateCloud( + (com.google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_PRIVATE_CLOUD: + serviceImpl.deletePrivateCloud( + (com.google.cloud.vmwareengine.v1.DeletePrivateCloudRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UNDELETE_PRIVATE_CLOUD: + serviceImpl.undeletePrivateCloud( + (com.google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_CLUSTERS: + serviceImpl.listClusters( + (com.google.cloud.vmwareengine.v1.ListClustersRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_CLUSTER: + serviceImpl.getCluster( + (com.google.cloud.vmwareengine.v1.GetClusterRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_CLUSTER: + serviceImpl.createCluster( + (com.google.cloud.vmwareengine.v1.CreateClusterRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_CLUSTER: + serviceImpl.updateCluster( + (com.google.cloud.vmwareengine.v1.UpdateClusterRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_CLUSTER: + serviceImpl.deleteCluster( + (com.google.cloud.vmwareengine.v1.DeleteClusterRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_SUBNETS: + serviceImpl.listSubnets( + (com.google.cloud.vmwareengine.v1.ListSubnetsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_NODE_TYPES: + serviceImpl.listNodeTypes( + (com.google.cloud.vmwareengine.v1.ListNodeTypesRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_NODE_TYPE: + serviceImpl.getNodeType( + (com.google.cloud.vmwareengine.v1.GetNodeTypeRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_SHOW_NSX_CREDENTIALS: + serviceImpl.showNsxCredentials( + (com.google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_SHOW_VCENTER_CREDENTIALS: + serviceImpl.showVcenterCredentials( + (com.google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_RESET_NSX_CREDENTIALS: + serviceImpl.resetNsxCredentials( + (com.google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_RESET_VCENTER_CREDENTIALS: + serviceImpl.resetVcenterCredentials( + (com.google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_HCX_ACTIVATION_KEY: + serviceImpl.createHcxActivationKey( + (com.google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_HCX_ACTIVATION_KEYS: + serviceImpl.listHcxActivationKeys( + (com.google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse>) + responseObserver); + break; + case METHODID_GET_HCX_ACTIVATION_KEY: + serviceImpl.getHcxActivationKey( + (com.google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_NETWORK_POLICY: + serviceImpl.getNetworkPolicy( + (com.google.cloud.vmwareengine.v1.GetNetworkPolicyRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_NETWORK_POLICIES: + serviceImpl.listNetworkPolicies( + (com.google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse>) + responseObserver); + break; + case METHODID_CREATE_NETWORK_POLICY: + serviceImpl.createNetworkPolicy( + (com.google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_NETWORK_POLICY: + serviceImpl.updateNetworkPolicy( + (com.google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_NETWORK_POLICY: + serviceImpl.deleteNetworkPolicy( + (com.google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_VMWARE_ENGINE_NETWORK: + serviceImpl.createVmwareEngineNetwork( + (com.google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_VMWARE_ENGINE_NETWORK: + serviceImpl.updateVmwareEngineNetwork( + (com.google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_VMWARE_ENGINE_NETWORK: + serviceImpl.deleteVmwareEngineNetwork( + (com.google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_VMWARE_ENGINE_NETWORK: + serviceImpl.getVmwareEngineNetwork( + (com.google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_VMWARE_ENGINE_NETWORKS: + serviceImpl.listVmwareEngineNetworks( + (com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse>) + responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private abstract static class VmwareEngineBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + VmwareEngineBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("VmwareEngine"); + } + } + + private static final class VmwareEngineFileDescriptorSupplier + extends VmwareEngineBaseDescriptorSupplier { + VmwareEngineFileDescriptorSupplier() {} + } + + private static final class VmwareEngineMethodDescriptorSupplier + extends VmwareEngineBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + VmwareEngineMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (VmwareEngineGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new VmwareEngineFileDescriptorSupplier()) + .addMethod(getListPrivateCloudsMethod()) + .addMethod(getGetPrivateCloudMethod()) + .addMethod(getCreatePrivateCloudMethod()) + .addMethod(getUpdatePrivateCloudMethod()) + .addMethod(getDeletePrivateCloudMethod()) + .addMethod(getUndeletePrivateCloudMethod()) + .addMethod(getListClustersMethod()) + .addMethod(getGetClusterMethod()) + .addMethod(getCreateClusterMethod()) + .addMethod(getUpdateClusterMethod()) + .addMethod(getDeleteClusterMethod()) + .addMethod(getListSubnetsMethod()) + .addMethod(getListNodeTypesMethod()) + .addMethod(getGetNodeTypeMethod()) + .addMethod(getShowNsxCredentialsMethod()) + .addMethod(getShowVcenterCredentialsMethod()) + .addMethod(getResetNsxCredentialsMethod()) + .addMethod(getResetVcenterCredentialsMethod()) + .addMethod(getCreateHcxActivationKeyMethod()) + .addMethod(getListHcxActivationKeysMethod()) + .addMethod(getGetHcxActivationKeyMethod()) + .addMethod(getGetNetworkPolicyMethod()) + .addMethod(getListNetworkPoliciesMethod()) + .addMethod(getCreateNetworkPolicyMethod()) + .addMethod(getUpdateNetworkPolicyMethod()) + .addMethod(getDeleteNetworkPolicyMethod()) + .addMethod(getCreateVmwareEngineNetworkMethod()) + .addMethod(getUpdateVmwareEngineNetworkMethod()) + .addMethod(getDeleteVmwareEngineNetworkMethod()) + .addMethod(getGetVmwareEngineNetworkMethod()) + .addMethod(getListVmwareEngineNetworksMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-vmwareengine/owlbot.py b/java-vmwareengine/owlbot.py new file mode 100644 index 000000000000..03c0f6686d3f --- /dev/null +++ b/java-vmwareengine/owlbot.py @@ -0,0 +1,36 @@ +# Copyright 2021 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +import synthtool as s +from synthtool.languages import java + + +for library in s.get_staging_dirs(): + # put any special-case replacements here + s.move(library) + +s.remove_staging_dirs() +java.common_templates(monorepo=True, excludes=[ + ".github/*", + ".kokoro/*", + "samples/*", + "CODE_OF_CONDUCT.md", + "CONTRIBUTING.md", + "LICENSE", + "SECURITY.md", + "java.header", + "license-checks.xml", + "renovate.json", + ".gitignore" +]) \ No newline at end of file diff --git a/java-vmwareengine/pom.xml b/java-vmwareengine/pom.xml new file mode 100644 index 000000000000..a68f297c14a9 --- /dev/null +++ b/java-vmwareengine/pom.xml @@ -0,0 +1,53 @@ + + + 4.0.0 + com.google.cloud + google-cloud-vmwareengine-parent + pom + 0.0.1-SNAPSHOT + Google Google Cloud VMware Engine Parent + + Java idiomatic client for Google Cloud Platform services. + + + + com.google.cloud + google-cloud-jar-parent + 1.1.0-SNAPSHOT + ../google-cloud-jar-parent/pom.xml + + + + UTF-8 + UTF-8 + github + google-cloud-vmwareengine-parent + + + + + + com.google.cloud + google-cloud-vmwareengine + 0.0.1-SNAPSHOT + + + com.google.api.grpc + grpc-google-cloud-vmwareengine-v1 + 0.0.1-SNAPSHOT + + + com.google.api.grpc + proto-google-cloud-vmwareengine-v1 + 0.0.1-SNAPSHOT + + + + + + google-cloud-vmwareengine + grpc-google-cloud-vmwareengine-v1 + proto-google-cloud-vmwareengine-v1 + google-cloud-vmwareengine-bom + + diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/clirr-ignored-differences.xml b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/clirr-ignored-differences.xml new file mode 100644 index 000000000000..b8df6b88bc7a --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/clirr-ignored-differences.xml @@ -0,0 +1,19 @@ + + + + + 7012 + com/google/cloud/vmwareengine/v1/*OrBuilder + * get*(*) + + + 7012 + com/google/cloud/vmwareengine/v1/*OrBuilder + boolean contains*(*) + + + 7012 + com/google/cloud/vmwareengine/v1/*OrBuilder + boolean has*(*) + + diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/pom.xml b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/pom.xml new file mode 100644 index 000000000000..0394f4864324 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/pom.xml @@ -0,0 +1,37 @@ + + 4.0.0 + com.google.api.grpc + proto-google-cloud-vmwareengine-v1 + 0.0.1-SNAPSHOT + proto-google-cloud-vmwareengine-v1 + Proto library for google-cloud-vmwareengine + + com.google.cloud + google-cloud-vmwareengine-parent + 0.0.1-SNAPSHOT + + + + com.google.protobuf + protobuf-java + + + com.google.api.grpc + proto-google-common-protos + + + com.google.api.grpc + proto-google-iam-v1 + + + com.google.api + api-common + + + com.google.guava + guava + + + diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/Cluster.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/Cluster.java new file mode 100644 index 000000000000..077b6f303775 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/Cluster.java @@ -0,0 +1,2266 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmwareengine/v1/vmwareengine.proto + +package com.google.cloud.vmwareengine.v1; + +/** + * + * + *
+ * A cluster in a private cloud.
+ * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.Cluster} + */ +public final class Cluster extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmwareengine.v1.Cluster) + ClusterOrBuilder { + private static final long serialVersionUID = 0L; + // Use Cluster.newBuilder() to construct. + private Cluster(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Cluster() { + name_ = ""; + state_ = 0; + uid_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Cluster(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_Cluster_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 16: + return internalGetNodeTypeConfigs(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_Cluster_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.Cluster.class, + com.google.cloud.vmwareengine.v1.Cluster.Builder.class); + } + + /** + * + * + *
+   * Enum State defines possible states of private cloud clusters.
+   * 
+ * + * Protobuf enum {@code google.cloud.vmwareengine.v1.Cluster.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * The default value. This value should never be used.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
+     * The Cluster is operational and can be used by the user.
+     * 
+ * + * ACTIVE = 1; + */ + ACTIVE(1), + /** + * + * + *
+     * The Cluster is being deployed.
+     * 
+ * + * CREATING = 2; + */ + CREATING(2), + /** + * + * + *
+     * Adding or removing of a node to the cluster, any other cluster specific
+     * updates.
+     * 
+ * + * UPDATING = 3; + */ + UPDATING(3), + /** + * + * + *
+     * The Cluster is being deleted.
+     * 
+ * + * DELETING = 4; + */ + DELETING(4), + /** + * + * + *
+     * The Cluster is undergoing maintenance, for example: a failed node is
+     * getting replaced.
+     * 
+ * + * REPAIRING = 5; + */ + REPAIRING(5), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * The default value. This value should never be used.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * The Cluster is operational and can be used by the user.
+     * 
+ * + * ACTIVE = 1; + */ + public static final int ACTIVE_VALUE = 1; + /** + * + * + *
+     * The Cluster is being deployed.
+     * 
+ * + * CREATING = 2; + */ + public static final int CREATING_VALUE = 2; + /** + * + * + *
+     * Adding or removing of a node to the cluster, any other cluster specific
+     * updates.
+     * 
+ * + * UPDATING = 3; + */ + public static final int UPDATING_VALUE = 3; + /** + * + * + *
+     * The Cluster is being deleted.
+     * 
+ * + * DELETING = 4; + */ + public static final int DELETING_VALUE = 4; + /** + * + * + *
+     * The Cluster is undergoing maintenance, for example: a failed node is
+     * getting replaced.
+     * 
+ * + * REPAIRING = 5; + */ + public static final int REPAIRING_VALUE = 5; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return ACTIVE; + case 2: + return CREATING; + case 3: + return UPDATING; + case 4: + return DELETING; + case 5: + return REPAIRING; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.Cluster.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.vmwareengine.v1.Cluster.State) + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Output only. The resource name of this cluster.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud/clusters/my-cluster`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The resource name of this cluster.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud/clusters/my-cluster`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
+   * Output only. Creation time of this resource.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return createTime_ != null; + } + /** + * + * + *
+   * Output only. Creation time of this resource.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + /** + * + * + *
+   * Output only. Creation time of this resource.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return getCreateTime(); + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp updateTime_; + /** + * + * + *
+   * Output only. Last update time of this resource.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return updateTime_ != null; + } + /** + * + * + *
+   * Output only. Last update time of this resource.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + /** + * + * + *
+   * Output only. Last update time of this resource.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return getUpdateTime(); + } + + public static final int STATE_FIELD_NUMBER = 6; + private int state_; + /** + * + * + *
+   * Output only. State of the resource.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.Cluster.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
+   * Output only. State of the resource.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.Cluster.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.Cluster.State getState() { + @SuppressWarnings("deprecation") + com.google.cloud.vmwareengine.v1.Cluster.State result = + com.google.cloud.vmwareengine.v1.Cluster.State.valueOf(state_); + return result == null ? com.google.cloud.vmwareengine.v1.Cluster.State.UNRECOGNIZED : result; + } + + public static final int MANAGEMENT_FIELD_NUMBER = 7; + private boolean management_; + /** + * + * + *
+   * Output only. True if the cluster is a management cluster; false otherwise.
+   * There can only be one management cluster in a private cloud
+   * and it has to be the first one.
+   * 
+ * + * bool management = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The management. + */ + @java.lang.Override + public boolean getManagement() { + return management_; + } + + public static final int UID_FIELD_NUMBER = 14; + private volatile java.lang.Object uid_; + /** + * + * + *
+   * Output only. System-generated unique identifier for the resource.
+   * 
+ * + * string uid = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The uid. + */ + @java.lang.Override + public java.lang.String getUid() { + java.lang.Object ref = uid_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uid_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. System-generated unique identifier for the resource.
+   * 
+ * + * string uid = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for uid. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUidBytes() { + java.lang.Object ref = uid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NODE_TYPE_CONFIGS_FIELD_NUMBER = 16; + + private static final class NodeTypeConfigsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.vmwareengine.v1.NodeTypeConfig> + defaultEntry = + com.google.protobuf.MapEntry + . + newDefaultInstance( + com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_Cluster_NodeTypeConfigsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.vmwareengine.v1.NodeTypeConfig.getDefaultInstance()); + } + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.vmwareengine.v1.NodeTypeConfig> + nodeTypeConfigs_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.vmwareengine.v1.NodeTypeConfig> + internalGetNodeTypeConfigs() { + if (nodeTypeConfigs_ == null) { + return com.google.protobuf.MapField.emptyMapField( + NodeTypeConfigsDefaultEntryHolder.defaultEntry); + } + return nodeTypeConfigs_; + } + + public int getNodeTypeConfigsCount() { + return internalGetNodeTypeConfigs().getMap().size(); + } + /** + * + * + *
+   * Required. The map of cluster node types in this cluster, where the key is canonical
+   * identifier of the node type (corresponds to the `NodeType`).
+   * 
+ * + * + * map<string, .google.cloud.vmwareengine.v1.NodeTypeConfig> node_type_configs = 16 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public boolean containsNodeTypeConfigs(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetNodeTypeConfigs().getMap().containsKey(key); + } + /** Use {@link #getNodeTypeConfigsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map + getNodeTypeConfigs() { + return getNodeTypeConfigsMap(); + } + /** + * + * + *
+   * Required. The map of cluster node types in this cluster, where the key is canonical
+   * identifier of the node type (corresponds to the `NodeType`).
+   * 
+ * + * + * map<string, .google.cloud.vmwareengine.v1.NodeTypeConfig> node_type_configs = 16 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.Map + getNodeTypeConfigsMap() { + return internalGetNodeTypeConfigs().getMap(); + } + /** + * + * + *
+   * Required. The map of cluster node types in this cluster, where the key is canonical
+   * identifier of the node type (corresponds to the `NodeType`).
+   * 
+ * + * + * map<string, .google.cloud.vmwareengine.v1.NodeTypeConfig> node_type_configs = 16 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.NodeTypeConfig getNodeTypeConfigsOrDefault( + java.lang.String key, com.google.cloud.vmwareengine.v1.NodeTypeConfig defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetNodeTypeConfigs().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+   * Required. The map of cluster node types in this cluster, where the key is canonical
+   * identifier of the node type (corresponds to the `NodeType`).
+   * 
+ * + * + * map<string, .google.cloud.vmwareengine.v1.NodeTypeConfig> node_type_configs = 16 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.NodeTypeConfig getNodeTypeConfigsOrThrow( + java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetNodeTypeConfigs().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (createTime_ != null) { + output.writeMessage(2, getCreateTime()); + } + if (updateTime_ != null) { + output.writeMessage(3, getUpdateTime()); + } + if (state_ != com.google.cloud.vmwareengine.v1.Cluster.State.STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(6, state_); + } + if (management_ != false) { + output.writeBool(7, management_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 14, uid_); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetNodeTypeConfigs(), NodeTypeConfigsDefaultEntryHolder.defaultEntry, 16); + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (createTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); + } + if (updateTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime()); + } + if (state_ != com.google.cloud.vmwareengine.v1.Cluster.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, state_); + } + if (management_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, management_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, uid_); + } + for (java.util.Map.Entry + entry : internalGetNodeTypeConfigs().getMap().entrySet()) { + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.vmwareengine.v1.NodeTypeConfig> + nodeTypeConfigs__ = + NodeTypeConfigsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, nodeTypeConfigs__); + } + 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.vmwareengine.v1.Cluster)) { + return super.equals(obj); + } + com.google.cloud.vmwareengine.v1.Cluster other = (com.google.cloud.vmwareengine.v1.Cluster) obj; + + if (!getName().equals(other.getName())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (state_ != other.state_) return false; + if (getManagement() != other.getManagement()) return false; + if (!getUid().equals(other.getUid())) return false; + if (!internalGetNodeTypeConfigs().equals(other.internalGetNodeTypeConfigs())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (37 * hash) + MANAGEMENT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getManagement()); + hash = (37 * hash) + UID_FIELD_NUMBER; + hash = (53 * hash) + getUid().hashCode(); + if (!internalGetNodeTypeConfigs().getMap().isEmpty()) { + hash = (37 * hash) + NODE_TYPE_CONFIGS_FIELD_NUMBER; + hash = (53 * hash) + internalGetNodeTypeConfigs().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmwareengine.v1.Cluster parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.Cluster 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.vmwareengine.v1.Cluster parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.Cluster parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.Cluster parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.Cluster parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.Cluster parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.Cluster parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.Cluster parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.Cluster parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.Cluster parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.Cluster parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.vmwareengine.v1.Cluster prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * A cluster in a private cloud.
+   * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.Cluster} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmwareengine.v1.Cluster) + com.google.cloud.vmwareengine.v1.ClusterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_Cluster_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 16: + return internalGetNodeTypeConfigs(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + switch (number) { + case 16: + return internalGetMutableNodeTypeConfigs(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_Cluster_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.Cluster.class, + com.google.cloud.vmwareengine.v1.Cluster.Builder.class); + } + + // Construct using com.google.cloud.vmwareengine.v1.Cluster.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + if (createTimeBuilder_ == null) { + createTime_ = null; + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + if (updateTimeBuilder_ == null) { + updateTime_ = null; + } else { + updateTime_ = null; + updateTimeBuilder_ = null; + } + state_ = 0; + + management_ = false; + + uid_ = ""; + + internalGetMutableNodeTypeConfigs().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_Cluster_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.Cluster getDefaultInstanceForType() { + return com.google.cloud.vmwareengine.v1.Cluster.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.Cluster build() { + com.google.cloud.vmwareengine.v1.Cluster result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.Cluster buildPartial() { + com.google.cloud.vmwareengine.v1.Cluster result = + new com.google.cloud.vmwareengine.v1.Cluster(this); + int from_bitField0_ = bitField0_; + result.name_ = name_; + if (createTimeBuilder_ == null) { + result.createTime_ = createTime_; + } else { + result.createTime_ = createTimeBuilder_.build(); + } + if (updateTimeBuilder_ == null) { + result.updateTime_ = updateTime_; + } else { + result.updateTime_ = updateTimeBuilder_.build(); + } + result.state_ = state_; + result.management_ = management_; + result.uid_ = uid_; + result.nodeTypeConfigs_ = internalGetNodeTypeConfigs(); + result.nodeTypeConfigs_.makeImmutable(); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.vmwareengine.v1.Cluster) { + return mergeFrom((com.google.cloud.vmwareengine.v1.Cluster) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmwareengine.v1.Cluster other) { + if (other == com.google.cloud.vmwareengine.v1.Cluster.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (other.getManagement() != false) { + setManagement(other.getManagement()); + } + if (!other.getUid().isEmpty()) { + uid_ = other.uid_; + onChanged(); + } + internalGetMutableNodeTypeConfigs().mergeFrom(other.internalGetNodeTypeConfigs()); + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + case 26: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 26 + case 48: + { + state_ = input.readEnum(); + + break; + } // case 48 + case 56: + { + management_ = input.readBool(); + + break; + } // case 56 + case 114: + { + uid_ = input.readStringRequireUtf8(); + + break; + } // case 114 + case 130: + { + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.vmwareengine.v1.NodeTypeConfig> + nodeTypeConfigs__ = + input.readMessage( + NodeTypeConfigsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableNodeTypeConfigs() + .getMutableMap() + .put(nodeTypeConfigs__.getKey(), nodeTypeConfigs__.getValue()); + break; + } // case 130 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Output only. The resource name of this cluster.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud/clusters/my-cluster`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The resource name of this cluster.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud/clusters/my-cluster`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The resource name of this cluster.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud/clusters/my-cluster`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The resource name of this cluster.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud/clusters/my-cluster`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The resource name of this cluster.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud/clusters/my-cluster`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + /** + * + * + *
+     * Output only. Creation time of this resource.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return createTimeBuilder_ != null || createTime_ != null; + } + /** + * + * + *
+     * Output only. Creation time of this resource.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Creation time of this resource.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + onChanged(); + } else { + createTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Creation time of this resource.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + onChanged(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. Creation time of this resource.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (createTime_ != null) { + createTime_ = + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + } else { + createTime_ = value; + } + onChanged(); + } else { + createTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Creation time of this resource.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + if (createTimeBuilder_ == null) { + createTime_ = null; + onChanged(); + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. Creation time of this resource.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Creation time of this resource.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + /** + * + * + *
+     * Output only. Creation time of this resource.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + /** + * + * + *
+     * Output only. Last update time of this resource.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return updateTimeBuilder_ != null || updateTime_ != null; + } + /** + * + * + *
+     * Output only. Last update time of this resource.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Last update time of this resource.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + onChanged(); + } else { + updateTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Last update time of this resource.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + onChanged(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. Last update time of this resource.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (updateTime_ != null) { + updateTime_ = + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + } else { + updateTime_ = value; + } + onChanged(); + } else { + updateTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Last update time of this resource.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + if (updateTimeBuilder_ == null) { + updateTime_ = null; + onChanged(); + } else { + updateTime_ = null; + updateTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. Last update time of this resource.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Last update time of this resource.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + /** + * + * + *
+     * Output only. Last update time of this resource.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private int state_ = 0; + /** + * + * + *
+     * Output only. State of the resource.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.Cluster.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
+     * Output only. State of the resource.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.Cluster.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + + state_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. State of the resource.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.Cluster.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.Cluster.State getState() { + @SuppressWarnings("deprecation") + com.google.cloud.vmwareengine.v1.Cluster.State result = + com.google.cloud.vmwareengine.v1.Cluster.State.valueOf(state_); + return result == null ? com.google.cloud.vmwareengine.v1.Cluster.State.UNRECOGNIZED : result; + } + /** + * + * + *
+     * Output only. State of the resource.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.Cluster.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.vmwareengine.v1.Cluster.State value) { + if (value == null) { + throw new NullPointerException(); + } + + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. State of the resource.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.Cluster.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + + state_ = 0; + onChanged(); + return this; + } + + private boolean management_; + /** + * + * + *
+     * Output only. True if the cluster is a management cluster; false otherwise.
+     * There can only be one management cluster in a private cloud
+     * and it has to be the first one.
+     * 
+ * + * bool management = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The management. + */ + @java.lang.Override + public boolean getManagement() { + return management_; + } + /** + * + * + *
+     * Output only. True if the cluster is a management cluster; false otherwise.
+     * There can only be one management cluster in a private cloud
+     * and it has to be the first one.
+     * 
+ * + * bool management = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The management to set. + * @return This builder for chaining. + */ + public Builder setManagement(boolean value) { + + management_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. True if the cluster is a management cluster; false otherwise.
+     * There can only be one management cluster in a private cloud
+     * and it has to be the first one.
+     * 
+ * + * bool management = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearManagement() { + + management_ = false; + onChanged(); + return this; + } + + private java.lang.Object uid_ = ""; + /** + * + * + *
+     * Output only. System-generated unique identifier for the resource.
+     * 
+ * + * string uid = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The uid. + */ + public java.lang.String getUid() { + java.lang.Object ref = uid_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. System-generated unique identifier for the resource.
+     * 
+ * + * string uid = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for uid. + */ + public com.google.protobuf.ByteString getUidBytes() { + java.lang.Object ref = uid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. System-generated unique identifier for the resource.
+     * 
+ * + * string uid = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The uid to set. + * @return This builder for chaining. + */ + public Builder setUid(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + uid_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. System-generated unique identifier for the resource.
+     * 
+ * + * string uid = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearUid() { + + uid_ = getDefaultInstance().getUid(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. System-generated unique identifier for the resource.
+     * 
+ * + * string uid = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for uid to set. + * @return This builder for chaining. + */ + public Builder setUidBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + uid_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.vmwareengine.v1.NodeTypeConfig> + nodeTypeConfigs_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.vmwareengine.v1.NodeTypeConfig> + internalGetNodeTypeConfigs() { + if (nodeTypeConfigs_ == null) { + return com.google.protobuf.MapField.emptyMapField( + NodeTypeConfigsDefaultEntryHolder.defaultEntry); + } + return nodeTypeConfigs_; + } + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.vmwareengine.v1.NodeTypeConfig> + internalGetMutableNodeTypeConfigs() { + onChanged(); + ; + if (nodeTypeConfigs_ == null) { + nodeTypeConfigs_ = + com.google.protobuf.MapField.newMapField( + NodeTypeConfigsDefaultEntryHolder.defaultEntry); + } + if (!nodeTypeConfigs_.isMutable()) { + nodeTypeConfigs_ = nodeTypeConfigs_.copy(); + } + return nodeTypeConfigs_; + } + + public int getNodeTypeConfigsCount() { + return internalGetNodeTypeConfigs().getMap().size(); + } + /** + * + * + *
+     * Required. The map of cluster node types in this cluster, where the key is canonical
+     * identifier of the node type (corresponds to the `NodeType`).
+     * 
+ * + * + * map<string, .google.cloud.vmwareengine.v1.NodeTypeConfig> node_type_configs = 16 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public boolean containsNodeTypeConfigs(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetNodeTypeConfigs().getMap().containsKey(key); + } + /** Use {@link #getNodeTypeConfigsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map + getNodeTypeConfigs() { + return getNodeTypeConfigsMap(); + } + /** + * + * + *
+     * Required. The map of cluster node types in this cluster, where the key is canonical
+     * identifier of the node type (corresponds to the `NodeType`).
+     * 
+ * + * + * map<string, .google.cloud.vmwareengine.v1.NodeTypeConfig> node_type_configs = 16 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.Map + getNodeTypeConfigsMap() { + return internalGetNodeTypeConfigs().getMap(); + } + /** + * + * + *
+     * Required. The map of cluster node types in this cluster, where the key is canonical
+     * identifier of the node type (corresponds to the `NodeType`).
+     * 
+ * + * + * map<string, .google.cloud.vmwareengine.v1.NodeTypeConfig> node_type_configs = 16 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.NodeTypeConfig getNodeTypeConfigsOrDefault( + java.lang.String key, com.google.cloud.vmwareengine.v1.NodeTypeConfig defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetNodeTypeConfigs().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+     * Required. The map of cluster node types in this cluster, where the key is canonical
+     * identifier of the node type (corresponds to the `NodeType`).
+     * 
+ * + * + * map<string, .google.cloud.vmwareengine.v1.NodeTypeConfig> node_type_configs = 16 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.NodeTypeConfig getNodeTypeConfigsOrThrow( + java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetNodeTypeConfigs().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearNodeTypeConfigs() { + internalGetMutableNodeTypeConfigs().getMutableMap().clear(); + return this; + } + /** + * + * + *
+     * Required. The map of cluster node types in this cluster, where the key is canonical
+     * identifier of the node type (corresponds to the `NodeType`).
+     * 
+ * + * + * map<string, .google.cloud.vmwareengine.v1.NodeTypeConfig> node_type_configs = 16 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeNodeTypeConfigs(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableNodeTypeConfigs().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map + getMutableNodeTypeConfigs() { + return internalGetMutableNodeTypeConfigs().getMutableMap(); + } + /** + * + * + *
+     * Required. The map of cluster node types in this cluster, where the key is canonical
+     * identifier of the node type (corresponds to the `NodeType`).
+     * 
+ * + * + * map<string, .google.cloud.vmwareengine.v1.NodeTypeConfig> node_type_configs = 16 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder putNodeTypeConfigs( + java.lang.String key, com.google.cloud.vmwareengine.v1.NodeTypeConfig value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + + internalGetMutableNodeTypeConfigs().getMutableMap().put(key, value); + return this; + } + /** + * + * + *
+     * Required. The map of cluster node types in this cluster, where the key is canonical
+     * identifier of the node type (corresponds to the `NodeType`).
+     * 
+ * + * + * map<string, .google.cloud.vmwareengine.v1.NodeTypeConfig> node_type_configs = 16 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder putAllNodeTypeConfigs( + java.util.Map values) { + internalGetMutableNodeTypeConfigs().getMutableMap().putAll(values); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.vmwareengine.v1.Cluster) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmwareengine.v1.Cluster) + private static final com.google.cloud.vmwareengine.v1.Cluster DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmwareengine.v1.Cluster(); + } + + public static com.google.cloud.vmwareengine.v1.Cluster getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Cluster 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.vmwareengine.v1.Cluster getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ClusterName.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ClusterName.java new file mode 100644 index 000000000000..3b8095538201 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ClusterName.java @@ -0,0 +1,269 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.vmwareengine.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class ClusterName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_PRIVATE_CLOUD_CLUSTER = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/privateClouds/{private_cloud}/clusters/{cluster}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String privateCloud; + private final String cluster; + + @Deprecated + protected ClusterName() { + project = null; + location = null; + privateCloud = null; + cluster = null; + } + + private ClusterName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + privateCloud = Preconditions.checkNotNull(builder.getPrivateCloud()); + cluster = Preconditions.checkNotNull(builder.getCluster()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getPrivateCloud() { + return privateCloud; + } + + public String getCluster() { + return cluster; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static ClusterName of( + String project, String location, String privateCloud, String cluster) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setPrivateCloud(privateCloud) + .setCluster(cluster) + .build(); + } + + public static String format( + String project, String location, String privateCloud, String cluster) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setPrivateCloud(privateCloud) + .setCluster(cluster) + .build() + .toString(); + } + + public static ClusterName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_PRIVATE_CLOUD_CLUSTER.validatedMatch( + formattedString, "ClusterName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("private_cloud"), + matchMap.get("cluster")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (ClusterName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_PRIVATE_CLOUD_CLUSTER.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (privateCloud != null) { + fieldMapBuilder.put("private_cloud", privateCloud); + } + if (cluster != null) { + fieldMapBuilder.put("cluster", cluster); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_PRIVATE_CLOUD_CLUSTER.instantiate( + "project", + project, + "location", + location, + "private_cloud", + privateCloud, + "cluster", + cluster); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null || getClass() == o.getClass()) { + ClusterName that = ((ClusterName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.privateCloud, that.privateCloud) + && Objects.equals(this.cluster, that.cluster); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(privateCloud); + h *= 1000003; + h ^= Objects.hashCode(cluster); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/privateClouds/{private_cloud}/clusters/{cluster}. + */ + public static class Builder { + private String project; + private String location; + private String privateCloud; + private String cluster; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getPrivateCloud() { + return privateCloud; + } + + public String getCluster() { + return cluster; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setPrivateCloud(String privateCloud) { + this.privateCloud = privateCloud; + return this; + } + + public Builder setCluster(String cluster) { + this.cluster = cluster; + return this; + } + + private Builder(ClusterName clusterName) { + this.project = clusterName.project; + this.location = clusterName.location; + this.privateCloud = clusterName.privateCloud; + this.cluster = clusterName.cluster; + } + + public ClusterName build() { + return new ClusterName(this); + } + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ClusterOrBuilder.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ClusterOrBuilder.java new file mode 100644 index 000000000000..f6a0eec0680a --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ClusterOrBuilder.java @@ -0,0 +1,279 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmwareengine/v1/vmwareengine.proto + +package com.google.cloud.vmwareengine.v1; + +public interface ClusterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmwareengine.v1.Cluster) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. The resource name of this cluster.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud/clusters/my-cluster`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Output only. The resource name of this cluster.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud/clusters/my-cluster`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Output only. Creation time of this resource.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + * + * + *
+   * Output only. Creation time of this resource.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + * + * + *
+   * Output only. Creation time of this resource.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. Last update time of this resource.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + /** + * + * + *
+   * Output only. Last update time of this resource.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + /** + * + * + *
+   * Output only. Last update time of this resource.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. State of the resource.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.Cluster.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + /** + * + * + *
+   * Output only. State of the resource.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.Cluster.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.vmwareengine.v1.Cluster.State getState(); + + /** + * + * + *
+   * Output only. True if the cluster is a management cluster; false otherwise.
+   * There can only be one management cluster in a private cloud
+   * and it has to be the first one.
+   * 
+ * + * bool management = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The management. + */ + boolean getManagement(); + + /** + * + * + *
+   * Output only. System-generated unique identifier for the resource.
+   * 
+ * + * string uid = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The uid. + */ + java.lang.String getUid(); + /** + * + * + *
+   * Output only. System-generated unique identifier for the resource.
+   * 
+ * + * string uid = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for uid. + */ + com.google.protobuf.ByteString getUidBytes(); + + /** + * + * + *
+   * Required. The map of cluster node types in this cluster, where the key is canonical
+   * identifier of the node type (corresponds to the `NodeType`).
+   * 
+ * + * + * map<string, .google.cloud.vmwareengine.v1.NodeTypeConfig> node_type_configs = 16 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getNodeTypeConfigsCount(); + /** + * + * + *
+   * Required. The map of cluster node types in this cluster, where the key is canonical
+   * identifier of the node type (corresponds to the `NodeType`).
+   * 
+ * + * + * map<string, .google.cloud.vmwareengine.v1.NodeTypeConfig> node_type_configs = 16 [(.google.api.field_behavior) = REQUIRED]; + * + */ + boolean containsNodeTypeConfigs(java.lang.String key); + /** Use {@link #getNodeTypeConfigsMap()} instead. */ + @java.lang.Deprecated + java.util.Map + getNodeTypeConfigs(); + /** + * + * + *
+   * Required. The map of cluster node types in this cluster, where the key is canonical
+   * identifier of the node type (corresponds to the `NodeType`).
+   * 
+ * + * + * map<string, .google.cloud.vmwareengine.v1.NodeTypeConfig> node_type_configs = 16 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.Map + getNodeTypeConfigsMap(); + /** + * + * + *
+   * Required. The map of cluster node types in this cluster, where the key is canonical
+   * identifier of the node type (corresponds to the `NodeType`).
+   * 
+ * + * + * map<string, .google.cloud.vmwareengine.v1.NodeTypeConfig> node_type_configs = 16 [(.google.api.field_behavior) = REQUIRED]; + * + */ + + /* nullable */ + com.google.cloud.vmwareengine.v1.NodeTypeConfig getNodeTypeConfigsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.vmwareengine.v1.NodeTypeConfig defaultValue); + /** + * + * + *
+   * Required. The map of cluster node types in this cluster, where the key is canonical
+   * identifier of the node type (corresponds to the `NodeType`).
+   * 
+ * + * + * map<string, .google.cloud.vmwareengine.v1.NodeTypeConfig> node_type_configs = 16 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.vmwareengine.v1.NodeTypeConfig getNodeTypeConfigsOrThrow(java.lang.String key); +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/CreateClusterRequest.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/CreateClusterRequest.java new file mode 100644 index 000000000000..62b848c1d14e --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/CreateClusterRequest.java @@ -0,0 +1,1470 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmwareengine/v1/vmwareengine.proto + +package com.google.cloud.vmwareengine.v1; + +/** + * + * + *
+ * Request message for [VmwareEngine.CreateCluster][google.cloud.vmwareengine.v1.VmwareEngine.CreateCluster]
+ * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.CreateClusterRequest} + */ +public final class CreateClusterRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmwareengine.v1.CreateClusterRequest) + CreateClusterRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateClusterRequest.newBuilder() to construct. + private CreateClusterRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateClusterRequest() { + parent_ = ""; + clusterId_ = ""; + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateClusterRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_CreateClusterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_CreateClusterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.CreateClusterRequest.class, + com.google.cloud.vmwareengine.v1.CreateClusterRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required. The resource name of the private cloud to create a new cluster
+   * in. Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The resource name of the private cloud to create a new cluster
+   * in. Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_ID_FIELD_NUMBER = 2; + private volatile java.lang.Object clusterId_; + /** + * + * + *
+   * Required. The user-provided identifier of the new `Cluster`.
+   * This identifier must be unique among clusters within the parent and becomes
+   * the final token in the name URI.
+   * The identifier must meet the following requirements:
+   * * Only contains 1-63 alphanumeric characters and hyphens
+   * * Begins with an alphabetical character
+   * * Ends with a non-hyphen character
+   * * Not formatted as a UUID
+   * * Complies with [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034)
+   * (section 3.5)
+   * 
+ * + * string cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The clusterId. + */ + @java.lang.Override + public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The user-provided identifier of the new `Cluster`.
+   * This identifier must be unique among clusters within the parent and becomes
+   * the final token in the name URI.
+   * The identifier must meet the following requirements:
+   * * Only contains 1-63 alphanumeric characters and hyphens
+   * * Begins with an alphabetical character
+   * * Ends with a non-hyphen character
+   * * Not formatted as a UUID
+   * * Complies with [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034)
+   * (section 3.5)
+   * 
+ * + * string cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for clusterId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_FIELD_NUMBER = 3; + private com.google.cloud.vmwareengine.v1.Cluster cluster_; + /** + * + * + *
+   * Required. The initial description of the new cluster.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the cluster field is set. + */ + @java.lang.Override + public boolean hasCluster() { + return cluster_ != null; + } + /** + * + * + *
+   * Required. The initial description of the new cluster.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The cluster. + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.Cluster getCluster() { + return cluster_ == null + ? com.google.cloud.vmwareengine.v1.Cluster.getDefaultInstance() + : cluster_; + } + /** + * + * + *
+   * Required. The initial description of the new cluster.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ClusterOrBuilder getClusterOrBuilder() { + return getCluster(); + } + + public static final int REQUEST_ID_FIELD_NUMBER = 4; + private volatile java.lang.Object requestId_; + /** + * + * + *
+   * Optional. The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VALIDATE_ONLY_FIELD_NUMBER = 5; + private boolean validateOnly_; + /** + * + * + *
+   * Optional. True if you want the request to be validated and not executed; false
+   * otherwise.
+   * 
+ * + * bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, clusterId_); + } + if (cluster_ != null) { + output.writeMessage(3, getCluster()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, requestId_); + } + if (validateOnly_ != false) { + output.writeBool(5, validateOnly_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, clusterId_); + } + if (cluster_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCluster()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); + } + if (validateOnly_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, validateOnly_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.vmwareengine.v1.CreateClusterRequest)) { + return super.equals(obj); + } + com.google.cloud.vmwareengine.v1.CreateClusterRequest other = + (com.google.cloud.vmwareengine.v1.CreateClusterRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getClusterId().equals(other.getClusterId())) return false; + if (hasCluster() != other.hasCluster()) return false; + if (hasCluster()) { + if (!getCluster().equals(other.getCluster())) return false; + } + if (!getRequestId().equals(other.getRequestId())) return false; + if (getValidateOnly() != other.getValidateOnly()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; + hash = (53 * hash) + getClusterId().hashCode(); + if (hasCluster()) { + hash = (37 * hash) + CLUSTER_FIELD_NUMBER; + hash = (53 * hash) + getCluster().hashCode(); + } + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmwareengine.v1.CreateClusterRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.CreateClusterRequest 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.vmwareengine.v1.CreateClusterRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.CreateClusterRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.CreateClusterRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.CreateClusterRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.CreateClusterRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.CreateClusterRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.CreateClusterRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.CreateClusterRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.CreateClusterRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.CreateClusterRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.vmwareengine.v1.CreateClusterRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for [VmwareEngine.CreateCluster][google.cloud.vmwareengine.v1.VmwareEngine.CreateCluster]
+   * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.CreateClusterRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmwareengine.v1.CreateClusterRequest) + com.google.cloud.vmwareengine.v1.CreateClusterRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_CreateClusterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_CreateClusterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.CreateClusterRequest.class, + com.google.cloud.vmwareengine.v1.CreateClusterRequest.Builder.class); + } + + // Construct using com.google.cloud.vmwareengine.v1.CreateClusterRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + clusterId_ = ""; + + if (clusterBuilder_ == null) { + cluster_ = null; + } else { + cluster_ = null; + clusterBuilder_ = null; + } + requestId_ = ""; + + validateOnly_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_CreateClusterRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.CreateClusterRequest getDefaultInstanceForType() { + return com.google.cloud.vmwareengine.v1.CreateClusterRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.CreateClusterRequest build() { + com.google.cloud.vmwareengine.v1.CreateClusterRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.CreateClusterRequest buildPartial() { + com.google.cloud.vmwareengine.v1.CreateClusterRequest result = + new com.google.cloud.vmwareengine.v1.CreateClusterRequest(this); + result.parent_ = parent_; + result.clusterId_ = clusterId_; + if (clusterBuilder_ == null) { + result.cluster_ = cluster_; + } else { + result.cluster_ = clusterBuilder_.build(); + } + result.requestId_ = requestId_; + result.validateOnly_ = validateOnly_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.vmwareengine.v1.CreateClusterRequest) { + return mergeFrom((com.google.cloud.vmwareengine.v1.CreateClusterRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmwareengine.v1.CreateClusterRequest other) { + if (other == com.google.cloud.vmwareengine.v1.CreateClusterRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + onChanged(); + } + if (other.hasCluster()) { + mergeCluster(other.getCluster()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + onChanged(); + } + if (other.getValidateOnly() != false) { + setValidateOnly(other.getValidateOnly()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + clusterId_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + input.readMessage(getClusterFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 26 + case 34: + { + requestId_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 40: + { + validateOnly_ = input.readBool(); + + break; + } // case 40 + 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 java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The resource name of the private cloud to create a new cluster
+     * in. Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the private cloud to create a new cluster
+     * in. Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the private cloud to create a new cluster
+     * in. Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the private cloud to create a new cluster
+     * in. Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the private cloud to create a new cluster
+     * in. Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + * + * + *
+     * Required. The user-provided identifier of the new `Cluster`.
+     * This identifier must be unique among clusters within the parent and becomes
+     * the final token in the name URI.
+     * The identifier must meet the following requirements:
+     * * Only contains 1-63 alphanumeric characters and hyphens
+     * * Begins with an alphabetical character
+     * * Ends with a non-hyphen character
+     * * Not formatted as a UUID
+     * * Complies with [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034)
+     * (section 3.5)
+     * 
+ * + * string cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The clusterId. + */ + public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The user-provided identifier of the new `Cluster`.
+     * This identifier must be unique among clusters within the parent and becomes
+     * the final token in the name URI.
+     * The identifier must meet the following requirements:
+     * * Only contains 1-63 alphanumeric characters and hyphens
+     * * Begins with an alphabetical character
+     * * Ends with a non-hyphen character
+     * * Not formatted as a UUID
+     * * Complies with [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034)
+     * (section 3.5)
+     * 
+ * + * string cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for clusterId. + */ + public com.google.protobuf.ByteString getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The user-provided identifier of the new `Cluster`.
+     * This identifier must be unique among clusters within the parent and becomes
+     * the final token in the name URI.
+     * The identifier must meet the following requirements:
+     * * Only contains 1-63 alphanumeric characters and hyphens
+     * * Begins with an alphabetical character
+     * * Ends with a non-hyphen character
+     * * Not formatted as a UUID
+     * * Complies with [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034)
+     * (section 3.5)
+     * 
+ * + * string cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The clusterId to set. + * @return This builder for chaining. + */ + public Builder setClusterId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The user-provided identifier of the new `Cluster`.
+     * This identifier must be unique among clusters within the parent and becomes
+     * the final token in the name URI.
+     * The identifier must meet the following requirements:
+     * * Only contains 1-63 alphanumeric characters and hyphens
+     * * Begins with an alphabetical character
+     * * Ends with a non-hyphen character
+     * * Not formatted as a UUID
+     * * Complies with [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034)
+     * (section 3.5)
+     * 
+ * + * string cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearClusterId() { + + clusterId_ = getDefaultInstance().getClusterId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The user-provided identifier of the new `Cluster`.
+     * This identifier must be unique among clusters within the parent and becomes
+     * the final token in the name URI.
+     * The identifier must meet the following requirements:
+     * * Only contains 1-63 alphanumeric characters and hyphens
+     * * Begins with an alphabetical character
+     * * Ends with a non-hyphen character
+     * * Not formatted as a UUID
+     * * Complies with [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034)
+     * (section 3.5)
+     * 
+ * + * string cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for clusterId to set. + * @return This builder for chaining. + */ + public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterId_ = value; + onChanged(); + return this; + } + + private com.google.cloud.vmwareengine.v1.Cluster cluster_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmwareengine.v1.Cluster, + com.google.cloud.vmwareengine.v1.Cluster.Builder, + com.google.cloud.vmwareengine.v1.ClusterOrBuilder> + clusterBuilder_; + /** + * + * + *
+     * Required. The initial description of the new cluster.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the cluster field is set. + */ + public boolean hasCluster() { + return clusterBuilder_ != null || cluster_ != null; + } + /** + * + * + *
+     * Required. The initial description of the new cluster.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The cluster. + */ + public com.google.cloud.vmwareengine.v1.Cluster getCluster() { + if (clusterBuilder_ == null) { + return cluster_ == null + ? com.google.cloud.vmwareengine.v1.Cluster.getDefaultInstance() + : cluster_; + } else { + return clusterBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The initial description of the new cluster.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setCluster(com.google.cloud.vmwareengine.v1.Cluster value) { + if (clusterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + cluster_ = value; + onChanged(); + } else { + clusterBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. The initial description of the new cluster.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setCluster(com.google.cloud.vmwareengine.v1.Cluster.Builder builderForValue) { + if (clusterBuilder_ == null) { + cluster_ = builderForValue.build(); + onChanged(); + } else { + clusterBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. The initial description of the new cluster.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeCluster(com.google.cloud.vmwareengine.v1.Cluster value) { + if (clusterBuilder_ == null) { + if (cluster_ != null) { + cluster_ = + com.google.cloud.vmwareengine.v1.Cluster.newBuilder(cluster_) + .mergeFrom(value) + .buildPartial(); + } else { + cluster_ = value; + } + onChanged(); + } else { + clusterBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. The initial description of the new cluster.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearCluster() { + if (clusterBuilder_ == null) { + cluster_ = null; + onChanged(); + } else { + cluster_ = null; + clusterBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. The initial description of the new cluster.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.vmwareengine.v1.Cluster.Builder getClusterBuilder() { + + onChanged(); + return getClusterFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The initial description of the new cluster.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.vmwareengine.v1.ClusterOrBuilder getClusterOrBuilder() { + if (clusterBuilder_ != null) { + return clusterBuilder_.getMessageOrBuilder(); + } else { + return cluster_ == null + ? com.google.cloud.vmwareengine.v1.Cluster.getDefaultInstance() + : cluster_; + } + } + /** + * + * + *
+     * Required. The initial description of the new cluster.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmwareengine.v1.Cluster, + com.google.cloud.vmwareengine.v1.Cluster.Builder, + com.google.cloud.vmwareengine.v1.ClusterOrBuilder> + getClusterFieldBuilder() { + if (clusterBuilder_ == null) { + clusterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmwareengine.v1.Cluster, + com.google.cloud.vmwareengine.v1.Cluster.Builder, + com.google.cloud.vmwareengine.v1.ClusterOrBuilder>( + getCluster(), getParentForChildren(), isClean()); + cluster_ = null; + } + return clusterBuilder_; + } + + private java.lang.Object requestId_ = ""; + /** + * + * + *
+     * Optional. The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + requestId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + + requestId_ = getDefaultInstance().getRequestId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + requestId_ = value; + onChanged(); + return this; + } + + private boolean validateOnly_; + /** + * + * + *
+     * Optional. True if you want the request to be validated and not executed; false
+     * otherwise.
+     * 
+ * + * bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + /** + * + * + *
+     * Optional. True if you want the request to be validated and not executed; false
+     * otherwise.
+     * 
+ * + * bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The validateOnly to set. + * @return This builder for chaining. + */ + public Builder setValidateOnly(boolean value) { + + validateOnly_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. True if you want the request to be validated and not executed; false
+     * otherwise.
+     * 
+ * + * bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearValidateOnly() { + + validateOnly_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.vmwareengine.v1.CreateClusterRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmwareengine.v1.CreateClusterRequest) + private static final com.google.cloud.vmwareengine.v1.CreateClusterRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmwareengine.v1.CreateClusterRequest(); + } + + public static com.google.cloud.vmwareengine.v1.CreateClusterRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateClusterRequest 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.vmwareengine.v1.CreateClusterRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/CreateClusterRequestOrBuilder.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/CreateClusterRequestOrBuilder.java new file mode 100644 index 000000000000..56a23e4b95d1 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/CreateClusterRequestOrBuilder.java @@ -0,0 +1,187 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmwareengine/v1/vmwareengine.proto + +package com.google.cloud.vmwareengine.v1; + +public interface CreateClusterRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmwareengine.v1.CreateClusterRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the private cloud to create a new cluster
+   * in. Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The resource name of the private cloud to create a new cluster
+   * in. Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The user-provided identifier of the new `Cluster`.
+   * This identifier must be unique among clusters within the parent and becomes
+   * the final token in the name URI.
+   * The identifier must meet the following requirements:
+   * * Only contains 1-63 alphanumeric characters and hyphens
+   * * Begins with an alphabetical character
+   * * Ends with a non-hyphen character
+   * * Not formatted as a UUID
+   * * Complies with [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034)
+   * (section 3.5)
+   * 
+ * + * string cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The clusterId. + */ + java.lang.String getClusterId(); + /** + * + * + *
+   * Required. The user-provided identifier of the new `Cluster`.
+   * This identifier must be unique among clusters within the parent and becomes
+   * the final token in the name URI.
+   * The identifier must meet the following requirements:
+   * * Only contains 1-63 alphanumeric characters and hyphens
+   * * Begins with an alphabetical character
+   * * Ends with a non-hyphen character
+   * * Not formatted as a UUID
+   * * Complies with [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034)
+   * (section 3.5)
+   * 
+ * + * string cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for clusterId. + */ + com.google.protobuf.ByteString getClusterIdBytes(); + + /** + * + * + *
+   * Required. The initial description of the new cluster.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the cluster field is set. + */ + boolean hasCluster(); + /** + * + * + *
+   * Required. The initial description of the new cluster.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The cluster. + */ + com.google.cloud.vmwareengine.v1.Cluster getCluster(); + /** + * + * + *
+   * Required. The initial description of the new cluster.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.vmwareengine.v1.ClusterOrBuilder getClusterOrBuilder(); + + /** + * + * + *
+   * Optional. The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + java.lang.String getRequestId(); + /** + * + * + *
+   * Optional. The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); + + /** + * + * + *
+   * Optional. True if you want the request to be validated and not executed; false
+   * otherwise.
+   * 
+ * + * bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The validateOnly. + */ + boolean getValidateOnly(); +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/CreateHcxActivationKeyRequest.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/CreateHcxActivationKeyRequest.java new file mode 100644 index 000000000000..1a7602321a9e --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/CreateHcxActivationKeyRequest.java @@ -0,0 +1,1465 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmwareengine/v1/vmwareengine.proto + +package com.google.cloud.vmwareengine.v1; + +/** + * + * + *
+ * Request message for [VmwareEngine.CreateHcxActivationKey][google.cloud.vmwareengine.v1.VmwareEngine.CreateHcxActivationKey]
+ * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest} + */ +public final class CreateHcxActivationKeyRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest) + CreateHcxActivationKeyRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateHcxActivationKeyRequest.newBuilder() to construct. + private CreateHcxActivationKeyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateHcxActivationKeyRequest() { + parent_ = ""; + hcxActivationKeyId_ = ""; + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateHcxActivationKeyRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_CreateHcxActivationKeyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_CreateHcxActivationKeyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest.class, + com.google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required. The resource name of the private cloud to create the key for.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-project/locations/us-central1/privateClouds/my-cloud`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The resource name of the private cloud to create the key for.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-project/locations/us-central1/privateClouds/my-cloud`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int HCX_ACTIVATION_KEY_FIELD_NUMBER = 2; + private com.google.cloud.vmwareengine.v1.HcxActivationKey hcxActivationKey_; + /** + * + * + *
+   * Required. The initial description of a new HCX activation key. When
+   * creating a new key, this field must be an empty object.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.HcxActivationKey hcx_activation_key = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the hcxActivationKey field is set. + */ + @java.lang.Override + public boolean hasHcxActivationKey() { + return hcxActivationKey_ != null; + } + /** + * + * + *
+   * Required. The initial description of a new HCX activation key. When
+   * creating a new key, this field must be an empty object.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.HcxActivationKey hcx_activation_key = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The hcxActivationKey. + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.HcxActivationKey getHcxActivationKey() { + return hcxActivationKey_ == null + ? com.google.cloud.vmwareengine.v1.HcxActivationKey.getDefaultInstance() + : hcxActivationKey_; + } + /** + * + * + *
+   * Required. The initial description of a new HCX activation key. When
+   * creating a new key, this field must be an empty object.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.HcxActivationKey hcx_activation_key = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.HcxActivationKeyOrBuilder getHcxActivationKeyOrBuilder() { + return getHcxActivationKey(); + } + + public static final int HCX_ACTIVATION_KEY_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object hcxActivationKeyId_; + /** + * + * + *
+   * Required. The user-provided identifier of the `HcxActivationKey` to be
+   * created. This identifier must be unique among `HcxActivationKey` resources
+   * within the parent and becomes the final token in the name URI.
+   * The identifier must meet the following requirements:
+   * * Only contains 1-63 alphanumeric characters and hyphens
+   * * Begins with an alphabetical character
+   * * Ends with a non-hyphen character
+   * * Not formatted as a UUID
+   * * Complies with [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034)
+   * (section 3.5)
+   * 
+ * + * string hcx_activation_key_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The hcxActivationKeyId. + */ + @java.lang.Override + public java.lang.String getHcxActivationKeyId() { + java.lang.Object ref = hcxActivationKeyId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + hcxActivationKeyId_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The user-provided identifier of the `HcxActivationKey` to be
+   * created. This identifier must be unique among `HcxActivationKey` resources
+   * within the parent and becomes the final token in the name URI.
+   * The identifier must meet the following requirements:
+   * * Only contains 1-63 alphanumeric characters and hyphens
+   * * Begins with an alphabetical character
+   * * Ends with a non-hyphen character
+   * * Not formatted as a UUID
+   * * Complies with [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034)
+   * (section 3.5)
+   * 
+ * + * string hcx_activation_key_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for hcxActivationKeyId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getHcxActivationKeyIdBytes() { + java.lang.Object ref = hcxActivationKeyId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + hcxActivationKeyId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REQUEST_ID_FIELD_NUMBER = 4; + private volatile java.lang.Object requestId_; + /** + * + * + *
+   * A request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server guarantees that a
+   * request doesn't result in creation of duplicate commitments for at least 60
+   * minutes.
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request ID,
+   * the server can check if original operation with the same request ID was
+   * received, and if so, will ignore the second request. This prevents clients
+   * from accidentally creating duplicate commitments.
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 4; + * + * @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; + } + } + /** + * + * + *
+   * A request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server guarantees that a
+   * request doesn't result in creation of duplicate commitments for at least 60
+   * minutes.
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request ID,
+   * the server can check if original operation with the same request ID was
+   * received, and if so, will ignore the second request. This prevents clients
+   * from accidentally creating duplicate commitments.
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 4; + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (hcxActivationKey_ != null) { + output.writeMessage(2, getHcxActivationKey()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hcxActivationKeyId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, hcxActivationKeyId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (hcxActivationKey_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getHcxActivationKey()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hcxActivationKeyId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, hcxActivationKeyId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest)) { + return super.equals(obj); + } + com.google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest other = + (com.google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasHcxActivationKey() != other.hasHcxActivationKey()) return false; + if (hasHcxActivationKey()) { + if (!getHcxActivationKey().equals(other.getHcxActivationKey())) return false; + } + if (!getHcxActivationKeyId().equals(other.getHcxActivationKeyId())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (hasHcxActivationKey()) { + hash = (37 * hash) + HCX_ACTIVATION_KEY_FIELD_NUMBER; + hash = (53 * hash) + getHcxActivationKey().hashCode(); + } + hash = (37 * hash) + HCX_ACTIVATION_KEY_ID_FIELD_NUMBER; + hash = (53 * hash) + getHcxActivationKeyId().hashCode(); + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest 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.vmwareengine.v1.CreateHcxActivationKeyRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for [VmwareEngine.CreateHcxActivationKey][google.cloud.vmwareengine.v1.VmwareEngine.CreateHcxActivationKey]
+   * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest) + com.google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_CreateHcxActivationKeyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_CreateHcxActivationKeyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest.class, + com.google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest.Builder.class); + } + + // Construct using com.google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + if (hcxActivationKeyBuilder_ == null) { + hcxActivationKey_ = null; + } else { + hcxActivationKey_ = null; + hcxActivationKeyBuilder_ = null; + } + hcxActivationKeyId_ = ""; + + requestId_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_CreateHcxActivationKeyRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest + getDefaultInstanceForType() { + return com.google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest build() { + com.google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest buildPartial() { + com.google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest result = + new com.google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest(this); + result.parent_ = parent_; + if (hcxActivationKeyBuilder_ == null) { + result.hcxActivationKey_ = hcxActivationKey_; + } else { + result.hcxActivationKey_ = hcxActivationKeyBuilder_.build(); + } + result.hcxActivationKeyId_ = hcxActivationKeyId_; + result.requestId_ = requestId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest) { + return mergeFrom((com.google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest other) { + if (other + == com.google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (other.hasHcxActivationKey()) { + mergeHcxActivationKey(other.getHcxActivationKey()); + } + if (!other.getHcxActivationKeyId().isEmpty()) { + hcxActivationKeyId_ = other.hcxActivationKeyId_; + onChanged(); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + input.readMessage( + getHcxActivationKeyFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + case 26: + { + hcxActivationKeyId_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: + { + requestId_ = input.readStringRequireUtf8(); + + 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 java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The resource name of the private cloud to create the key for.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-central1/privateClouds/my-cloud`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the private cloud to create the key for.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-central1/privateClouds/my-cloud`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the private cloud to create the key for.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-central1/privateClouds/my-cloud`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the private cloud to create the key for.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-central1/privateClouds/my-cloud`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the private cloud to create the key for.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-central1/privateClouds/my-cloud`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + private com.google.cloud.vmwareengine.v1.HcxActivationKey hcxActivationKey_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmwareengine.v1.HcxActivationKey, + com.google.cloud.vmwareengine.v1.HcxActivationKey.Builder, + com.google.cloud.vmwareengine.v1.HcxActivationKeyOrBuilder> + hcxActivationKeyBuilder_; + /** + * + * + *
+     * Required. The initial description of a new HCX activation key. When
+     * creating a new key, this field must be an empty object.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.HcxActivationKey hcx_activation_key = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the hcxActivationKey field is set. + */ + public boolean hasHcxActivationKey() { + return hcxActivationKeyBuilder_ != null || hcxActivationKey_ != null; + } + /** + * + * + *
+     * Required. The initial description of a new HCX activation key. When
+     * creating a new key, this field must be an empty object.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.HcxActivationKey hcx_activation_key = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The hcxActivationKey. + */ + public com.google.cloud.vmwareengine.v1.HcxActivationKey getHcxActivationKey() { + if (hcxActivationKeyBuilder_ == null) { + return hcxActivationKey_ == null + ? com.google.cloud.vmwareengine.v1.HcxActivationKey.getDefaultInstance() + : hcxActivationKey_; + } else { + return hcxActivationKeyBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The initial description of a new HCX activation key. When
+     * creating a new key, this field must be an empty object.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.HcxActivationKey hcx_activation_key = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setHcxActivationKey(com.google.cloud.vmwareengine.v1.HcxActivationKey value) { + if (hcxActivationKeyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + hcxActivationKey_ = value; + onChanged(); + } else { + hcxActivationKeyBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. The initial description of a new HCX activation key. When
+     * creating a new key, this field must be an empty object.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.HcxActivationKey hcx_activation_key = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setHcxActivationKey( + com.google.cloud.vmwareengine.v1.HcxActivationKey.Builder builderForValue) { + if (hcxActivationKeyBuilder_ == null) { + hcxActivationKey_ = builderForValue.build(); + onChanged(); + } else { + hcxActivationKeyBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. The initial description of a new HCX activation key. When
+     * creating a new key, this field must be an empty object.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.HcxActivationKey hcx_activation_key = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeHcxActivationKey(com.google.cloud.vmwareengine.v1.HcxActivationKey value) { + if (hcxActivationKeyBuilder_ == null) { + if (hcxActivationKey_ != null) { + hcxActivationKey_ = + com.google.cloud.vmwareengine.v1.HcxActivationKey.newBuilder(hcxActivationKey_) + .mergeFrom(value) + .buildPartial(); + } else { + hcxActivationKey_ = value; + } + onChanged(); + } else { + hcxActivationKeyBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. The initial description of a new HCX activation key. When
+     * creating a new key, this field must be an empty object.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.HcxActivationKey hcx_activation_key = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearHcxActivationKey() { + if (hcxActivationKeyBuilder_ == null) { + hcxActivationKey_ = null; + onChanged(); + } else { + hcxActivationKey_ = null; + hcxActivationKeyBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. The initial description of a new HCX activation key. When
+     * creating a new key, this field must be an empty object.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.HcxActivationKey hcx_activation_key = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.vmwareengine.v1.HcxActivationKey.Builder getHcxActivationKeyBuilder() { + + onChanged(); + return getHcxActivationKeyFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The initial description of a new HCX activation key. When
+     * creating a new key, this field must be an empty object.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.HcxActivationKey hcx_activation_key = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.vmwareengine.v1.HcxActivationKeyOrBuilder + getHcxActivationKeyOrBuilder() { + if (hcxActivationKeyBuilder_ != null) { + return hcxActivationKeyBuilder_.getMessageOrBuilder(); + } else { + return hcxActivationKey_ == null + ? com.google.cloud.vmwareengine.v1.HcxActivationKey.getDefaultInstance() + : hcxActivationKey_; + } + } + /** + * + * + *
+     * Required. The initial description of a new HCX activation key. When
+     * creating a new key, this field must be an empty object.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.HcxActivationKey hcx_activation_key = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmwareengine.v1.HcxActivationKey, + com.google.cloud.vmwareengine.v1.HcxActivationKey.Builder, + com.google.cloud.vmwareengine.v1.HcxActivationKeyOrBuilder> + getHcxActivationKeyFieldBuilder() { + if (hcxActivationKeyBuilder_ == null) { + hcxActivationKeyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmwareengine.v1.HcxActivationKey, + com.google.cloud.vmwareengine.v1.HcxActivationKey.Builder, + com.google.cloud.vmwareengine.v1.HcxActivationKeyOrBuilder>( + getHcxActivationKey(), getParentForChildren(), isClean()); + hcxActivationKey_ = null; + } + return hcxActivationKeyBuilder_; + } + + private java.lang.Object hcxActivationKeyId_ = ""; + /** + * + * + *
+     * Required. The user-provided identifier of the `HcxActivationKey` to be
+     * created. This identifier must be unique among `HcxActivationKey` resources
+     * within the parent and becomes the final token in the name URI.
+     * The identifier must meet the following requirements:
+     * * Only contains 1-63 alphanumeric characters and hyphens
+     * * Begins with an alphabetical character
+     * * Ends with a non-hyphen character
+     * * Not formatted as a UUID
+     * * Complies with [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034)
+     * (section 3.5)
+     * 
+ * + * string hcx_activation_key_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The hcxActivationKeyId. + */ + public java.lang.String getHcxActivationKeyId() { + java.lang.Object ref = hcxActivationKeyId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + hcxActivationKeyId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The user-provided identifier of the `HcxActivationKey` to be
+     * created. This identifier must be unique among `HcxActivationKey` resources
+     * within the parent and becomes the final token in the name URI.
+     * The identifier must meet the following requirements:
+     * * Only contains 1-63 alphanumeric characters and hyphens
+     * * Begins with an alphabetical character
+     * * Ends with a non-hyphen character
+     * * Not formatted as a UUID
+     * * Complies with [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034)
+     * (section 3.5)
+     * 
+ * + * string hcx_activation_key_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for hcxActivationKeyId. + */ + public com.google.protobuf.ByteString getHcxActivationKeyIdBytes() { + java.lang.Object ref = hcxActivationKeyId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + hcxActivationKeyId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The user-provided identifier of the `HcxActivationKey` to be
+     * created. This identifier must be unique among `HcxActivationKey` resources
+     * within the parent and becomes the final token in the name URI.
+     * The identifier must meet the following requirements:
+     * * Only contains 1-63 alphanumeric characters and hyphens
+     * * Begins with an alphabetical character
+     * * Ends with a non-hyphen character
+     * * Not formatted as a UUID
+     * * Complies with [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034)
+     * (section 3.5)
+     * 
+ * + * string hcx_activation_key_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The hcxActivationKeyId to set. + * @return This builder for chaining. + */ + public Builder setHcxActivationKeyId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + hcxActivationKeyId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The user-provided identifier of the `HcxActivationKey` to be
+     * created. This identifier must be unique among `HcxActivationKey` resources
+     * within the parent and becomes the final token in the name URI.
+     * The identifier must meet the following requirements:
+     * * Only contains 1-63 alphanumeric characters and hyphens
+     * * Begins with an alphabetical character
+     * * Ends with a non-hyphen character
+     * * Not formatted as a UUID
+     * * Complies with [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034)
+     * (section 3.5)
+     * 
+ * + * string hcx_activation_key_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearHcxActivationKeyId() { + + hcxActivationKeyId_ = getDefaultInstance().getHcxActivationKeyId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The user-provided identifier of the `HcxActivationKey` to be
+     * created. This identifier must be unique among `HcxActivationKey` resources
+     * within the parent and becomes the final token in the name URI.
+     * The identifier must meet the following requirements:
+     * * Only contains 1-63 alphanumeric characters and hyphens
+     * * Begins with an alphabetical character
+     * * Ends with a non-hyphen character
+     * * Not formatted as a UUID
+     * * Complies with [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034)
+     * (section 3.5)
+     * 
+ * + * string hcx_activation_key_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for hcxActivationKeyId to set. + * @return This builder for chaining. + */ + public Builder setHcxActivationKeyIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + hcxActivationKeyId_ = value; + onChanged(); + return this; + } + + private java.lang.Object requestId_ = ""; + /** + * + * + *
+     * A request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server guarantees that a
+     * request doesn't result in creation of duplicate commitments for at least 60
+     * minutes.
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request ID,
+     * the server can check if original operation with the same request ID was
+     * received, and if so, will ignore the second request. This prevents clients
+     * from accidentally creating duplicate commitments.
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 4; + * + * @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; + } + } + /** + * + * + *
+     * A request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server guarantees that a
+     * request doesn't result in creation of duplicate commitments for at least 60
+     * minutes.
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request ID,
+     * the server can check if original operation with the same request ID was
+     * received, and if so, will ignore the second request. This prevents clients
+     * from accidentally creating duplicate commitments.
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 4; + * + * @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; + } + } + /** + * + * + *
+     * A request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server guarantees that a
+     * request doesn't result in creation of duplicate commitments for at least 60
+     * minutes.
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request ID,
+     * the server can check if original operation with the same request ID was
+     * received, and if so, will ignore the second request. This prevents clients
+     * from accidentally creating duplicate commitments.
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 4; + * + * @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; + onChanged(); + return this; + } + /** + * + * + *
+     * A request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server guarantees that a
+     * request doesn't result in creation of duplicate commitments for at least 60
+     * minutes.
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request ID,
+     * the server can check if original operation with the same request ID was
+     * received, and if so, will ignore the second request. This prevents clients
+     * from accidentally creating duplicate commitments.
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 4; + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + + requestId_ = getDefaultInstance().getRequestId(); + onChanged(); + return this; + } + /** + * + * + *
+     * A request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server guarantees that a
+     * request doesn't result in creation of duplicate commitments for at least 60
+     * minutes.
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request ID,
+     * the server can check if original operation with the same request ID was
+     * received, and if so, will ignore the second request. This prevents clients
+     * from accidentally creating duplicate commitments.
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 4; + * + * @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; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest) + private static final com.google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest(); + } + + public static com.google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateHcxActivationKeyRequest 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.vmwareengine.v1.CreateHcxActivationKeyRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/CreateHcxActivationKeyRequestOrBuilder.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/CreateHcxActivationKeyRequestOrBuilder.java new file mode 100644 index 000000000000..128b81cf6d42 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/CreateHcxActivationKeyRequestOrBuilder.java @@ -0,0 +1,196 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmwareengine/v1/vmwareengine.proto + +package com.google.cloud.vmwareengine.v1; + +public interface CreateHcxActivationKeyRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the private cloud to create the key for.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-project/locations/us-central1/privateClouds/my-cloud`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The resource name of the private cloud to create the key for.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-project/locations/us-central1/privateClouds/my-cloud`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The initial description of a new HCX activation key. When
+   * creating a new key, this field must be an empty object.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.HcxActivationKey hcx_activation_key = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the hcxActivationKey field is set. + */ + boolean hasHcxActivationKey(); + /** + * + * + *
+   * Required. The initial description of a new HCX activation key. When
+   * creating a new key, this field must be an empty object.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.HcxActivationKey hcx_activation_key = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The hcxActivationKey. + */ + com.google.cloud.vmwareengine.v1.HcxActivationKey getHcxActivationKey(); + /** + * + * + *
+   * Required. The initial description of a new HCX activation key. When
+   * creating a new key, this field must be an empty object.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.HcxActivationKey hcx_activation_key = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.vmwareengine.v1.HcxActivationKeyOrBuilder getHcxActivationKeyOrBuilder(); + + /** + * + * + *
+   * Required. The user-provided identifier of the `HcxActivationKey` to be
+   * created. This identifier must be unique among `HcxActivationKey` resources
+   * within the parent and becomes the final token in the name URI.
+   * The identifier must meet the following requirements:
+   * * Only contains 1-63 alphanumeric characters and hyphens
+   * * Begins with an alphabetical character
+   * * Ends with a non-hyphen character
+   * * Not formatted as a UUID
+   * * Complies with [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034)
+   * (section 3.5)
+   * 
+ * + * string hcx_activation_key_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The hcxActivationKeyId. + */ + java.lang.String getHcxActivationKeyId(); + /** + * + * + *
+   * Required. The user-provided identifier of the `HcxActivationKey` to be
+   * created. This identifier must be unique among `HcxActivationKey` resources
+   * within the parent and becomes the final token in the name URI.
+   * The identifier must meet the following requirements:
+   * * Only contains 1-63 alphanumeric characters and hyphens
+   * * Begins with an alphabetical character
+   * * Ends with a non-hyphen character
+   * * Not formatted as a UUID
+   * * Complies with [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034)
+   * (section 3.5)
+   * 
+ * + * string hcx_activation_key_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for hcxActivationKeyId. + */ + com.google.protobuf.ByteString getHcxActivationKeyIdBytes(); + + /** + * + * + *
+   * A request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server guarantees that a
+   * request doesn't result in creation of duplicate commitments for at least 60
+   * minutes.
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request ID,
+   * the server can check if original operation with the same request ID was
+   * received, and if so, will ignore the second request. This prevents clients
+   * from accidentally creating duplicate commitments.
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 4; + * + * @return The requestId. + */ + java.lang.String getRequestId(); + /** + * + * + *
+   * A request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server guarantees that a
+   * request doesn't result in creation of duplicate commitments for at least 60
+   * minutes.
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request ID,
+   * the server can check if original operation with the same request ID was
+   * received, and if so, will ignore the second request. This prevents clients
+   * from accidentally creating duplicate commitments.
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 4; + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/CreateNetworkPolicyRequest.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/CreateNetworkPolicyRequest.java new file mode 100644 index 000000000000..eda698ad8e25 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/CreateNetworkPolicyRequest.java @@ -0,0 +1,1460 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmwareengine/v1/vmwareengine.proto + +package com.google.cloud.vmwareengine.v1; + +/** + * + * + *
+ * Request message for [VmwareEngine.CreateNetworkPolicy][google.cloud.vmwareengine.v1.VmwareEngine.CreateNetworkPolicy]
+ * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest} + */ +public final class CreateNetworkPolicyRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest) + CreateNetworkPolicyRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateNetworkPolicyRequest.newBuilder() to construct. + private CreateNetworkPolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateNetworkPolicyRequest() { + parent_ = ""; + networkPolicyId_ = ""; + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateNetworkPolicyRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_CreateNetworkPolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_CreateNetworkPolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest.class, + com.google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required. The resource name of the location (region)
+   * to create the new network policy in.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   *  `projects/my-project/locations/us-central1`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The resource name of the location (region)
+   * to create the new network policy in.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   *  `projects/my-project/locations/us-central1`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NETWORK_POLICY_ID_FIELD_NUMBER = 2; + private volatile java.lang.Object networkPolicyId_; + /** + * + * + *
+   * Required. The user-provided identifier of the network policy to be created.
+   * This identifier must be unique within parent
+   * `projects/{my-project}/locations/{us-central1}/networkPolicies` and becomes
+   * the final token in the name URI.
+   * The identifier must meet the following requirements:
+   * * Only contains 1-63 alphanumeric characters and hyphens
+   * * Begins with an alphabetical character
+   * * Ends with a non-hyphen character
+   * * Not formatted as a UUID
+   * * Complies with [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034)
+   * (section 3.5)
+   * 
+ * + * string network_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The networkPolicyId. + */ + @java.lang.Override + public java.lang.String getNetworkPolicyId() { + java.lang.Object ref = networkPolicyId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + networkPolicyId_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The user-provided identifier of the network policy to be created.
+   * This identifier must be unique within parent
+   * `projects/{my-project}/locations/{us-central1}/networkPolicies` and becomes
+   * the final token in the name URI.
+   * The identifier must meet the following requirements:
+   * * Only contains 1-63 alphanumeric characters and hyphens
+   * * Begins with an alphabetical character
+   * * Ends with a non-hyphen character
+   * * Not formatted as a UUID
+   * * Complies with [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034)
+   * (section 3.5)
+   * 
+ * + * string network_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for networkPolicyId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNetworkPolicyIdBytes() { + java.lang.Object ref = networkPolicyId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + networkPolicyId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NETWORK_POLICY_FIELD_NUMBER = 3; + private com.google.cloud.vmwareengine.v1.NetworkPolicy networkPolicy_; + /** + * + * + *
+   * Required. The network policy configuration to use in the request.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.NetworkPolicy network_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the networkPolicy field is set. + */ + @java.lang.Override + public boolean hasNetworkPolicy() { + return networkPolicy_ != null; + } + /** + * + * + *
+   * Required. The network policy configuration to use in the request.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.NetworkPolicy network_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The networkPolicy. + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.NetworkPolicy getNetworkPolicy() { + return networkPolicy_ == null + ? com.google.cloud.vmwareengine.v1.NetworkPolicy.getDefaultInstance() + : networkPolicy_; + } + /** + * + * + *
+   * Required. The network policy configuration to use in the request.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.NetworkPolicy network_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.NetworkPolicyOrBuilder getNetworkPolicyOrBuilder() { + return getNetworkPolicy(); + } + + public static final int REQUEST_ID_FIELD_NUMBER = 4; + private volatile java.lang.Object requestId_; + /** + * + * + *
+   * Optional. A request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server guarantees that a
+   * request doesn't result in creation of duplicate commitments for at least 60
+   * minutes.
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. A request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server guarantees that a
+   * request doesn't result in creation of duplicate commitments for at least 60
+   * minutes.
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(networkPolicyId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, networkPolicyId_); + } + if (networkPolicy_ != null) { + output.writeMessage(3, getNetworkPolicy()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(networkPolicyId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, networkPolicyId_); + } + if (networkPolicy_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getNetworkPolicy()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest)) { + return super.equals(obj); + } + com.google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest other = + (com.google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getNetworkPolicyId().equals(other.getNetworkPolicyId())) return false; + if (hasNetworkPolicy() != other.hasNetworkPolicy()) return false; + if (hasNetworkPolicy()) { + if (!getNetworkPolicy().equals(other.getNetworkPolicy())) return false; + } + if (!getRequestId().equals(other.getRequestId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + NETWORK_POLICY_ID_FIELD_NUMBER; + hash = (53 * hash) + getNetworkPolicyId().hashCode(); + if (hasNetworkPolicy()) { + hash = (37 * hash) + NETWORK_POLICY_FIELD_NUMBER; + hash = (53 * hash) + getNetworkPolicy().hashCode(); + } + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest 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.vmwareengine.v1.CreateNetworkPolicyRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for [VmwareEngine.CreateNetworkPolicy][google.cloud.vmwareengine.v1.VmwareEngine.CreateNetworkPolicy]
+   * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest) + com.google.cloud.vmwareengine.v1.CreateNetworkPolicyRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_CreateNetworkPolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_CreateNetworkPolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest.class, + com.google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest.Builder.class); + } + + // Construct using com.google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + networkPolicyId_ = ""; + + if (networkPolicyBuilder_ == null) { + networkPolicy_ = null; + } else { + networkPolicy_ = null; + networkPolicyBuilder_ = null; + } + requestId_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_CreateNetworkPolicyRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest getDefaultInstanceForType() { + return com.google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest build() { + com.google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest buildPartial() { + com.google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest result = + new com.google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest(this); + result.parent_ = parent_; + result.networkPolicyId_ = networkPolicyId_; + if (networkPolicyBuilder_ == null) { + result.networkPolicy_ = networkPolicy_; + } else { + result.networkPolicy_ = networkPolicyBuilder_.build(); + } + result.requestId_ = requestId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest) { + return mergeFrom((com.google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest other) { + if (other == com.google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (!other.getNetworkPolicyId().isEmpty()) { + networkPolicyId_ = other.networkPolicyId_; + onChanged(); + } + if (other.hasNetworkPolicy()) { + mergeNetworkPolicy(other.getNetworkPolicy()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + networkPolicyId_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + input.readMessage(getNetworkPolicyFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 26 + case 34: + { + requestId_ = input.readStringRequireUtf8(); + + 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 java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The resource name of the location (region)
+     * to create the new network policy in.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     *  `projects/my-project/locations/us-central1`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the location (region)
+     * to create the new network policy in.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     *  `projects/my-project/locations/us-central1`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the location (region)
+     * to create the new network policy in.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     *  `projects/my-project/locations/us-central1`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the location (region)
+     * to create the new network policy in.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     *  `projects/my-project/locations/us-central1`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the location (region)
+     * to create the new network policy in.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     *  `projects/my-project/locations/us-central1`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + private java.lang.Object networkPolicyId_ = ""; + /** + * + * + *
+     * Required. The user-provided identifier of the network policy to be created.
+     * This identifier must be unique within parent
+     * `projects/{my-project}/locations/{us-central1}/networkPolicies` and becomes
+     * the final token in the name URI.
+     * The identifier must meet the following requirements:
+     * * Only contains 1-63 alphanumeric characters and hyphens
+     * * Begins with an alphabetical character
+     * * Ends with a non-hyphen character
+     * * Not formatted as a UUID
+     * * Complies with [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034)
+     * (section 3.5)
+     * 
+ * + * string network_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The networkPolicyId. + */ + public java.lang.String getNetworkPolicyId() { + java.lang.Object ref = networkPolicyId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + networkPolicyId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The user-provided identifier of the network policy to be created.
+     * This identifier must be unique within parent
+     * `projects/{my-project}/locations/{us-central1}/networkPolicies` and becomes
+     * the final token in the name URI.
+     * The identifier must meet the following requirements:
+     * * Only contains 1-63 alphanumeric characters and hyphens
+     * * Begins with an alphabetical character
+     * * Ends with a non-hyphen character
+     * * Not formatted as a UUID
+     * * Complies with [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034)
+     * (section 3.5)
+     * 
+ * + * string network_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for networkPolicyId. + */ + public com.google.protobuf.ByteString getNetworkPolicyIdBytes() { + java.lang.Object ref = networkPolicyId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + networkPolicyId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The user-provided identifier of the network policy to be created.
+     * This identifier must be unique within parent
+     * `projects/{my-project}/locations/{us-central1}/networkPolicies` and becomes
+     * the final token in the name URI.
+     * The identifier must meet the following requirements:
+     * * Only contains 1-63 alphanumeric characters and hyphens
+     * * Begins with an alphabetical character
+     * * Ends with a non-hyphen character
+     * * Not formatted as a UUID
+     * * Complies with [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034)
+     * (section 3.5)
+     * 
+ * + * string network_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The networkPolicyId to set. + * @return This builder for chaining. + */ + public Builder setNetworkPolicyId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + networkPolicyId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The user-provided identifier of the network policy to be created.
+     * This identifier must be unique within parent
+     * `projects/{my-project}/locations/{us-central1}/networkPolicies` and becomes
+     * the final token in the name URI.
+     * The identifier must meet the following requirements:
+     * * Only contains 1-63 alphanumeric characters and hyphens
+     * * Begins with an alphabetical character
+     * * Ends with a non-hyphen character
+     * * Not formatted as a UUID
+     * * Complies with [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034)
+     * (section 3.5)
+     * 
+ * + * string network_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearNetworkPolicyId() { + + networkPolicyId_ = getDefaultInstance().getNetworkPolicyId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The user-provided identifier of the network policy to be created.
+     * This identifier must be unique within parent
+     * `projects/{my-project}/locations/{us-central1}/networkPolicies` and becomes
+     * the final token in the name URI.
+     * The identifier must meet the following requirements:
+     * * Only contains 1-63 alphanumeric characters and hyphens
+     * * Begins with an alphabetical character
+     * * Ends with a non-hyphen character
+     * * Not formatted as a UUID
+     * * Complies with [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034)
+     * (section 3.5)
+     * 
+ * + * string network_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for networkPolicyId to set. + * @return This builder for chaining. + */ + public Builder setNetworkPolicyIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + networkPolicyId_ = value; + onChanged(); + return this; + } + + private com.google.cloud.vmwareengine.v1.NetworkPolicy networkPolicy_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmwareengine.v1.NetworkPolicy, + com.google.cloud.vmwareengine.v1.NetworkPolicy.Builder, + com.google.cloud.vmwareengine.v1.NetworkPolicyOrBuilder> + networkPolicyBuilder_; + /** + * + * + *
+     * Required. The network policy configuration to use in the request.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.NetworkPolicy network_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the networkPolicy field is set. + */ + public boolean hasNetworkPolicy() { + return networkPolicyBuilder_ != null || networkPolicy_ != null; + } + /** + * + * + *
+     * Required. The network policy configuration to use in the request.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.NetworkPolicy network_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The networkPolicy. + */ + public com.google.cloud.vmwareengine.v1.NetworkPolicy getNetworkPolicy() { + if (networkPolicyBuilder_ == null) { + return networkPolicy_ == null + ? com.google.cloud.vmwareengine.v1.NetworkPolicy.getDefaultInstance() + : networkPolicy_; + } else { + return networkPolicyBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The network policy configuration to use in the request.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.NetworkPolicy network_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setNetworkPolicy(com.google.cloud.vmwareengine.v1.NetworkPolicy value) { + if (networkPolicyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + networkPolicy_ = value; + onChanged(); + } else { + networkPolicyBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. The network policy configuration to use in the request.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.NetworkPolicy network_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setNetworkPolicy( + com.google.cloud.vmwareengine.v1.NetworkPolicy.Builder builderForValue) { + if (networkPolicyBuilder_ == null) { + networkPolicy_ = builderForValue.build(); + onChanged(); + } else { + networkPolicyBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. The network policy configuration to use in the request.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.NetworkPolicy network_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeNetworkPolicy(com.google.cloud.vmwareengine.v1.NetworkPolicy value) { + if (networkPolicyBuilder_ == null) { + if (networkPolicy_ != null) { + networkPolicy_ = + com.google.cloud.vmwareengine.v1.NetworkPolicy.newBuilder(networkPolicy_) + .mergeFrom(value) + .buildPartial(); + } else { + networkPolicy_ = value; + } + onChanged(); + } else { + networkPolicyBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. The network policy configuration to use in the request.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.NetworkPolicy network_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearNetworkPolicy() { + if (networkPolicyBuilder_ == null) { + networkPolicy_ = null; + onChanged(); + } else { + networkPolicy_ = null; + networkPolicyBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. The network policy configuration to use in the request.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.NetworkPolicy network_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.vmwareengine.v1.NetworkPolicy.Builder getNetworkPolicyBuilder() { + + onChanged(); + return getNetworkPolicyFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The network policy configuration to use in the request.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.NetworkPolicy network_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.vmwareengine.v1.NetworkPolicyOrBuilder getNetworkPolicyOrBuilder() { + if (networkPolicyBuilder_ != null) { + return networkPolicyBuilder_.getMessageOrBuilder(); + } else { + return networkPolicy_ == null + ? com.google.cloud.vmwareengine.v1.NetworkPolicy.getDefaultInstance() + : networkPolicy_; + } + } + /** + * + * + *
+     * Required. The network policy configuration to use in the request.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.NetworkPolicy network_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmwareengine.v1.NetworkPolicy, + com.google.cloud.vmwareengine.v1.NetworkPolicy.Builder, + com.google.cloud.vmwareengine.v1.NetworkPolicyOrBuilder> + getNetworkPolicyFieldBuilder() { + if (networkPolicyBuilder_ == null) { + networkPolicyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmwareengine.v1.NetworkPolicy, + com.google.cloud.vmwareengine.v1.NetworkPolicy.Builder, + com.google.cloud.vmwareengine.v1.NetworkPolicyOrBuilder>( + getNetworkPolicy(), getParentForChildren(), isClean()); + networkPolicy_ = null; + } + return networkPolicyBuilder_; + } + + private java.lang.Object requestId_ = ""; + /** + * + * + *
+     * Optional. A request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server guarantees that a
+     * request doesn't result in creation of duplicate commitments for at least 60
+     * minutes.
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. A request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server guarantees that a
+     * request doesn't result in creation of duplicate commitments for at least 60
+     * minutes.
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. A request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server guarantees that a
+     * request doesn't result in creation of duplicate commitments for at least 60
+     * minutes.
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + requestId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server guarantees that a
+     * request doesn't result in creation of duplicate commitments for at least 60
+     * minutes.
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + + requestId_ = getDefaultInstance().getRequestId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server guarantees that a
+     * request doesn't result in creation of duplicate commitments for at least 60
+     * minutes.
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + requestId_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest) + private static final com.google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest(); + } + + public static com.google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateNetworkPolicyRequest 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.vmwareengine.v1.CreateNetworkPolicyRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/CreateNetworkPolicyRequestOrBuilder.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/CreateNetworkPolicyRequestOrBuilder.java new file mode 100644 index 000000000000..6130193c32ff --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/CreateNetworkPolicyRequestOrBuilder.java @@ -0,0 +1,197 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmwareengine/v1/vmwareengine.proto + +package com.google.cloud.vmwareengine.v1; + +public interface CreateNetworkPolicyRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the location (region)
+   * to create the new network policy in.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   *  `projects/my-project/locations/us-central1`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The resource name of the location (region)
+   * to create the new network policy in.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   *  `projects/my-project/locations/us-central1`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The user-provided identifier of the network policy to be created.
+   * This identifier must be unique within parent
+   * `projects/{my-project}/locations/{us-central1}/networkPolicies` and becomes
+   * the final token in the name URI.
+   * The identifier must meet the following requirements:
+   * * Only contains 1-63 alphanumeric characters and hyphens
+   * * Begins with an alphabetical character
+   * * Ends with a non-hyphen character
+   * * Not formatted as a UUID
+   * * Complies with [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034)
+   * (section 3.5)
+   * 
+ * + * string network_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The networkPolicyId. + */ + java.lang.String getNetworkPolicyId(); + /** + * + * + *
+   * Required. The user-provided identifier of the network policy to be created.
+   * This identifier must be unique within parent
+   * `projects/{my-project}/locations/{us-central1}/networkPolicies` and becomes
+   * the final token in the name URI.
+   * The identifier must meet the following requirements:
+   * * Only contains 1-63 alphanumeric characters and hyphens
+   * * Begins with an alphabetical character
+   * * Ends with a non-hyphen character
+   * * Not formatted as a UUID
+   * * Complies with [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034)
+   * (section 3.5)
+   * 
+ * + * string network_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for networkPolicyId. + */ + com.google.protobuf.ByteString getNetworkPolicyIdBytes(); + + /** + * + * + *
+   * Required. The network policy configuration to use in the request.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.NetworkPolicy network_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the networkPolicy field is set. + */ + boolean hasNetworkPolicy(); + /** + * + * + *
+   * Required. The network policy configuration to use in the request.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.NetworkPolicy network_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The networkPolicy. + */ + com.google.cloud.vmwareengine.v1.NetworkPolicy getNetworkPolicy(); + /** + * + * + *
+   * Required. The network policy configuration to use in the request.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.NetworkPolicy network_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.vmwareengine.v1.NetworkPolicyOrBuilder getNetworkPolicyOrBuilder(); + + /** + * + * + *
+   * Optional. A request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server guarantees that a
+   * request doesn't result in creation of duplicate commitments for at least 60
+   * minutes.
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + java.lang.String getRequestId(); + /** + * + * + *
+   * Optional. A request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server guarantees that a
+   * request doesn't result in creation of duplicate commitments for at least 60
+   * minutes.
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/CreatePrivateCloudRequest.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/CreatePrivateCloudRequest.java new file mode 100644 index 000000000000..e8aeae499202 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/CreatePrivateCloudRequest.java @@ -0,0 +1,1471 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmwareengine/v1/vmwareengine.proto + +package com.google.cloud.vmwareengine.v1; + +/** + * + * + *
+ * Request message for [VmwareEngine.CreatePrivateCloud][google.cloud.vmwareengine.v1.VmwareEngine.CreatePrivateCloud]
+ * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.CreatePrivateCloudRequest} + */ +public final class CreatePrivateCloudRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmwareengine.v1.CreatePrivateCloudRequest) + CreatePrivateCloudRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreatePrivateCloudRequest.newBuilder() to construct. + private CreatePrivateCloudRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreatePrivateCloudRequest() { + parent_ = ""; + privateCloudId_ = ""; + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreatePrivateCloudRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_CreatePrivateCloudRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_CreatePrivateCloudRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.CreatePrivateCloudRequest.class, + com.google.cloud.vmwareengine.v1.CreatePrivateCloudRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required. The resource name of the location to create the new
+   * private cloud in. Resource names are schemeless URIs that follow the
+   * conventions in https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-project/locations/us-west1-a`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The resource name of the location to create the new
+   * private cloud in. Resource names are schemeless URIs that follow the
+   * conventions in https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-project/locations/us-west1-a`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PRIVATE_CLOUD_ID_FIELD_NUMBER = 2; + private volatile java.lang.Object privateCloudId_; + /** + * + * + *
+   * Required. The user-provided identifier of the private cloud to be created.
+   * This identifier must be unique among each `PrivateCloud` within the parent
+   * and becomes the final token in the name URI.
+   * The identifier must meet the following requirements:
+   * * Only contains 1-63 alphanumeric characters and hyphens
+   * * Begins with an alphabetical character
+   * * Ends with a non-hyphen character
+   * * Not formatted as a UUID
+   * * Complies with [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034)
+   * (section 3.5)
+   * 
+ * + * string private_cloud_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The privateCloudId. + */ + @java.lang.Override + public java.lang.String getPrivateCloudId() { + java.lang.Object ref = privateCloudId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + privateCloudId_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The user-provided identifier of the private cloud to be created.
+   * This identifier must be unique among each `PrivateCloud` within the parent
+   * and becomes the final token in the name URI.
+   * The identifier must meet the following requirements:
+   * * Only contains 1-63 alphanumeric characters and hyphens
+   * * Begins with an alphabetical character
+   * * Ends with a non-hyphen character
+   * * Not formatted as a UUID
+   * * Complies with [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034)
+   * (section 3.5)
+   * 
+ * + * string private_cloud_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for privateCloudId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPrivateCloudIdBytes() { + java.lang.Object ref = privateCloudId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + privateCloudId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PRIVATE_CLOUD_FIELD_NUMBER = 3; + private com.google.cloud.vmwareengine.v1.PrivateCloud privateCloud_; + /** + * + * + *
+   * Required. The initial description of the new private cloud.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.PrivateCloud private_cloud = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the privateCloud field is set. + */ + @java.lang.Override + public boolean hasPrivateCloud() { + return privateCloud_ != null; + } + /** + * + * + *
+   * Required. The initial description of the new private cloud.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.PrivateCloud private_cloud = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The privateCloud. + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.PrivateCloud getPrivateCloud() { + return privateCloud_ == null + ? com.google.cloud.vmwareengine.v1.PrivateCloud.getDefaultInstance() + : privateCloud_; + } + /** + * + * + *
+   * Required. The initial description of the new private cloud.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.PrivateCloud private_cloud = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.PrivateCloudOrBuilder getPrivateCloudOrBuilder() { + return getPrivateCloud(); + } + + public static final int REQUEST_ID_FIELD_NUMBER = 4; + private volatile java.lang.Object requestId_; + /** + * + * + *
+   * Optional. The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VALIDATE_ONLY_FIELD_NUMBER = 5; + private boolean validateOnly_; + /** + * + * + *
+   * Optional. True if you want the request to be validated and not executed; false
+   * otherwise.
+   * 
+ * + * bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(privateCloudId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, privateCloudId_); + } + if (privateCloud_ != null) { + output.writeMessage(3, getPrivateCloud()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, requestId_); + } + if (validateOnly_ != false) { + output.writeBool(5, validateOnly_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(privateCloudId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, privateCloudId_); + } + if (privateCloud_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getPrivateCloud()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); + } + if (validateOnly_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, validateOnly_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.vmwareengine.v1.CreatePrivateCloudRequest)) { + return super.equals(obj); + } + com.google.cloud.vmwareengine.v1.CreatePrivateCloudRequest other = + (com.google.cloud.vmwareengine.v1.CreatePrivateCloudRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getPrivateCloudId().equals(other.getPrivateCloudId())) return false; + if (hasPrivateCloud() != other.hasPrivateCloud()) return false; + if (hasPrivateCloud()) { + if (!getPrivateCloud().equals(other.getPrivateCloud())) return false; + } + if (!getRequestId().equals(other.getRequestId())) return false; + if (getValidateOnly() != other.getValidateOnly()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PRIVATE_CLOUD_ID_FIELD_NUMBER; + hash = (53 * hash) + getPrivateCloudId().hashCode(); + if (hasPrivateCloud()) { + hash = (37 * hash) + PRIVATE_CLOUD_FIELD_NUMBER; + hash = (53 * hash) + getPrivateCloud().hashCode(); + } + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmwareengine.v1.CreatePrivateCloudRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.CreatePrivateCloudRequest 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.vmwareengine.v1.CreatePrivateCloudRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.CreatePrivateCloudRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.CreatePrivateCloudRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.CreatePrivateCloudRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.CreatePrivateCloudRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.CreatePrivateCloudRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.CreatePrivateCloudRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.CreatePrivateCloudRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.CreatePrivateCloudRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.CreatePrivateCloudRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.vmwareengine.v1.CreatePrivateCloudRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for [VmwareEngine.CreatePrivateCloud][google.cloud.vmwareengine.v1.VmwareEngine.CreatePrivateCloud]
+   * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.CreatePrivateCloudRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmwareengine.v1.CreatePrivateCloudRequest) + com.google.cloud.vmwareengine.v1.CreatePrivateCloudRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_CreatePrivateCloudRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_CreatePrivateCloudRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.CreatePrivateCloudRequest.class, + com.google.cloud.vmwareengine.v1.CreatePrivateCloudRequest.Builder.class); + } + + // Construct using com.google.cloud.vmwareengine.v1.CreatePrivateCloudRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + privateCloudId_ = ""; + + if (privateCloudBuilder_ == null) { + privateCloud_ = null; + } else { + privateCloud_ = null; + privateCloudBuilder_ = null; + } + requestId_ = ""; + + validateOnly_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_CreatePrivateCloudRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.CreatePrivateCloudRequest getDefaultInstanceForType() { + return com.google.cloud.vmwareengine.v1.CreatePrivateCloudRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.CreatePrivateCloudRequest build() { + com.google.cloud.vmwareengine.v1.CreatePrivateCloudRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.CreatePrivateCloudRequest buildPartial() { + com.google.cloud.vmwareengine.v1.CreatePrivateCloudRequest result = + new com.google.cloud.vmwareengine.v1.CreatePrivateCloudRequest(this); + result.parent_ = parent_; + result.privateCloudId_ = privateCloudId_; + if (privateCloudBuilder_ == null) { + result.privateCloud_ = privateCloud_; + } else { + result.privateCloud_ = privateCloudBuilder_.build(); + } + result.requestId_ = requestId_; + result.validateOnly_ = validateOnly_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.vmwareengine.v1.CreatePrivateCloudRequest) { + return mergeFrom((com.google.cloud.vmwareengine.v1.CreatePrivateCloudRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmwareengine.v1.CreatePrivateCloudRequest other) { + if (other == com.google.cloud.vmwareengine.v1.CreatePrivateCloudRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (!other.getPrivateCloudId().isEmpty()) { + privateCloudId_ = other.privateCloudId_; + onChanged(); + } + if (other.hasPrivateCloud()) { + mergePrivateCloud(other.getPrivateCloud()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + onChanged(); + } + if (other.getValidateOnly() != false) { + setValidateOnly(other.getValidateOnly()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + privateCloudId_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + input.readMessage(getPrivateCloudFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 26 + case 34: + { + requestId_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 40: + { + validateOnly_ = input.readBool(); + + break; + } // case 40 + 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 java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The resource name of the location to create the new
+     * private cloud in. Resource names are schemeless URIs that follow the
+     * conventions in https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-west1-a`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the location to create the new
+     * private cloud in. Resource names are schemeless URIs that follow the
+     * conventions in https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-west1-a`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the location to create the new
+     * private cloud in. Resource names are schemeless URIs that follow the
+     * conventions in https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-west1-a`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the location to create the new
+     * private cloud in. Resource names are schemeless URIs that follow the
+     * conventions in https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-west1-a`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the location to create the new
+     * private cloud in. Resource names are schemeless URIs that follow the
+     * conventions in https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-west1-a`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + private java.lang.Object privateCloudId_ = ""; + /** + * + * + *
+     * Required. The user-provided identifier of the private cloud to be created.
+     * This identifier must be unique among each `PrivateCloud` within the parent
+     * and becomes the final token in the name URI.
+     * The identifier must meet the following requirements:
+     * * Only contains 1-63 alphanumeric characters and hyphens
+     * * Begins with an alphabetical character
+     * * Ends with a non-hyphen character
+     * * Not formatted as a UUID
+     * * Complies with [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034)
+     * (section 3.5)
+     * 
+ * + * string private_cloud_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The privateCloudId. + */ + public java.lang.String getPrivateCloudId() { + java.lang.Object ref = privateCloudId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + privateCloudId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The user-provided identifier of the private cloud to be created.
+     * This identifier must be unique among each `PrivateCloud` within the parent
+     * and becomes the final token in the name URI.
+     * The identifier must meet the following requirements:
+     * * Only contains 1-63 alphanumeric characters and hyphens
+     * * Begins with an alphabetical character
+     * * Ends with a non-hyphen character
+     * * Not formatted as a UUID
+     * * Complies with [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034)
+     * (section 3.5)
+     * 
+ * + * string private_cloud_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for privateCloudId. + */ + public com.google.protobuf.ByteString getPrivateCloudIdBytes() { + java.lang.Object ref = privateCloudId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + privateCloudId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The user-provided identifier of the private cloud to be created.
+     * This identifier must be unique among each `PrivateCloud` within the parent
+     * and becomes the final token in the name URI.
+     * The identifier must meet the following requirements:
+     * * Only contains 1-63 alphanumeric characters and hyphens
+     * * Begins with an alphabetical character
+     * * Ends with a non-hyphen character
+     * * Not formatted as a UUID
+     * * Complies with [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034)
+     * (section 3.5)
+     * 
+ * + * string private_cloud_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The privateCloudId to set. + * @return This builder for chaining. + */ + public Builder setPrivateCloudId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + privateCloudId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The user-provided identifier of the private cloud to be created.
+     * This identifier must be unique among each `PrivateCloud` within the parent
+     * and becomes the final token in the name URI.
+     * The identifier must meet the following requirements:
+     * * Only contains 1-63 alphanumeric characters and hyphens
+     * * Begins with an alphabetical character
+     * * Ends with a non-hyphen character
+     * * Not formatted as a UUID
+     * * Complies with [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034)
+     * (section 3.5)
+     * 
+ * + * string private_cloud_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearPrivateCloudId() { + + privateCloudId_ = getDefaultInstance().getPrivateCloudId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The user-provided identifier of the private cloud to be created.
+     * This identifier must be unique among each `PrivateCloud` within the parent
+     * and becomes the final token in the name URI.
+     * The identifier must meet the following requirements:
+     * * Only contains 1-63 alphanumeric characters and hyphens
+     * * Begins with an alphabetical character
+     * * Ends with a non-hyphen character
+     * * Not formatted as a UUID
+     * * Complies with [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034)
+     * (section 3.5)
+     * 
+ * + * string private_cloud_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for privateCloudId to set. + * @return This builder for chaining. + */ + public Builder setPrivateCloudIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + privateCloudId_ = value; + onChanged(); + return this; + } + + private com.google.cloud.vmwareengine.v1.PrivateCloud privateCloud_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmwareengine.v1.PrivateCloud, + com.google.cloud.vmwareengine.v1.PrivateCloud.Builder, + com.google.cloud.vmwareengine.v1.PrivateCloudOrBuilder> + privateCloudBuilder_; + /** + * + * + *
+     * Required. The initial description of the new private cloud.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.PrivateCloud private_cloud = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the privateCloud field is set. + */ + public boolean hasPrivateCloud() { + return privateCloudBuilder_ != null || privateCloud_ != null; + } + /** + * + * + *
+     * Required. The initial description of the new private cloud.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.PrivateCloud private_cloud = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The privateCloud. + */ + public com.google.cloud.vmwareengine.v1.PrivateCloud getPrivateCloud() { + if (privateCloudBuilder_ == null) { + return privateCloud_ == null + ? com.google.cloud.vmwareengine.v1.PrivateCloud.getDefaultInstance() + : privateCloud_; + } else { + return privateCloudBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The initial description of the new private cloud.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.PrivateCloud private_cloud = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setPrivateCloud(com.google.cloud.vmwareengine.v1.PrivateCloud value) { + if (privateCloudBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + privateCloud_ = value; + onChanged(); + } else { + privateCloudBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. The initial description of the new private cloud.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.PrivateCloud private_cloud = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setPrivateCloud( + com.google.cloud.vmwareengine.v1.PrivateCloud.Builder builderForValue) { + if (privateCloudBuilder_ == null) { + privateCloud_ = builderForValue.build(); + onChanged(); + } else { + privateCloudBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. The initial description of the new private cloud.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.PrivateCloud private_cloud = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergePrivateCloud(com.google.cloud.vmwareengine.v1.PrivateCloud value) { + if (privateCloudBuilder_ == null) { + if (privateCloud_ != null) { + privateCloud_ = + com.google.cloud.vmwareengine.v1.PrivateCloud.newBuilder(privateCloud_) + .mergeFrom(value) + .buildPartial(); + } else { + privateCloud_ = value; + } + onChanged(); + } else { + privateCloudBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. The initial description of the new private cloud.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.PrivateCloud private_cloud = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearPrivateCloud() { + if (privateCloudBuilder_ == null) { + privateCloud_ = null; + onChanged(); + } else { + privateCloud_ = null; + privateCloudBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. The initial description of the new private cloud.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.PrivateCloud private_cloud = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.vmwareengine.v1.PrivateCloud.Builder getPrivateCloudBuilder() { + + onChanged(); + return getPrivateCloudFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The initial description of the new private cloud.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.PrivateCloud private_cloud = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.vmwareengine.v1.PrivateCloudOrBuilder getPrivateCloudOrBuilder() { + if (privateCloudBuilder_ != null) { + return privateCloudBuilder_.getMessageOrBuilder(); + } else { + return privateCloud_ == null + ? com.google.cloud.vmwareengine.v1.PrivateCloud.getDefaultInstance() + : privateCloud_; + } + } + /** + * + * + *
+     * Required. The initial description of the new private cloud.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.PrivateCloud private_cloud = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmwareengine.v1.PrivateCloud, + com.google.cloud.vmwareengine.v1.PrivateCloud.Builder, + com.google.cloud.vmwareengine.v1.PrivateCloudOrBuilder> + getPrivateCloudFieldBuilder() { + if (privateCloudBuilder_ == null) { + privateCloudBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmwareengine.v1.PrivateCloud, + com.google.cloud.vmwareengine.v1.PrivateCloud.Builder, + com.google.cloud.vmwareengine.v1.PrivateCloudOrBuilder>( + getPrivateCloud(), getParentForChildren(), isClean()); + privateCloud_ = null; + } + return privateCloudBuilder_; + } + + private java.lang.Object requestId_ = ""; + /** + * + * + *
+     * Optional. The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + requestId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + + requestId_ = getDefaultInstance().getRequestId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + requestId_ = value; + onChanged(); + return this; + } + + private boolean validateOnly_; + /** + * + * + *
+     * Optional. True if you want the request to be validated and not executed; false
+     * otherwise.
+     * 
+ * + * bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + /** + * + * + *
+     * Optional. True if you want the request to be validated and not executed; false
+     * otherwise.
+     * 
+ * + * bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The validateOnly to set. + * @return This builder for chaining. + */ + public Builder setValidateOnly(boolean value) { + + validateOnly_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. True if you want the request to be validated and not executed; false
+     * otherwise.
+     * 
+ * + * bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearValidateOnly() { + + validateOnly_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.vmwareengine.v1.CreatePrivateCloudRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmwareengine.v1.CreatePrivateCloudRequest) + private static final com.google.cloud.vmwareengine.v1.CreatePrivateCloudRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmwareengine.v1.CreatePrivateCloudRequest(); + } + + public static com.google.cloud.vmwareengine.v1.CreatePrivateCloudRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreatePrivateCloudRequest 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.vmwareengine.v1.CreatePrivateCloudRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/CreatePrivateCloudRequestOrBuilder.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/CreatePrivateCloudRequestOrBuilder.java new file mode 100644 index 000000000000..a4414971bcb1 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/CreatePrivateCloudRequestOrBuilder.java @@ -0,0 +1,187 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmwareengine/v1/vmwareengine.proto + +package com.google.cloud.vmwareengine.v1; + +public interface CreatePrivateCloudRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmwareengine.v1.CreatePrivateCloudRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the location to create the new
+   * private cloud in. Resource names are schemeless URIs that follow the
+   * conventions in https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-project/locations/us-west1-a`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The resource name of the location to create the new
+   * private cloud in. Resource names are schemeless URIs that follow the
+   * conventions in https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-project/locations/us-west1-a`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The user-provided identifier of the private cloud to be created.
+   * This identifier must be unique among each `PrivateCloud` within the parent
+   * and becomes the final token in the name URI.
+   * The identifier must meet the following requirements:
+   * * Only contains 1-63 alphanumeric characters and hyphens
+   * * Begins with an alphabetical character
+   * * Ends with a non-hyphen character
+   * * Not formatted as a UUID
+   * * Complies with [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034)
+   * (section 3.5)
+   * 
+ * + * string private_cloud_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The privateCloudId. + */ + java.lang.String getPrivateCloudId(); + /** + * + * + *
+   * Required. The user-provided identifier of the private cloud to be created.
+   * This identifier must be unique among each `PrivateCloud` within the parent
+   * and becomes the final token in the name URI.
+   * The identifier must meet the following requirements:
+   * * Only contains 1-63 alphanumeric characters and hyphens
+   * * Begins with an alphabetical character
+   * * Ends with a non-hyphen character
+   * * Not formatted as a UUID
+   * * Complies with [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034)
+   * (section 3.5)
+   * 
+ * + * string private_cloud_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for privateCloudId. + */ + com.google.protobuf.ByteString getPrivateCloudIdBytes(); + + /** + * + * + *
+   * Required. The initial description of the new private cloud.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.PrivateCloud private_cloud = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the privateCloud field is set. + */ + boolean hasPrivateCloud(); + /** + * + * + *
+   * Required. The initial description of the new private cloud.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.PrivateCloud private_cloud = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The privateCloud. + */ + com.google.cloud.vmwareengine.v1.PrivateCloud getPrivateCloud(); + /** + * + * + *
+   * Required. The initial description of the new private cloud.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.PrivateCloud private_cloud = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.vmwareengine.v1.PrivateCloudOrBuilder getPrivateCloudOrBuilder(); + + /** + * + * + *
+   * Optional. The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + java.lang.String getRequestId(); + /** + * + * + *
+   * Optional. The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); + + /** + * + * + *
+   * Optional. True if you want the request to be validated and not executed; false
+   * otherwise.
+   * 
+ * + * bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The validateOnly. + */ + boolean getValidateOnly(); +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/CreateVmwareEngineNetworkRequest.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/CreateVmwareEngineNetworkRequest.java new file mode 100644 index 000000000000..60b05121ee6f --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/CreateVmwareEngineNetworkRequest.java @@ -0,0 +1,1496 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmwareengine/v1/vmwareengine.proto + +package com.google.cloud.vmwareengine.v1; + +/** + * + * + *
+ * Request message for [VmwareEngine.CreateVmwareEngineNetwork][google.cloud.vmwareengine.v1.VmwareEngine.CreateVmwareEngineNetwork]
+ * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest} + */ +public final class CreateVmwareEngineNetworkRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest) + CreateVmwareEngineNetworkRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateVmwareEngineNetworkRequest.newBuilder() to construct. + private CreateVmwareEngineNetworkRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateVmwareEngineNetworkRequest() { + parent_ = ""; + vmwareEngineNetworkId_ = ""; + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateVmwareEngineNetworkRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_CreateVmwareEngineNetworkRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_CreateVmwareEngineNetworkRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest.class, + com.google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required. The resource name of the location to create the new VMware Engine
+   * network in. A VMware Engine network of type
+   * `LEGACY` is a regional resource, and a VMware
+   * Engine network of type `STANDARD` is a global resource.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names. For example:
+   * `projects/my-project/locations/global`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The resource name of the location to create the new VMware Engine
+   * network in. A VMware Engine network of type
+   * `LEGACY` is a regional resource, and a VMware
+   * Engine network of type `STANDARD` is a global resource.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names. For example:
+   * `projects/my-project/locations/global`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VMWARE_ENGINE_NETWORK_ID_FIELD_NUMBER = 2; + private volatile java.lang.Object vmwareEngineNetworkId_; + /** + * + * + *
+   * Required. The user-provided identifier of the new VMware Engine network.
+   * This identifier must be unique among VMware Engine network resources
+   * within the parent and becomes the final token in the name URI. The
+   * identifier must meet the following requirements:
+   * * For networks of type LEGACY, adheres to the format:
+   * `{region-id}-default`. Replace `{region-id}` with the region where you want
+   * to create the VMware Engine network. For example, "us-west1-default".
+   * * Only contains 1-63 alphanumeric characters and hyphens
+   * * Begins with an alphabetical character
+   * * Ends with a non-hyphen character
+   * * Not formatted as a UUID
+   * * Complies with [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034)
+   * (section 3.5)
+   * 
+ * + * string vmware_engine_network_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The vmwareEngineNetworkId. + */ + @java.lang.Override + public java.lang.String getVmwareEngineNetworkId() { + java.lang.Object ref = vmwareEngineNetworkId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + vmwareEngineNetworkId_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The user-provided identifier of the new VMware Engine network.
+   * This identifier must be unique among VMware Engine network resources
+   * within the parent and becomes the final token in the name URI. The
+   * identifier must meet the following requirements:
+   * * For networks of type LEGACY, adheres to the format:
+   * `{region-id}-default`. Replace `{region-id}` with the region where you want
+   * to create the VMware Engine network. For example, "us-west1-default".
+   * * Only contains 1-63 alphanumeric characters and hyphens
+   * * Begins with an alphabetical character
+   * * Ends with a non-hyphen character
+   * * Not formatted as a UUID
+   * * Complies with [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034)
+   * (section 3.5)
+   * 
+ * + * string vmware_engine_network_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for vmwareEngineNetworkId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getVmwareEngineNetworkIdBytes() { + java.lang.Object ref = vmwareEngineNetworkId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + vmwareEngineNetworkId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VMWARE_ENGINE_NETWORK_FIELD_NUMBER = 3; + private com.google.cloud.vmwareengine.v1.VmwareEngineNetwork vmwareEngineNetwork_; + /** + * + * + *
+   * Required. The initial description of the new VMware Engine network.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.VmwareEngineNetwork vmware_engine_network = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the vmwareEngineNetwork field is set. + */ + @java.lang.Override + public boolean hasVmwareEngineNetwork() { + return vmwareEngineNetwork_ != null; + } + /** + * + * + *
+   * Required. The initial description of the new VMware Engine network.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.VmwareEngineNetwork vmware_engine_network = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The vmwareEngineNetwork. + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.VmwareEngineNetwork getVmwareEngineNetwork() { + return vmwareEngineNetwork_ == null + ? com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.getDefaultInstance() + : vmwareEngineNetwork_; + } + /** + * + * + *
+   * Required. The initial description of the new VMware Engine network.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.VmwareEngineNetwork vmware_engine_network = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.VmwareEngineNetworkOrBuilder + getVmwareEngineNetworkOrBuilder() { + return getVmwareEngineNetwork(); + } + + public static final int REQUEST_ID_FIELD_NUMBER = 4; + private volatile java.lang.Object requestId_; + /** + * + * + *
+   * Optional. A request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server guarantees that a
+   * request doesn't result in creation of duplicate commitments for at least 60
+   * minutes.
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. A request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server guarantees that a
+   * request doesn't result in creation of duplicate commitments for at least 60
+   * minutes.
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vmwareEngineNetworkId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, vmwareEngineNetworkId_); + } + if (vmwareEngineNetwork_ != null) { + output.writeMessage(3, getVmwareEngineNetwork()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vmwareEngineNetworkId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, vmwareEngineNetworkId_); + } + if (vmwareEngineNetwork_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getVmwareEngineNetwork()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest)) { + return super.equals(obj); + } + com.google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest other = + (com.google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getVmwareEngineNetworkId().equals(other.getVmwareEngineNetworkId())) return false; + if (hasVmwareEngineNetwork() != other.hasVmwareEngineNetwork()) return false; + if (hasVmwareEngineNetwork()) { + if (!getVmwareEngineNetwork().equals(other.getVmwareEngineNetwork())) return false; + } + if (!getRequestId().equals(other.getRequestId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + VMWARE_ENGINE_NETWORK_ID_FIELD_NUMBER; + hash = (53 * hash) + getVmwareEngineNetworkId().hashCode(); + if (hasVmwareEngineNetwork()) { + hash = (37 * hash) + VMWARE_ENGINE_NETWORK_FIELD_NUMBER; + hash = (53 * hash) + getVmwareEngineNetwork().hashCode(); + } + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest 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.vmwareengine.v1.CreateVmwareEngineNetworkRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for [VmwareEngine.CreateVmwareEngineNetwork][google.cloud.vmwareengine.v1.VmwareEngine.CreateVmwareEngineNetwork]
+   * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest) + com.google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_CreateVmwareEngineNetworkRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_CreateVmwareEngineNetworkRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest.class, + com.google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest.Builder.class); + } + + // Construct using + // com.google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + vmwareEngineNetworkId_ = ""; + + if (vmwareEngineNetworkBuilder_ == null) { + vmwareEngineNetwork_ = null; + } else { + vmwareEngineNetwork_ = null; + vmwareEngineNetworkBuilder_ = null; + } + requestId_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_CreateVmwareEngineNetworkRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest + getDefaultInstanceForType() { + return com.google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest build() { + com.google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest buildPartial() { + com.google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest result = + new com.google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest(this); + result.parent_ = parent_; + result.vmwareEngineNetworkId_ = vmwareEngineNetworkId_; + if (vmwareEngineNetworkBuilder_ == null) { + result.vmwareEngineNetwork_ = vmwareEngineNetwork_; + } else { + result.vmwareEngineNetwork_ = vmwareEngineNetworkBuilder_.build(); + } + result.requestId_ = requestId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest) { + return mergeFrom((com.google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest other) { + if (other + == com.google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (!other.getVmwareEngineNetworkId().isEmpty()) { + vmwareEngineNetworkId_ = other.vmwareEngineNetworkId_; + onChanged(); + } + if (other.hasVmwareEngineNetwork()) { + mergeVmwareEngineNetwork(other.getVmwareEngineNetwork()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + vmwareEngineNetworkId_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + input.readMessage( + getVmwareEngineNetworkFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 26 + case 34: + { + requestId_ = input.readStringRequireUtf8(); + + 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 java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The resource name of the location to create the new VMware Engine
+     * network in. A VMware Engine network of type
+     * `LEGACY` is a regional resource, and a VMware
+     * Engine network of type `STANDARD` is a global resource.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names. For example:
+     * `projects/my-project/locations/global`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the location to create the new VMware Engine
+     * network in. A VMware Engine network of type
+     * `LEGACY` is a regional resource, and a VMware
+     * Engine network of type `STANDARD` is a global resource.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names. For example:
+     * `projects/my-project/locations/global`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the location to create the new VMware Engine
+     * network in. A VMware Engine network of type
+     * `LEGACY` is a regional resource, and a VMware
+     * Engine network of type `STANDARD` is a global resource.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names. For example:
+     * `projects/my-project/locations/global`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the location to create the new VMware Engine
+     * network in. A VMware Engine network of type
+     * `LEGACY` is a regional resource, and a VMware
+     * Engine network of type `STANDARD` is a global resource.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names. For example:
+     * `projects/my-project/locations/global`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the location to create the new VMware Engine
+     * network in. A VMware Engine network of type
+     * `LEGACY` is a regional resource, and a VMware
+     * Engine network of type `STANDARD` is a global resource.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names. For example:
+     * `projects/my-project/locations/global`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + private java.lang.Object vmwareEngineNetworkId_ = ""; + /** + * + * + *
+     * Required. The user-provided identifier of the new VMware Engine network.
+     * This identifier must be unique among VMware Engine network resources
+     * within the parent and becomes the final token in the name URI. The
+     * identifier must meet the following requirements:
+     * * For networks of type LEGACY, adheres to the format:
+     * `{region-id}-default`. Replace `{region-id}` with the region where you want
+     * to create the VMware Engine network. For example, "us-west1-default".
+     * * Only contains 1-63 alphanumeric characters and hyphens
+     * * Begins with an alphabetical character
+     * * Ends with a non-hyphen character
+     * * Not formatted as a UUID
+     * * Complies with [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034)
+     * (section 3.5)
+     * 
+ * + * string vmware_engine_network_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The vmwareEngineNetworkId. + */ + public java.lang.String getVmwareEngineNetworkId() { + java.lang.Object ref = vmwareEngineNetworkId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + vmwareEngineNetworkId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The user-provided identifier of the new VMware Engine network.
+     * This identifier must be unique among VMware Engine network resources
+     * within the parent and becomes the final token in the name URI. The
+     * identifier must meet the following requirements:
+     * * For networks of type LEGACY, adheres to the format:
+     * `{region-id}-default`. Replace `{region-id}` with the region where you want
+     * to create the VMware Engine network. For example, "us-west1-default".
+     * * Only contains 1-63 alphanumeric characters and hyphens
+     * * Begins with an alphabetical character
+     * * Ends with a non-hyphen character
+     * * Not formatted as a UUID
+     * * Complies with [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034)
+     * (section 3.5)
+     * 
+ * + * string vmware_engine_network_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for vmwareEngineNetworkId. + */ + public com.google.protobuf.ByteString getVmwareEngineNetworkIdBytes() { + java.lang.Object ref = vmwareEngineNetworkId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + vmwareEngineNetworkId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The user-provided identifier of the new VMware Engine network.
+     * This identifier must be unique among VMware Engine network resources
+     * within the parent and becomes the final token in the name URI. The
+     * identifier must meet the following requirements:
+     * * For networks of type LEGACY, adheres to the format:
+     * `{region-id}-default`. Replace `{region-id}` with the region where you want
+     * to create the VMware Engine network. For example, "us-west1-default".
+     * * Only contains 1-63 alphanumeric characters and hyphens
+     * * Begins with an alphabetical character
+     * * Ends with a non-hyphen character
+     * * Not formatted as a UUID
+     * * Complies with [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034)
+     * (section 3.5)
+     * 
+ * + * string vmware_engine_network_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The vmwareEngineNetworkId to set. + * @return This builder for chaining. + */ + public Builder setVmwareEngineNetworkId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + vmwareEngineNetworkId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The user-provided identifier of the new VMware Engine network.
+     * This identifier must be unique among VMware Engine network resources
+     * within the parent and becomes the final token in the name URI. The
+     * identifier must meet the following requirements:
+     * * For networks of type LEGACY, adheres to the format:
+     * `{region-id}-default`. Replace `{region-id}` with the region where you want
+     * to create the VMware Engine network. For example, "us-west1-default".
+     * * Only contains 1-63 alphanumeric characters and hyphens
+     * * Begins with an alphabetical character
+     * * Ends with a non-hyphen character
+     * * Not formatted as a UUID
+     * * Complies with [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034)
+     * (section 3.5)
+     * 
+ * + * string vmware_engine_network_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearVmwareEngineNetworkId() { + + vmwareEngineNetworkId_ = getDefaultInstance().getVmwareEngineNetworkId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The user-provided identifier of the new VMware Engine network.
+     * This identifier must be unique among VMware Engine network resources
+     * within the parent and becomes the final token in the name URI. The
+     * identifier must meet the following requirements:
+     * * For networks of type LEGACY, adheres to the format:
+     * `{region-id}-default`. Replace `{region-id}` with the region where you want
+     * to create the VMware Engine network. For example, "us-west1-default".
+     * * Only contains 1-63 alphanumeric characters and hyphens
+     * * Begins with an alphabetical character
+     * * Ends with a non-hyphen character
+     * * Not formatted as a UUID
+     * * Complies with [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034)
+     * (section 3.5)
+     * 
+ * + * string vmware_engine_network_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for vmwareEngineNetworkId to set. + * @return This builder for chaining. + */ + public Builder setVmwareEngineNetworkIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + vmwareEngineNetworkId_ = value; + onChanged(); + return this; + } + + private com.google.cloud.vmwareengine.v1.VmwareEngineNetwork vmwareEngineNetwork_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmwareengine.v1.VmwareEngineNetwork, + com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.Builder, + com.google.cloud.vmwareengine.v1.VmwareEngineNetworkOrBuilder> + vmwareEngineNetworkBuilder_; + /** + * + * + *
+     * Required. The initial description of the new VMware Engine network.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.VmwareEngineNetwork vmware_engine_network = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the vmwareEngineNetwork field is set. + */ + public boolean hasVmwareEngineNetwork() { + return vmwareEngineNetworkBuilder_ != null || vmwareEngineNetwork_ != null; + } + /** + * + * + *
+     * Required. The initial description of the new VMware Engine network.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.VmwareEngineNetwork vmware_engine_network = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The vmwareEngineNetwork. + */ + public com.google.cloud.vmwareengine.v1.VmwareEngineNetwork getVmwareEngineNetwork() { + if (vmwareEngineNetworkBuilder_ == null) { + return vmwareEngineNetwork_ == null + ? com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.getDefaultInstance() + : vmwareEngineNetwork_; + } else { + return vmwareEngineNetworkBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The initial description of the new VMware Engine network.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.VmwareEngineNetwork vmware_engine_network = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setVmwareEngineNetwork( + com.google.cloud.vmwareengine.v1.VmwareEngineNetwork value) { + if (vmwareEngineNetworkBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + vmwareEngineNetwork_ = value; + onChanged(); + } else { + vmwareEngineNetworkBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. The initial description of the new VMware Engine network.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.VmwareEngineNetwork vmware_engine_network = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setVmwareEngineNetwork( + com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.Builder builderForValue) { + if (vmwareEngineNetworkBuilder_ == null) { + vmwareEngineNetwork_ = builderForValue.build(); + onChanged(); + } else { + vmwareEngineNetworkBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. The initial description of the new VMware Engine network.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.VmwareEngineNetwork vmware_engine_network = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeVmwareEngineNetwork( + com.google.cloud.vmwareengine.v1.VmwareEngineNetwork value) { + if (vmwareEngineNetworkBuilder_ == null) { + if (vmwareEngineNetwork_ != null) { + vmwareEngineNetwork_ = + com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.newBuilder(vmwareEngineNetwork_) + .mergeFrom(value) + .buildPartial(); + } else { + vmwareEngineNetwork_ = value; + } + onChanged(); + } else { + vmwareEngineNetworkBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. The initial description of the new VMware Engine network.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.VmwareEngineNetwork vmware_engine_network = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearVmwareEngineNetwork() { + if (vmwareEngineNetworkBuilder_ == null) { + vmwareEngineNetwork_ = null; + onChanged(); + } else { + vmwareEngineNetwork_ = null; + vmwareEngineNetworkBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. The initial description of the new VMware Engine network.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.VmwareEngineNetwork vmware_engine_network = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.Builder + getVmwareEngineNetworkBuilder() { + + onChanged(); + return getVmwareEngineNetworkFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The initial description of the new VMware Engine network.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.VmwareEngineNetwork vmware_engine_network = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.vmwareengine.v1.VmwareEngineNetworkOrBuilder + getVmwareEngineNetworkOrBuilder() { + if (vmwareEngineNetworkBuilder_ != null) { + return vmwareEngineNetworkBuilder_.getMessageOrBuilder(); + } else { + return vmwareEngineNetwork_ == null + ? com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.getDefaultInstance() + : vmwareEngineNetwork_; + } + } + /** + * + * + *
+     * Required. The initial description of the new VMware Engine network.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.VmwareEngineNetwork vmware_engine_network = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmwareengine.v1.VmwareEngineNetwork, + com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.Builder, + com.google.cloud.vmwareengine.v1.VmwareEngineNetworkOrBuilder> + getVmwareEngineNetworkFieldBuilder() { + if (vmwareEngineNetworkBuilder_ == null) { + vmwareEngineNetworkBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmwareengine.v1.VmwareEngineNetwork, + com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.Builder, + com.google.cloud.vmwareengine.v1.VmwareEngineNetworkOrBuilder>( + getVmwareEngineNetwork(), getParentForChildren(), isClean()); + vmwareEngineNetwork_ = null; + } + return vmwareEngineNetworkBuilder_; + } + + private java.lang.Object requestId_ = ""; + /** + * + * + *
+     * Optional. A request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server guarantees that a
+     * request doesn't result in creation of duplicate commitments for at least 60
+     * minutes.
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. A request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server guarantees that a
+     * request doesn't result in creation of duplicate commitments for at least 60
+     * minutes.
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. A request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server guarantees that a
+     * request doesn't result in creation of duplicate commitments for at least 60
+     * minutes.
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + requestId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server guarantees that a
+     * request doesn't result in creation of duplicate commitments for at least 60
+     * minutes.
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + + requestId_ = getDefaultInstance().getRequestId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server guarantees that a
+     * request doesn't result in creation of duplicate commitments for at least 60
+     * minutes.
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + requestId_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest) + private static final com.google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest(); + } + + public static com.google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateVmwareEngineNetworkRequest 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.vmwareengine.v1.CreateVmwareEngineNetworkRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/CreateVmwareEngineNetworkRequestOrBuilder.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/CreateVmwareEngineNetworkRequestOrBuilder.java new file mode 100644 index 000000000000..760a58e40990 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/CreateVmwareEngineNetworkRequestOrBuilder.java @@ -0,0 +1,203 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmwareengine/v1/vmwareengine.proto + +package com.google.cloud.vmwareengine.v1; + +public interface CreateVmwareEngineNetworkRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the location to create the new VMware Engine
+   * network in. A VMware Engine network of type
+   * `LEGACY` is a regional resource, and a VMware
+   * Engine network of type `STANDARD` is a global resource.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names. For example:
+   * `projects/my-project/locations/global`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The resource name of the location to create the new VMware Engine
+   * network in. A VMware Engine network of type
+   * `LEGACY` is a regional resource, and a VMware
+   * Engine network of type `STANDARD` is a global resource.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names. For example:
+   * `projects/my-project/locations/global`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The user-provided identifier of the new VMware Engine network.
+   * This identifier must be unique among VMware Engine network resources
+   * within the parent and becomes the final token in the name URI. The
+   * identifier must meet the following requirements:
+   * * For networks of type LEGACY, adheres to the format:
+   * `{region-id}-default`. Replace `{region-id}` with the region where you want
+   * to create the VMware Engine network. For example, "us-west1-default".
+   * * Only contains 1-63 alphanumeric characters and hyphens
+   * * Begins with an alphabetical character
+   * * Ends with a non-hyphen character
+   * * Not formatted as a UUID
+   * * Complies with [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034)
+   * (section 3.5)
+   * 
+ * + * string vmware_engine_network_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The vmwareEngineNetworkId. + */ + java.lang.String getVmwareEngineNetworkId(); + /** + * + * + *
+   * Required. The user-provided identifier of the new VMware Engine network.
+   * This identifier must be unique among VMware Engine network resources
+   * within the parent and becomes the final token in the name URI. The
+   * identifier must meet the following requirements:
+   * * For networks of type LEGACY, adheres to the format:
+   * `{region-id}-default`. Replace `{region-id}` with the region where you want
+   * to create the VMware Engine network. For example, "us-west1-default".
+   * * Only contains 1-63 alphanumeric characters and hyphens
+   * * Begins with an alphabetical character
+   * * Ends with a non-hyphen character
+   * * Not formatted as a UUID
+   * * Complies with [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034)
+   * (section 3.5)
+   * 
+ * + * string vmware_engine_network_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for vmwareEngineNetworkId. + */ + com.google.protobuf.ByteString getVmwareEngineNetworkIdBytes(); + + /** + * + * + *
+   * Required. The initial description of the new VMware Engine network.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.VmwareEngineNetwork vmware_engine_network = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the vmwareEngineNetwork field is set. + */ + boolean hasVmwareEngineNetwork(); + /** + * + * + *
+   * Required. The initial description of the new VMware Engine network.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.VmwareEngineNetwork vmware_engine_network = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The vmwareEngineNetwork. + */ + com.google.cloud.vmwareengine.v1.VmwareEngineNetwork getVmwareEngineNetwork(); + /** + * + * + *
+   * Required. The initial description of the new VMware Engine network.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.VmwareEngineNetwork vmware_engine_network = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.vmwareengine.v1.VmwareEngineNetworkOrBuilder getVmwareEngineNetworkOrBuilder(); + + /** + * + * + *
+   * Optional. A request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server guarantees that a
+   * request doesn't result in creation of duplicate commitments for at least 60
+   * minutes.
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + java.lang.String getRequestId(); + /** + * + * + *
+   * Optional. A request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server guarantees that a
+   * request doesn't result in creation of duplicate commitments for at least 60
+   * minutes.
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/Credentials.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/Credentials.java new file mode 100644 index 000000000000..e3a7292dd6ad --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/Credentials.java @@ -0,0 +1,792 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmwareengine/v1/vmwareengine.proto + +package com.google.cloud.vmwareengine.v1; + +/** + * + * + *
+ * Credentials for a private cloud.
+ * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.Credentials} + */ +public final class Credentials extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmwareengine.v1.Credentials) + CredentialsOrBuilder { + private static final long serialVersionUID = 0L; + // Use Credentials.newBuilder() to construct. + private Credentials(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Credentials() { + username_ = ""; + password_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Credentials(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_Credentials_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_Credentials_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.Credentials.class, + com.google.cloud.vmwareengine.v1.Credentials.Builder.class); + } + + public static final int USERNAME_FIELD_NUMBER = 1; + private volatile java.lang.Object username_; + /** + * + * + *
+   * Initial username.
+   * 
+ * + * string username = 1; + * + * @return The username. + */ + @java.lang.Override + public java.lang.String getUsername() { + java.lang.Object ref = username_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + username_ = s; + return s; + } + } + /** + * + * + *
+   * Initial username.
+   * 
+ * + * string username = 1; + * + * @return The bytes for username. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUsernameBytes() { + java.lang.Object ref = username_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + username_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PASSWORD_FIELD_NUMBER = 2; + private volatile java.lang.Object password_; + /** + * + * + *
+   * Initial password.
+   * 
+ * + * string password = 2; + * + * @return The password. + */ + @java.lang.Override + public java.lang.String getPassword() { + java.lang.Object ref = password_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + password_ = s; + return s; + } + } + /** + * + * + *
+   * Initial password.
+   * 
+ * + * string password = 2; + * + * @return The bytes for password. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPasswordBytes() { + java.lang.Object ref = password_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + password_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(username_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, username_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(password_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, password_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(username_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, username_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(password_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, password_); + } + 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.vmwareengine.v1.Credentials)) { + return super.equals(obj); + } + com.google.cloud.vmwareengine.v1.Credentials other = + (com.google.cloud.vmwareengine.v1.Credentials) obj; + + if (!getUsername().equals(other.getUsername())) return false; + if (!getPassword().equals(other.getPassword())) 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) + USERNAME_FIELD_NUMBER; + hash = (53 * hash) + getUsername().hashCode(); + hash = (37 * hash) + PASSWORD_FIELD_NUMBER; + hash = (53 * hash) + getPassword().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmwareengine.v1.Credentials parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.Credentials 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.vmwareengine.v1.Credentials parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.Credentials parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.Credentials parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.Credentials parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.Credentials parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.Credentials parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.Credentials parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.Credentials parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.Credentials parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.Credentials parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.vmwareengine.v1.Credentials prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Credentials for a private cloud.
+   * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.Credentials} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmwareengine.v1.Credentials) + com.google.cloud.vmwareengine.v1.CredentialsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_Credentials_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_Credentials_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.Credentials.class, + com.google.cloud.vmwareengine.v1.Credentials.Builder.class); + } + + // Construct using com.google.cloud.vmwareengine.v1.Credentials.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + username_ = ""; + + password_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_Credentials_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.Credentials getDefaultInstanceForType() { + return com.google.cloud.vmwareengine.v1.Credentials.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.Credentials build() { + com.google.cloud.vmwareengine.v1.Credentials result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.Credentials buildPartial() { + com.google.cloud.vmwareengine.v1.Credentials result = + new com.google.cloud.vmwareengine.v1.Credentials(this); + result.username_ = username_; + result.password_ = password_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.vmwareengine.v1.Credentials) { + return mergeFrom((com.google.cloud.vmwareengine.v1.Credentials) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmwareengine.v1.Credentials other) { + if (other == com.google.cloud.vmwareengine.v1.Credentials.getDefaultInstance()) return this; + if (!other.getUsername().isEmpty()) { + username_ = other.username_; + onChanged(); + } + if (!other.getPassword().isEmpty()) { + password_ = other.password_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + username_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + password_ = input.readStringRequireUtf8(); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private java.lang.Object username_ = ""; + /** + * + * + *
+     * Initial username.
+     * 
+ * + * string username = 1; + * + * @return The username. + */ + public java.lang.String getUsername() { + java.lang.Object ref = username_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + username_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Initial username.
+     * 
+ * + * string username = 1; + * + * @return The bytes for username. + */ + public com.google.protobuf.ByteString getUsernameBytes() { + java.lang.Object ref = username_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + username_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Initial username.
+     * 
+ * + * string username = 1; + * + * @param value The username to set. + * @return This builder for chaining. + */ + public Builder setUsername(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + username_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Initial username.
+     * 
+ * + * string username = 1; + * + * @return This builder for chaining. + */ + public Builder clearUsername() { + + username_ = getDefaultInstance().getUsername(); + onChanged(); + return this; + } + /** + * + * + *
+     * Initial username.
+     * 
+ * + * string username = 1; + * + * @param value The bytes for username to set. + * @return This builder for chaining. + */ + public Builder setUsernameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + username_ = value; + onChanged(); + return this; + } + + private java.lang.Object password_ = ""; + /** + * + * + *
+     * Initial password.
+     * 
+ * + * string password = 2; + * + * @return The password. + */ + public java.lang.String getPassword() { + java.lang.Object ref = password_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + password_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Initial password.
+     * 
+ * + * string password = 2; + * + * @return The bytes for password. + */ + public com.google.protobuf.ByteString getPasswordBytes() { + java.lang.Object ref = password_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + password_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Initial password.
+     * 
+ * + * string password = 2; + * + * @param value The password to set. + * @return This builder for chaining. + */ + public Builder setPassword(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + password_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Initial password.
+     * 
+ * + * string password = 2; + * + * @return This builder for chaining. + */ + public Builder clearPassword() { + + password_ = getDefaultInstance().getPassword(); + onChanged(); + return this; + } + /** + * + * + *
+     * Initial password.
+     * 
+ * + * string password = 2; + * + * @param value The bytes for password to set. + * @return This builder for chaining. + */ + public Builder setPasswordBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + password_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.vmwareengine.v1.Credentials) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmwareengine.v1.Credentials) + private static final com.google.cloud.vmwareengine.v1.Credentials DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmwareengine.v1.Credentials(); + } + + public static com.google.cloud.vmwareengine.v1.Credentials getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Credentials 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.vmwareengine.v1.Credentials getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/CredentialsOrBuilder.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/CredentialsOrBuilder.java new file mode 100644 index 000000000000..1cfa601bfdbd --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/CredentialsOrBuilder.java @@ -0,0 +1,75 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmwareengine/v1/vmwareengine.proto + +package com.google.cloud.vmwareengine.v1; + +public interface CredentialsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmwareengine.v1.Credentials) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Initial username.
+   * 
+ * + * string username = 1; + * + * @return The username. + */ + java.lang.String getUsername(); + /** + * + * + *
+   * Initial username.
+   * 
+ * + * string username = 1; + * + * @return The bytes for username. + */ + com.google.protobuf.ByteString getUsernameBytes(); + + /** + * + * + *
+   * Initial password.
+   * 
+ * + * string password = 2; + * + * @return The password. + */ + java.lang.String getPassword(); + /** + * + * + *
+   * Initial password.
+   * 
+ * + * string password = 2; + * + * @return The bytes for password. + */ + com.google.protobuf.ByteString getPasswordBytes(); +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/DeleteClusterRequest.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/DeleteClusterRequest.java new file mode 100644 index 000000000000..30f48e1a2adc --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/DeleteClusterRequest.java @@ -0,0 +1,843 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmwareengine/v1/vmwareengine.proto + +package com.google.cloud.vmwareengine.v1; + +/** + * + * + *
+ * Request message for [VmwareEngine.DeleteCluster][google.cloud.vmwareengine.v1.VmwareEngine.DeleteCluster]
+ * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.DeleteClusterRequest} + */ +public final class DeleteClusterRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmwareengine.v1.DeleteClusterRequest) + DeleteClusterRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteClusterRequest.newBuilder() to construct. + private DeleteClusterRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteClusterRequest() { + name_ = ""; + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteClusterRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_DeleteClusterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_DeleteClusterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.DeleteClusterRequest.class, + com.google.cloud.vmwareengine.v1.DeleteClusterRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required. The resource name of the cluster to delete.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud/clusters/my-cluster`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The resource name of the cluster to delete.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud/clusters/my-cluster`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REQUEST_ID_FIELD_NUMBER = 2; + private volatile java.lang.Object requestId_; + /** + * + * + *
+   * Optional. The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, requestId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.vmwareengine.v1.DeleteClusterRequest)) { + return super.equals(obj); + } + com.google.cloud.vmwareengine.v1.DeleteClusterRequest other = + (com.google.cloud.vmwareengine.v1.DeleteClusterRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmwareengine.v1.DeleteClusterRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.DeleteClusterRequest 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.vmwareengine.v1.DeleteClusterRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.DeleteClusterRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.DeleteClusterRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.DeleteClusterRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.DeleteClusterRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.DeleteClusterRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.DeleteClusterRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.DeleteClusterRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.DeleteClusterRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.DeleteClusterRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.vmwareengine.v1.DeleteClusterRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for [VmwareEngine.DeleteCluster][google.cloud.vmwareengine.v1.VmwareEngine.DeleteCluster]
+   * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.DeleteClusterRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmwareengine.v1.DeleteClusterRequest) + com.google.cloud.vmwareengine.v1.DeleteClusterRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_DeleteClusterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_DeleteClusterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.DeleteClusterRequest.class, + com.google.cloud.vmwareengine.v1.DeleteClusterRequest.Builder.class); + } + + // Construct using com.google.cloud.vmwareengine.v1.DeleteClusterRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + requestId_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_DeleteClusterRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.DeleteClusterRequest getDefaultInstanceForType() { + return com.google.cloud.vmwareengine.v1.DeleteClusterRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.DeleteClusterRequest build() { + com.google.cloud.vmwareengine.v1.DeleteClusterRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.DeleteClusterRequest buildPartial() { + com.google.cloud.vmwareengine.v1.DeleteClusterRequest result = + new com.google.cloud.vmwareengine.v1.DeleteClusterRequest(this); + result.name_ = name_; + result.requestId_ = requestId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.vmwareengine.v1.DeleteClusterRequest) { + return mergeFrom((com.google.cloud.vmwareengine.v1.DeleteClusterRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmwareengine.v1.DeleteClusterRequest other) { + if (other == com.google.cloud.vmwareengine.v1.DeleteClusterRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + requestId_ = input.readStringRequireUtf8(); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The resource name of the cluster to delete.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud/clusters/my-cluster`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the cluster to delete.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud/clusters/my-cluster`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the cluster to delete.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud/clusters/my-cluster`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the cluster to delete.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud/clusters/my-cluster`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the cluster to delete.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud/clusters/my-cluster`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.lang.Object requestId_ = ""; + /** + * + * + *
+     * Optional. The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + requestId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + + requestId_ = getDefaultInstance().getRequestId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + requestId_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.vmwareengine.v1.DeleteClusterRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmwareengine.v1.DeleteClusterRequest) + private static final com.google.cloud.vmwareengine.v1.DeleteClusterRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmwareengine.v1.DeleteClusterRequest(); + } + + public static com.google.cloud.vmwareengine.v1.DeleteClusterRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteClusterRequest 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.vmwareengine.v1.DeleteClusterRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/DeleteClusterRequestOrBuilder.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/DeleteClusterRequestOrBuilder.java new file mode 100644 index 000000000000..b78f4c0487e0 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/DeleteClusterRequestOrBuilder.java @@ -0,0 +1,89 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmwareengine/v1/vmwareengine.proto + +package com.google.cloud.vmwareengine.v1; + +public interface DeleteClusterRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmwareengine.v1.DeleteClusterRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the cluster to delete.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud/clusters/my-cluster`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The resource name of the cluster to delete.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud/clusters/my-cluster`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + java.lang.String getRequestId(); + /** + * + * + *
+   * Optional. The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/DeleteNetworkPolicyRequest.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/DeleteNetworkPolicyRequest.java new file mode 100644 index 000000000000..5f609ad793b7 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/DeleteNetworkPolicyRequest.java @@ -0,0 +1,913 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmwareengine/v1/vmwareengine.proto + +package com.google.cloud.vmwareengine.v1; + +/** + * + * + *
+ * Request message for [VmwareEngine.DeleteNetworkPolicy][google.cloud.vmwareengine.v1.VmwareEngine.DeleteNetworkPolicy]
+ * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest} + */ +public final class DeleteNetworkPolicyRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest) + DeleteNetworkPolicyRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteNetworkPolicyRequest.newBuilder() to construct. + private DeleteNetworkPolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteNetworkPolicyRequest() { + name_ = ""; + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteNetworkPolicyRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_DeleteNetworkPolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_DeleteNetworkPolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest.class, + com.google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required. The resource name of the network policy to delete.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-project/locations/us-central1/networkPolicies/my-network-policy`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The resource name of the network policy to delete.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-project/locations/us-central1/networkPolicies/my-network-policy`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REQUEST_ID_FIELD_NUMBER = 2; + private volatile java.lang.Object requestId_; + /** + * + * + *
+   * Optional. A request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server guarantees that a
+   * request doesn't result in creation of duplicate commitments for at least 60
+   * minutes.
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. A request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server guarantees that a
+   * request doesn't result in creation of duplicate commitments for at least 60
+   * minutes.
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, requestId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest)) { + return super.equals(obj); + } + com.google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest other = + (com.google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest 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.vmwareengine.v1.DeleteNetworkPolicyRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for [VmwareEngine.DeleteNetworkPolicy][google.cloud.vmwareengine.v1.VmwareEngine.DeleteNetworkPolicy]
+   * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest) + com.google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_DeleteNetworkPolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_DeleteNetworkPolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest.class, + com.google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest.Builder.class); + } + + // Construct using com.google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + requestId_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_DeleteNetworkPolicyRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest getDefaultInstanceForType() { + return com.google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest build() { + com.google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest buildPartial() { + com.google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest result = + new com.google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest(this); + result.name_ = name_; + result.requestId_ = requestId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest) { + return mergeFrom((com.google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest other) { + if (other == com.google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + requestId_ = input.readStringRequireUtf8(); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The resource name of the network policy to delete.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-central1/networkPolicies/my-network-policy`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the network policy to delete.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-central1/networkPolicies/my-network-policy`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the network policy to delete.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-central1/networkPolicies/my-network-policy`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the network policy to delete.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-central1/networkPolicies/my-network-policy`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the network policy to delete.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-central1/networkPolicies/my-network-policy`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.lang.Object requestId_ = ""; + /** + * + * + *
+     * Optional. A request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server guarantees that a
+     * request doesn't result in creation of duplicate commitments for at least 60
+     * minutes.
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. A request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server guarantees that a
+     * request doesn't result in creation of duplicate commitments for at least 60
+     * minutes.
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. A request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server guarantees that a
+     * request doesn't result in creation of duplicate commitments for at least 60
+     * minutes.
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + requestId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server guarantees that a
+     * request doesn't result in creation of duplicate commitments for at least 60
+     * minutes.
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + + requestId_ = getDefaultInstance().getRequestId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server guarantees that a
+     * request doesn't result in creation of duplicate commitments for at least 60
+     * minutes.
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + requestId_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest) + private static final com.google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest(); + } + + public static com.google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteNetworkPolicyRequest 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.vmwareengine.v1.DeleteNetworkPolicyRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/DeleteNetworkPolicyRequestOrBuilder.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/DeleteNetworkPolicyRequestOrBuilder.java new file mode 100644 index 000000000000..d7b3b4eee799 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/DeleteNetworkPolicyRequestOrBuilder.java @@ -0,0 +1,109 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmwareengine/v1/vmwareengine.proto + +package com.google.cloud.vmwareengine.v1; + +public interface DeleteNetworkPolicyRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the network policy to delete.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-project/locations/us-central1/networkPolicies/my-network-policy`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The resource name of the network policy to delete.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-project/locations/us-central1/networkPolicies/my-network-policy`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. A request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server guarantees that a
+   * request doesn't result in creation of duplicate commitments for at least 60
+   * minutes.
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + java.lang.String getRequestId(); + /** + * + * + *
+   * Optional. A request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server guarantees that a
+   * request doesn't result in creation of duplicate commitments for at least 60
+   * minutes.
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/DeletePrivateCloudRequest.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/DeletePrivateCloudRequest.java new file mode 100644 index 000000000000..b0835ddf3e62 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/DeletePrivateCloudRequest.java @@ -0,0 +1,1123 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmwareengine/v1/vmwareengine.proto + +package com.google.cloud.vmwareengine.v1; + +/** + * + * + *
+ * Request message for [VmwareEngine.DeletePrivateCloud][google.cloud.vmwareengine.v1.VmwareEngine.DeletePrivateCloud]
+ * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.DeletePrivateCloudRequest} + */ +public final class DeletePrivateCloudRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmwareengine.v1.DeletePrivateCloudRequest) + DeletePrivateCloudRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeletePrivateCloudRequest.newBuilder() to construct. + private DeletePrivateCloudRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeletePrivateCloudRequest() { + name_ = ""; + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeletePrivateCloudRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_DeletePrivateCloudRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_DeletePrivateCloudRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.DeletePrivateCloudRequest.class, + com.google.cloud.vmwareengine.v1.DeletePrivateCloudRequest.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required. The resource name of the private cloud to delete.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The resource name of the private cloud to delete.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REQUEST_ID_FIELD_NUMBER = 2; + private volatile java.lang.Object requestId_; + /** + * + * + *
+   * Optional. The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FORCE_FIELD_NUMBER = 3; + private boolean force_; + /** + * + * + *
+   * Optional. If set to true, cascade delete is enabled and all children of this private
+   * cloud resource are also deleted. When this flag is set to false, the
+   * private cloud will not be deleted if there are any children other than the
+   * management cluster. The management cluster is always deleted.
+   * 
+ * + * bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The force. + */ + @java.lang.Override + public boolean getForce() { + return force_; + } + + public static final int DELAY_HOURS_FIELD_NUMBER = 4; + private int delayHours_; + /** + * + * + *
+   * Optional. Time delay of the deletion specified in hours. The default value
+   * is `3`. Specifying a non-zero value for this field changes the value of
+   * `PrivateCloud.state` to `DELETED` and sets `expire_time` to the planned
+   * deletion time. Deletion can be cancelled before `expire_time` elapses using
+   * [VmwareEngine.UndeletePrivateCloud][google.cloud.vmwareengine.v1.VmwareEngine.UndeletePrivateCloud]. Specifying a value of `0` for
+   * this field instead begins the deletion process and ceases billing
+   * immediately. During the final deletion process, the value of
+   * `PrivateCloud.state` becomes `PURGING`.
+   * 
+ * + * optional int32 delay_hours = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the delayHours field is set. + */ + @java.lang.Override + public boolean hasDelayHours() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Optional. Time delay of the deletion specified in hours. The default value
+   * is `3`. Specifying a non-zero value for this field changes the value of
+   * `PrivateCloud.state` to `DELETED` and sets `expire_time` to the planned
+   * deletion time. Deletion can be cancelled before `expire_time` elapses using
+   * [VmwareEngine.UndeletePrivateCloud][google.cloud.vmwareengine.v1.VmwareEngine.UndeletePrivateCloud]. Specifying a value of `0` for
+   * this field instead begins the deletion process and ceases billing
+   * immediately. During the final deletion process, the value of
+   * `PrivateCloud.state` becomes `PURGING`.
+   * 
+ * + * optional int32 delay_hours = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The delayHours. + */ + @java.lang.Override + public int getDelayHours() { + return delayHours_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, requestId_); + } + if (force_ != false) { + output.writeBool(3, force_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeInt32(4, delayHours_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, requestId_); + } + if (force_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, force_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, delayHours_); + } + 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.vmwareengine.v1.DeletePrivateCloudRequest)) { + return super.equals(obj); + } + com.google.cloud.vmwareengine.v1.DeletePrivateCloudRequest other = + (com.google.cloud.vmwareengine.v1.DeletePrivateCloudRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; + if (getForce() != other.getForce()) return false; + if (hasDelayHours() != other.hasDelayHours()) return false; + if (hasDelayHours()) { + if (getDelayHours() != other.getDelayHours()) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (37 * hash) + FORCE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getForce()); + if (hasDelayHours()) { + hash = (37 * hash) + DELAY_HOURS_FIELD_NUMBER; + hash = (53 * hash) + getDelayHours(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmwareengine.v1.DeletePrivateCloudRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.DeletePrivateCloudRequest 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.vmwareengine.v1.DeletePrivateCloudRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.DeletePrivateCloudRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.DeletePrivateCloudRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.DeletePrivateCloudRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.DeletePrivateCloudRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.DeletePrivateCloudRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.DeletePrivateCloudRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.DeletePrivateCloudRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.DeletePrivateCloudRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.DeletePrivateCloudRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.vmwareengine.v1.DeletePrivateCloudRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for [VmwareEngine.DeletePrivateCloud][google.cloud.vmwareengine.v1.VmwareEngine.DeletePrivateCloud]
+   * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.DeletePrivateCloudRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmwareengine.v1.DeletePrivateCloudRequest) + com.google.cloud.vmwareengine.v1.DeletePrivateCloudRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_DeletePrivateCloudRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_DeletePrivateCloudRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.DeletePrivateCloudRequest.class, + com.google.cloud.vmwareengine.v1.DeletePrivateCloudRequest.Builder.class); + } + + // Construct using com.google.cloud.vmwareengine.v1.DeletePrivateCloudRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + requestId_ = ""; + + force_ = false; + + delayHours_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_DeletePrivateCloudRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.DeletePrivateCloudRequest getDefaultInstanceForType() { + return com.google.cloud.vmwareengine.v1.DeletePrivateCloudRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.DeletePrivateCloudRequest build() { + com.google.cloud.vmwareengine.v1.DeletePrivateCloudRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.DeletePrivateCloudRequest buildPartial() { + com.google.cloud.vmwareengine.v1.DeletePrivateCloudRequest result = + new com.google.cloud.vmwareengine.v1.DeletePrivateCloudRequest(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.name_ = name_; + result.requestId_ = requestId_; + result.force_ = force_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.delayHours_ = delayHours_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.vmwareengine.v1.DeletePrivateCloudRequest) { + return mergeFrom((com.google.cloud.vmwareengine.v1.DeletePrivateCloudRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmwareengine.v1.DeletePrivateCloudRequest other) { + if (other == com.google.cloud.vmwareengine.v1.DeletePrivateCloudRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + onChanged(); + } + if (other.getForce() != false) { + setForce(other.getForce()); + } + if (other.hasDelayHours()) { + setDelayHours(other.getDelayHours()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + requestId_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 24: + { + force_ = input.readBool(); + + break; + } // case 24 + case 32: + { + delayHours_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 32 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The resource name of the private cloud to delete.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the private cloud to delete.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the private cloud to delete.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the private cloud to delete.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the private cloud to delete.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.lang.Object requestId_ = ""; + /** + * + * + *
+     * Optional. The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + requestId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + + requestId_ = getDefaultInstance().getRequestId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + requestId_ = value; + onChanged(); + return this; + } + + private boolean force_; + /** + * + * + *
+     * Optional. If set to true, cascade delete is enabled and all children of this private
+     * cloud resource are also deleted. When this flag is set to false, the
+     * private cloud will not be deleted if there are any children other than the
+     * management cluster. The management cluster is always deleted.
+     * 
+ * + * bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The force. + */ + @java.lang.Override + public boolean getForce() { + return force_; + } + /** + * + * + *
+     * Optional. If set to true, cascade delete is enabled and all children of this private
+     * cloud resource are also deleted. When this flag is set to false, the
+     * private cloud will not be deleted if there are any children other than the
+     * management cluster. The management cluster is always deleted.
+     * 
+ * + * bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The force to set. + * @return This builder for chaining. + */ + public Builder setForce(boolean value) { + + force_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If set to true, cascade delete is enabled and all children of this private
+     * cloud resource are also deleted. When this flag is set to false, the
+     * private cloud will not be deleted if there are any children other than the
+     * management cluster. The management cluster is always deleted.
+     * 
+ * + * bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearForce() { + + force_ = false; + onChanged(); + return this; + } + + private int delayHours_; + /** + * + * + *
+     * Optional. Time delay of the deletion specified in hours. The default value
+     * is `3`. Specifying a non-zero value for this field changes the value of
+     * `PrivateCloud.state` to `DELETED` and sets `expire_time` to the planned
+     * deletion time. Deletion can be cancelled before `expire_time` elapses using
+     * [VmwareEngine.UndeletePrivateCloud][google.cloud.vmwareengine.v1.VmwareEngine.UndeletePrivateCloud]. Specifying a value of `0` for
+     * this field instead begins the deletion process and ceases billing
+     * immediately. During the final deletion process, the value of
+     * `PrivateCloud.state` becomes `PURGING`.
+     * 
+ * + * optional int32 delay_hours = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the delayHours field is set. + */ + @java.lang.Override + public boolean hasDelayHours() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Optional. Time delay of the deletion specified in hours. The default value
+     * is `3`. Specifying a non-zero value for this field changes the value of
+     * `PrivateCloud.state` to `DELETED` and sets `expire_time` to the planned
+     * deletion time. Deletion can be cancelled before `expire_time` elapses using
+     * [VmwareEngine.UndeletePrivateCloud][google.cloud.vmwareengine.v1.VmwareEngine.UndeletePrivateCloud]. Specifying a value of `0` for
+     * this field instead begins the deletion process and ceases billing
+     * immediately. During the final deletion process, the value of
+     * `PrivateCloud.state` becomes `PURGING`.
+     * 
+ * + * optional int32 delay_hours = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The delayHours. + */ + @java.lang.Override + public int getDelayHours() { + return delayHours_; + } + /** + * + * + *
+     * Optional. Time delay of the deletion specified in hours. The default value
+     * is `3`. Specifying a non-zero value for this field changes the value of
+     * `PrivateCloud.state` to `DELETED` and sets `expire_time` to the planned
+     * deletion time. Deletion can be cancelled before `expire_time` elapses using
+     * [VmwareEngine.UndeletePrivateCloud][google.cloud.vmwareengine.v1.VmwareEngine.UndeletePrivateCloud]. Specifying a value of `0` for
+     * this field instead begins the deletion process and ceases billing
+     * immediately. During the final deletion process, the value of
+     * `PrivateCloud.state` becomes `PURGING`.
+     * 
+ * + * optional int32 delay_hours = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The delayHours to set. + * @return This builder for chaining. + */ + public Builder setDelayHours(int value) { + bitField0_ |= 0x00000001; + delayHours_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Time delay of the deletion specified in hours. The default value
+     * is `3`. Specifying a non-zero value for this field changes the value of
+     * `PrivateCloud.state` to `DELETED` and sets `expire_time` to the planned
+     * deletion time. Deletion can be cancelled before `expire_time` elapses using
+     * [VmwareEngine.UndeletePrivateCloud][google.cloud.vmwareengine.v1.VmwareEngine.UndeletePrivateCloud]. Specifying a value of `0` for
+     * this field instead begins the deletion process and ceases billing
+     * immediately. During the final deletion process, the value of
+     * `PrivateCloud.state` becomes `PURGING`.
+     * 
+ * + * optional int32 delay_hours = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDelayHours() { + bitField0_ = (bitField0_ & ~0x00000001); + delayHours_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.vmwareengine.v1.DeletePrivateCloudRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmwareengine.v1.DeletePrivateCloudRequest) + private static final com.google.cloud.vmwareengine.v1.DeletePrivateCloudRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmwareengine.v1.DeletePrivateCloudRequest(); + } + + public static com.google.cloud.vmwareengine.v1.DeletePrivateCloudRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeletePrivateCloudRequest 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.vmwareengine.v1.DeletePrivateCloudRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/DeletePrivateCloudRequestOrBuilder.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/DeletePrivateCloudRequestOrBuilder.java new file mode 100644 index 000000000000..ebbc1f649014 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/DeletePrivateCloudRequestOrBuilder.java @@ -0,0 +1,144 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmwareengine/v1/vmwareengine.proto + +package com.google.cloud.vmwareengine.v1; + +public interface DeletePrivateCloudRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmwareengine.v1.DeletePrivateCloudRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the private cloud to delete.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The resource name of the private cloud to delete.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + java.lang.String getRequestId(); + /** + * + * + *
+   * Optional. The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); + + /** + * + * + *
+   * Optional. If set to true, cascade delete is enabled and all children of this private
+   * cloud resource are also deleted. When this flag is set to false, the
+   * private cloud will not be deleted if there are any children other than the
+   * management cluster. The management cluster is always deleted.
+   * 
+ * + * bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The force. + */ + boolean getForce(); + + /** + * + * + *
+   * Optional. Time delay of the deletion specified in hours. The default value
+   * is `3`. Specifying a non-zero value for this field changes the value of
+   * `PrivateCloud.state` to `DELETED` and sets `expire_time` to the planned
+   * deletion time. Deletion can be cancelled before `expire_time` elapses using
+   * [VmwareEngine.UndeletePrivateCloud][google.cloud.vmwareengine.v1.VmwareEngine.UndeletePrivateCloud]. Specifying a value of `0` for
+   * this field instead begins the deletion process and ceases billing
+   * immediately. During the final deletion process, the value of
+   * `PrivateCloud.state` becomes `PURGING`.
+   * 
+ * + * optional int32 delay_hours = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the delayHours field is set. + */ + boolean hasDelayHours(); + /** + * + * + *
+   * Optional. Time delay of the deletion specified in hours. The default value
+   * is `3`. Specifying a non-zero value for this field changes the value of
+   * `PrivateCloud.state` to `DELETED` and sets `expire_time` to the planned
+   * deletion time. Deletion can be cancelled before `expire_time` elapses using
+   * [VmwareEngine.UndeletePrivateCloud][google.cloud.vmwareengine.v1.VmwareEngine.UndeletePrivateCloud]. Specifying a value of `0` for
+   * this field instead begins the deletion process and ceases billing
+   * immediately. During the final deletion process, the value of
+   * `PrivateCloud.state` becomes `PURGING`.
+   * 
+ * + * optional int32 delay_hours = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The delayHours. + */ + int getDelayHours(); +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/DeleteVmwareEngineNetworkRequest.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/DeleteVmwareEngineNetworkRequest.java new file mode 100644 index 000000000000..185f04f525dc --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/DeleteVmwareEngineNetworkRequest.java @@ -0,0 +1,1121 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmwareengine/v1/vmwareengine.proto + +package com.google.cloud.vmwareengine.v1; + +/** + * + * + *
+ * Request message for [VmwareEngine.DeleteVmwareEngineNetwork][google.cloud.vmwareengine.v1.VmwareEngine.DeleteVmwareEngineNetwork]
+ * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest} + */ +public final class DeleteVmwareEngineNetworkRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest) + DeleteVmwareEngineNetworkRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteVmwareEngineNetworkRequest.newBuilder() to construct. + private DeleteVmwareEngineNetworkRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteVmwareEngineNetworkRequest() { + name_ = ""; + requestId_ = ""; + etag_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteVmwareEngineNetworkRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_DeleteVmwareEngineNetworkRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_DeleteVmwareEngineNetworkRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest.class, + com.google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required. The resource name of the VMware Engine network to be deleted.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-project/locations/global/vmwareEngineNetworks/my-network`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The resource name of the VMware Engine network to be deleted.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-project/locations/global/vmwareEngineNetworks/my-network`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REQUEST_ID_FIELD_NUMBER = 2; + private volatile java.lang.Object requestId_; + /** + * + * + *
+   * Optional. A request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server guarantees that a
+   * request doesn't result in creation of duplicate commitments for at least 60
+   * minutes.
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. A request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server guarantees that a
+   * request doesn't result in creation of duplicate commitments for at least 60
+   * minutes.
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ETAG_FIELD_NUMBER = 3; + private volatile java.lang.Object etag_; + /** + * + * + *
+   * Optional. Checksum used to ensure that the user-provided value is up to date before
+   * the server processes the request. The server compares provided checksum
+   * with the current checksum of the resource. If the user-provided value is
+   * out of date, this request returns an `ABORTED` error.
+   * 
+ * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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. Checksum used to ensure that the user-provided value is up to date before
+   * the server processes the request. The server compares provided checksum
+   * with the current checksum of the resource. If the user-provided value is
+   * out of date, this request returns an `ABORTED` error.
+   * 
+ * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, requestId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, etag_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, requestId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, etag_); + } + 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.vmwareengine.v1.DeleteVmwareEngineNetworkRequest)) { + return super.equals(obj); + } + com.google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest other = + (com.google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; + if (!getEtag().equals(other.getEtag())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest 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.vmwareengine.v1.DeleteVmwareEngineNetworkRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for [VmwareEngine.DeleteVmwareEngineNetwork][google.cloud.vmwareengine.v1.VmwareEngine.DeleteVmwareEngineNetwork]
+   * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest) + com.google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_DeleteVmwareEngineNetworkRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_DeleteVmwareEngineNetworkRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest.class, + com.google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest.Builder.class); + } + + // Construct using + // com.google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + requestId_ = ""; + + etag_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_DeleteVmwareEngineNetworkRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest + getDefaultInstanceForType() { + return com.google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest build() { + com.google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest buildPartial() { + com.google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest result = + new com.google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest(this); + result.name_ = name_; + result.requestId_ = requestId_; + result.etag_ = etag_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest) { + return mergeFrom((com.google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest other) { + if (other + == com.google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + onChanged(); + } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + requestId_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + etag_ = input.readStringRequireUtf8(); + + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The resource name of the VMware Engine network to be deleted.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/global/vmwareEngineNetworks/my-network`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the VMware Engine network to be deleted.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/global/vmwareEngineNetworks/my-network`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the VMware Engine network to be deleted.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/global/vmwareEngineNetworks/my-network`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the VMware Engine network to be deleted.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/global/vmwareEngineNetworks/my-network`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the VMware Engine network to be deleted.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/global/vmwareEngineNetworks/my-network`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.lang.Object requestId_ = ""; + /** + * + * + *
+     * Optional. A request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server guarantees that a
+     * request doesn't result in creation of duplicate commitments for at least 60
+     * minutes.
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. A request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server guarantees that a
+     * request doesn't result in creation of duplicate commitments for at least 60
+     * minutes.
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. A request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server guarantees that a
+     * request doesn't result in creation of duplicate commitments for at least 60
+     * minutes.
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + requestId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server guarantees that a
+     * request doesn't result in creation of duplicate commitments for at least 60
+     * minutes.
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + + requestId_ = getDefaultInstance().getRequestId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server guarantees that a
+     * request doesn't result in creation of duplicate commitments for at least 60
+     * minutes.
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + requestId_ = value; + onChanged(); + return this; + } + + private java.lang.Object etag_ = ""; + /** + * + * + *
+     * Optional. Checksum used to ensure that the user-provided value is up to date before
+     * the server processes the request. The server compares provided checksum
+     * with the current checksum of the resource. If the user-provided value is
+     * out of date, this request returns an `ABORTED` error.
+     * 
+ * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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. Checksum used to ensure that the user-provided value is up to date before
+     * the server processes the request. The server compares provided checksum
+     * with the current checksum of the resource. If the user-provided value is
+     * out of date, this request returns an `ABORTED` error.
+     * 
+ * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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. Checksum used to ensure that the user-provided value is up to date before
+     * the server processes the request. The server compares provided checksum
+     * with the current checksum of the resource. If the user-provided value is
+     * out of date, this request returns an `ABORTED` error.
+     * 
+ * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Checksum used to ensure that the user-provided value is up to date before
+     * the server processes the request. The server compares provided checksum
+     * with the current checksum of the resource. If the user-provided value is
+     * out of date, this request returns an `ABORTED` error.
+     * 
+ * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEtag() { + + etag_ = getDefaultInstance().getEtag(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Checksum used to ensure that the user-provided value is up to date before
+     * the server processes the request. The server compares provided checksum
+     * with the current checksum of the resource. If the user-provided value is
+     * out of date, this request returns an `ABORTED` error.
+     * 
+ * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest) + private static final com.google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest(); + } + + public static com.google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteVmwareEngineNetworkRequest 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.vmwareengine.v1.DeleteVmwareEngineNetworkRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/DeleteVmwareEngineNetworkRequestOrBuilder.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/DeleteVmwareEngineNetworkRequestOrBuilder.java new file mode 100644 index 000000000000..3e575bf74b17 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/DeleteVmwareEngineNetworkRequestOrBuilder.java @@ -0,0 +1,140 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmwareengine/v1/vmwareengine.proto + +package com.google.cloud.vmwareengine.v1; + +public interface DeleteVmwareEngineNetworkRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the VMware Engine network to be deleted.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-project/locations/global/vmwareEngineNetworks/my-network`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The resource name of the VMware Engine network to be deleted.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-project/locations/global/vmwareEngineNetworks/my-network`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. A request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server guarantees that a
+   * request doesn't result in creation of duplicate commitments for at least 60
+   * minutes.
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + java.lang.String getRequestId(); + /** + * + * + *
+   * Optional. A request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server guarantees that a
+   * request doesn't result in creation of duplicate commitments for at least 60
+   * minutes.
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); + + /** + * + * + *
+   * Optional. Checksum used to ensure that the user-provided value is up to date before
+   * the server processes the request. The server compares provided checksum
+   * with the current checksum of the resource. If the user-provided value is
+   * out of date, this request returns an `ABORTED` error.
+   * 
+ * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The etag. + */ + java.lang.String getEtag(); + /** + * + * + *
+   * Optional. Checksum used to ensure that the user-provided value is up to date before
+   * the server processes the request. The server compares provided checksum
+   * with the current checksum of the resource. If the user-provided value is
+   * out of date, this request returns an `ABORTED` error.
+   * 
+ * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for etag. + */ + com.google.protobuf.ByteString getEtagBytes(); +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/GetClusterRequest.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/GetClusterRequest.java new file mode 100644 index 000000000000..68a5bdd5ba20 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/GetClusterRequest.java @@ -0,0 +1,657 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmwareengine/v1/vmwareengine.proto + +package com.google.cloud.vmwareengine.v1; + +/** + * + * + *
+ * Request message for [VmwareEngine.GetCluster][google.cloud.vmwareengine.v1.VmwareEngine.GetCluster]
+ * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.GetClusterRequest} + */ +public final class GetClusterRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmwareengine.v1.GetClusterRequest) + GetClusterRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetClusterRequest.newBuilder() to construct. + private GetClusterRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetClusterRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetClusterRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_GetClusterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_GetClusterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.GetClusterRequest.class, + com.google.cloud.vmwareengine.v1.GetClusterRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required. The cluster resource name to retrieve.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud/clusters/my-cluster`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The cluster resource name to retrieve.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud/clusters/my-cluster`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.vmwareengine.v1.GetClusterRequest)) { + return super.equals(obj); + } + com.google.cloud.vmwareengine.v1.GetClusterRequest other = + (com.google.cloud.vmwareengine.v1.GetClusterRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmwareengine.v1.GetClusterRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.GetClusterRequest 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.vmwareengine.v1.GetClusterRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.GetClusterRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.GetClusterRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.GetClusterRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.GetClusterRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.GetClusterRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.GetClusterRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.GetClusterRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.GetClusterRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.GetClusterRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.vmwareengine.v1.GetClusterRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for [VmwareEngine.GetCluster][google.cloud.vmwareengine.v1.VmwareEngine.GetCluster]
+   * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.GetClusterRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmwareengine.v1.GetClusterRequest) + com.google.cloud.vmwareengine.v1.GetClusterRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_GetClusterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_GetClusterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.GetClusterRequest.class, + com.google.cloud.vmwareengine.v1.GetClusterRequest.Builder.class); + } + + // Construct using com.google.cloud.vmwareengine.v1.GetClusterRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_GetClusterRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.GetClusterRequest getDefaultInstanceForType() { + return com.google.cloud.vmwareengine.v1.GetClusterRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.GetClusterRequest build() { + com.google.cloud.vmwareengine.v1.GetClusterRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.GetClusterRequest buildPartial() { + com.google.cloud.vmwareengine.v1.GetClusterRequest result = + new com.google.cloud.vmwareengine.v1.GetClusterRequest(this); + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.vmwareengine.v1.GetClusterRequest) { + return mergeFrom((com.google.cloud.vmwareengine.v1.GetClusterRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmwareengine.v1.GetClusterRequest other) { + if (other == com.google.cloud.vmwareengine.v1.GetClusterRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The cluster resource name to retrieve.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud/clusters/my-cluster`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The cluster resource name to retrieve.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud/clusters/my-cluster`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The cluster resource name to retrieve.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud/clusters/my-cluster`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The cluster resource name to retrieve.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud/clusters/my-cluster`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The cluster resource name to retrieve.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud/clusters/my-cluster`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.vmwareengine.v1.GetClusterRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmwareengine.v1.GetClusterRequest) + private static final com.google.cloud.vmwareengine.v1.GetClusterRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmwareengine.v1.GetClusterRequest(); + } + + public static com.google.cloud.vmwareengine.v1.GetClusterRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetClusterRequest 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.vmwareengine.v1.GetClusterRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/GetClusterRequestOrBuilder.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/GetClusterRequestOrBuilder.java new file mode 100644 index 000000000000..6bf9e41eda2a --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/GetClusterRequestOrBuilder.java @@ -0,0 +1,62 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmwareengine/v1/vmwareengine.proto + +package com.google.cloud.vmwareengine.v1; + +public interface GetClusterRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmwareengine.v1.GetClusterRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The cluster resource name to retrieve.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud/clusters/my-cluster`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The cluster resource name to retrieve.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud/clusters/my-cluster`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/GetHcxActivationKeyRequest.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/GetHcxActivationKeyRequest.java new file mode 100644 index 000000000000..555f2bec8ac1 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/GetHcxActivationKeyRequest.java @@ -0,0 +1,658 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmwareengine/v1/vmwareengine.proto + +package com.google.cloud.vmwareengine.v1; + +/** + * + * + *
+ * Request message for [VmwareEngine.GetHcxActivationKeys][]
+ * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest} + */ +public final class GetHcxActivationKeyRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest) + GetHcxActivationKeyRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetHcxActivationKeyRequest.newBuilder() to construct. + private GetHcxActivationKeyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetHcxActivationKeyRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetHcxActivationKeyRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_GetHcxActivationKeyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_GetHcxActivationKeyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest.class, + com.google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required. The resource name of the HCX activation key to retrieve.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-project/locations/us-west1/privateClouds/my-cloud/hcxActivationKeys/my-key`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The resource name of the HCX activation key to retrieve.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-project/locations/us-west1/privateClouds/my-cloud/hcxActivationKeys/my-key`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest)) { + return super.equals(obj); + } + com.google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest other = + (com.google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest 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.vmwareengine.v1.GetHcxActivationKeyRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for [VmwareEngine.GetHcxActivationKeys][]
+   * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest) + com.google.cloud.vmwareengine.v1.GetHcxActivationKeyRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_GetHcxActivationKeyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_GetHcxActivationKeyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest.class, + com.google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest.Builder.class); + } + + // Construct using com.google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_GetHcxActivationKeyRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest getDefaultInstanceForType() { + return com.google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest build() { + com.google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest buildPartial() { + com.google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest result = + new com.google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest(this); + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest) { + return mergeFrom((com.google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest other) { + if (other == com.google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The resource name of the HCX activation key to retrieve.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-west1/privateClouds/my-cloud/hcxActivationKeys/my-key`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the HCX activation key to retrieve.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-west1/privateClouds/my-cloud/hcxActivationKeys/my-key`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the HCX activation key to retrieve.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-west1/privateClouds/my-cloud/hcxActivationKeys/my-key`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the HCX activation key to retrieve.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-west1/privateClouds/my-cloud/hcxActivationKeys/my-key`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the HCX activation key to retrieve.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-west1/privateClouds/my-cloud/hcxActivationKeys/my-key`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest) + private static final com.google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest(); + } + + public static com.google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetHcxActivationKeyRequest 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.vmwareengine.v1.GetHcxActivationKeyRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/GetHcxActivationKeyRequestOrBuilder.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/GetHcxActivationKeyRequestOrBuilder.java new file mode 100644 index 000000000000..172c8a429225 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/GetHcxActivationKeyRequestOrBuilder.java @@ -0,0 +1,62 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmwareengine/v1/vmwareengine.proto + +package com.google.cloud.vmwareengine.v1; + +public interface GetHcxActivationKeyRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the HCX activation key to retrieve.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-project/locations/us-west1/privateClouds/my-cloud/hcxActivationKeys/my-key`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The resource name of the HCX activation key to retrieve.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-project/locations/us-west1/privateClouds/my-cloud/hcxActivationKeys/my-key`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/GetNetworkPolicyRequest.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/GetNetworkPolicyRequest.java new file mode 100644 index 000000000000..429d6c898a63 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/GetNetworkPolicyRequest.java @@ -0,0 +1,658 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmwareengine/v1/vmwareengine.proto + +package com.google.cloud.vmwareengine.v1; + +/** + * + * + *
+ * Request message for [VmwareEngine.GetNetworkPolicy][google.cloud.vmwareengine.v1.VmwareEngine.GetNetworkPolicy]
+ * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.GetNetworkPolicyRequest} + */ +public final class GetNetworkPolicyRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmwareengine.v1.GetNetworkPolicyRequest) + GetNetworkPolicyRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetNetworkPolicyRequest.newBuilder() to construct. + private GetNetworkPolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetNetworkPolicyRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetNetworkPolicyRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_GetNetworkPolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_GetNetworkPolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.GetNetworkPolicyRequest.class, + com.google.cloud.vmwareengine.v1.GetNetworkPolicyRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required. The resource name of the network policy to retrieve.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-project/locations/us-central1/networkPolicies/my-network-policy`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The resource name of the network policy to retrieve.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-project/locations/us-central1/networkPolicies/my-network-policy`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.vmwareengine.v1.GetNetworkPolicyRequest)) { + return super.equals(obj); + } + com.google.cloud.vmwareengine.v1.GetNetworkPolicyRequest other = + (com.google.cloud.vmwareengine.v1.GetNetworkPolicyRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmwareengine.v1.GetNetworkPolicyRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.GetNetworkPolicyRequest 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.vmwareengine.v1.GetNetworkPolicyRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.GetNetworkPolicyRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.GetNetworkPolicyRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.GetNetworkPolicyRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.GetNetworkPolicyRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.GetNetworkPolicyRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.GetNetworkPolicyRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.GetNetworkPolicyRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.GetNetworkPolicyRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.GetNetworkPolicyRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.vmwareengine.v1.GetNetworkPolicyRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for [VmwareEngine.GetNetworkPolicy][google.cloud.vmwareengine.v1.VmwareEngine.GetNetworkPolicy]
+   * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.GetNetworkPolicyRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmwareengine.v1.GetNetworkPolicyRequest) + com.google.cloud.vmwareengine.v1.GetNetworkPolicyRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_GetNetworkPolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_GetNetworkPolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.GetNetworkPolicyRequest.class, + com.google.cloud.vmwareengine.v1.GetNetworkPolicyRequest.Builder.class); + } + + // Construct using com.google.cloud.vmwareengine.v1.GetNetworkPolicyRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_GetNetworkPolicyRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.GetNetworkPolicyRequest getDefaultInstanceForType() { + return com.google.cloud.vmwareengine.v1.GetNetworkPolicyRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.GetNetworkPolicyRequest build() { + com.google.cloud.vmwareengine.v1.GetNetworkPolicyRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.GetNetworkPolicyRequest buildPartial() { + com.google.cloud.vmwareengine.v1.GetNetworkPolicyRequest result = + new com.google.cloud.vmwareengine.v1.GetNetworkPolicyRequest(this); + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.vmwareengine.v1.GetNetworkPolicyRequest) { + return mergeFrom((com.google.cloud.vmwareengine.v1.GetNetworkPolicyRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmwareengine.v1.GetNetworkPolicyRequest other) { + if (other == com.google.cloud.vmwareengine.v1.GetNetworkPolicyRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The resource name of the network policy to retrieve.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-central1/networkPolicies/my-network-policy`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the network policy to retrieve.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-central1/networkPolicies/my-network-policy`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the network policy to retrieve.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-central1/networkPolicies/my-network-policy`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the network policy to retrieve.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-central1/networkPolicies/my-network-policy`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the network policy to retrieve.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-central1/networkPolicies/my-network-policy`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.vmwareengine.v1.GetNetworkPolicyRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmwareengine.v1.GetNetworkPolicyRequest) + private static final com.google.cloud.vmwareengine.v1.GetNetworkPolicyRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmwareengine.v1.GetNetworkPolicyRequest(); + } + + public static com.google.cloud.vmwareengine.v1.GetNetworkPolicyRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetNetworkPolicyRequest 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.vmwareengine.v1.GetNetworkPolicyRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/GetNetworkPolicyRequestOrBuilder.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/GetNetworkPolicyRequestOrBuilder.java new file mode 100644 index 000000000000..e33536bc8f4f --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/GetNetworkPolicyRequestOrBuilder.java @@ -0,0 +1,62 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmwareengine/v1/vmwareengine.proto + +package com.google.cloud.vmwareengine.v1; + +public interface GetNetworkPolicyRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmwareengine.v1.GetNetworkPolicyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the network policy to retrieve.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-project/locations/us-central1/networkPolicies/my-network-policy`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The resource name of the network policy to retrieve.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-project/locations/us-central1/networkPolicies/my-network-policy`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/GetNodeTypeRequest.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/GetNodeTypeRequest.java new file mode 100644 index 000000000000..e4ebd9770e59 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/GetNodeTypeRequest.java @@ -0,0 +1,657 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmwareengine/v1/vmwareengine.proto + +package com.google.cloud.vmwareengine.v1; + +/** + * + * + *
+ * Request message for [VmwareEngine.GetNodeType][google.cloud.vmwareengine.v1.VmwareEngine.GetNodeType]
+ * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.GetNodeTypeRequest} + */ +public final class GetNodeTypeRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmwareengine.v1.GetNodeTypeRequest) + GetNodeTypeRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetNodeTypeRequest.newBuilder() to construct. + private GetNodeTypeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetNodeTypeRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetNodeTypeRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_GetNodeTypeRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_GetNodeTypeRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.GetNodeTypeRequest.class, + com.google.cloud.vmwareengine.v1.GetNodeTypeRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required. The resource name of the node type to retrieve.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-proj/locations/us-west1-a/nodeTypes/standard-72`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The resource name of the node type to retrieve.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-proj/locations/us-west1-a/nodeTypes/standard-72`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.vmwareengine.v1.GetNodeTypeRequest)) { + return super.equals(obj); + } + com.google.cloud.vmwareengine.v1.GetNodeTypeRequest other = + (com.google.cloud.vmwareengine.v1.GetNodeTypeRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmwareengine.v1.GetNodeTypeRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.GetNodeTypeRequest 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.vmwareengine.v1.GetNodeTypeRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.GetNodeTypeRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.GetNodeTypeRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.GetNodeTypeRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.GetNodeTypeRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.GetNodeTypeRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.GetNodeTypeRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.GetNodeTypeRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.GetNodeTypeRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.GetNodeTypeRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.vmwareengine.v1.GetNodeTypeRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for [VmwareEngine.GetNodeType][google.cloud.vmwareengine.v1.VmwareEngine.GetNodeType]
+   * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.GetNodeTypeRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmwareengine.v1.GetNodeTypeRequest) + com.google.cloud.vmwareengine.v1.GetNodeTypeRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_GetNodeTypeRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_GetNodeTypeRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.GetNodeTypeRequest.class, + com.google.cloud.vmwareengine.v1.GetNodeTypeRequest.Builder.class); + } + + // Construct using com.google.cloud.vmwareengine.v1.GetNodeTypeRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_GetNodeTypeRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.GetNodeTypeRequest getDefaultInstanceForType() { + return com.google.cloud.vmwareengine.v1.GetNodeTypeRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.GetNodeTypeRequest build() { + com.google.cloud.vmwareengine.v1.GetNodeTypeRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.GetNodeTypeRequest buildPartial() { + com.google.cloud.vmwareengine.v1.GetNodeTypeRequest result = + new com.google.cloud.vmwareengine.v1.GetNodeTypeRequest(this); + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.vmwareengine.v1.GetNodeTypeRequest) { + return mergeFrom((com.google.cloud.vmwareengine.v1.GetNodeTypeRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmwareengine.v1.GetNodeTypeRequest other) { + if (other == com.google.cloud.vmwareengine.v1.GetNodeTypeRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The resource name of the node type to retrieve.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-proj/locations/us-west1-a/nodeTypes/standard-72`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the node type to retrieve.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-proj/locations/us-west1-a/nodeTypes/standard-72`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the node type to retrieve.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-proj/locations/us-west1-a/nodeTypes/standard-72`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the node type to retrieve.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-proj/locations/us-west1-a/nodeTypes/standard-72`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the node type to retrieve.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-proj/locations/us-west1-a/nodeTypes/standard-72`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.vmwareengine.v1.GetNodeTypeRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmwareengine.v1.GetNodeTypeRequest) + private static final com.google.cloud.vmwareengine.v1.GetNodeTypeRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmwareengine.v1.GetNodeTypeRequest(); + } + + public static com.google.cloud.vmwareengine.v1.GetNodeTypeRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetNodeTypeRequest 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.vmwareengine.v1.GetNodeTypeRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/GetNodeTypeRequestOrBuilder.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/GetNodeTypeRequestOrBuilder.java new file mode 100644 index 000000000000..734ced1349f1 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/GetNodeTypeRequestOrBuilder.java @@ -0,0 +1,62 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmwareengine/v1/vmwareengine.proto + +package com.google.cloud.vmwareengine.v1; + +public interface GetNodeTypeRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmwareengine.v1.GetNodeTypeRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the node type to retrieve.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-proj/locations/us-west1-a/nodeTypes/standard-72`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The resource name of the node type to retrieve.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-proj/locations/us-west1-a/nodeTypes/standard-72`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/GetPrivateCloudRequest.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/GetPrivateCloudRequest.java new file mode 100644 index 000000000000..f41c715bd7bf --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/GetPrivateCloudRequest.java @@ -0,0 +1,658 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmwareengine/v1/vmwareengine.proto + +package com.google.cloud.vmwareengine.v1; + +/** + * + * + *
+ * Request message for [VmwareEngine.GetPrivateCloud][google.cloud.vmwareengine.v1.VmwareEngine.GetPrivateCloud]
+ * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.GetPrivateCloudRequest} + */ +public final class GetPrivateCloudRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmwareengine.v1.GetPrivateCloudRequest) + GetPrivateCloudRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetPrivateCloudRequest.newBuilder() to construct. + private GetPrivateCloudRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetPrivateCloudRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetPrivateCloudRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_GetPrivateCloudRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_GetPrivateCloudRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.GetPrivateCloudRequest.class, + com.google.cloud.vmwareengine.v1.GetPrivateCloudRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required. The resource name of the private cloud to retrieve.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The resource name of the private cloud to retrieve.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.vmwareengine.v1.GetPrivateCloudRequest)) { + return super.equals(obj); + } + com.google.cloud.vmwareengine.v1.GetPrivateCloudRequest other = + (com.google.cloud.vmwareengine.v1.GetPrivateCloudRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmwareengine.v1.GetPrivateCloudRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.GetPrivateCloudRequest 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.vmwareengine.v1.GetPrivateCloudRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.GetPrivateCloudRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.GetPrivateCloudRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.GetPrivateCloudRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.GetPrivateCloudRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.GetPrivateCloudRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.GetPrivateCloudRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.GetPrivateCloudRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.GetPrivateCloudRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.GetPrivateCloudRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.vmwareengine.v1.GetPrivateCloudRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for [VmwareEngine.GetPrivateCloud][google.cloud.vmwareengine.v1.VmwareEngine.GetPrivateCloud]
+   * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.GetPrivateCloudRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmwareengine.v1.GetPrivateCloudRequest) + com.google.cloud.vmwareengine.v1.GetPrivateCloudRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_GetPrivateCloudRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_GetPrivateCloudRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.GetPrivateCloudRequest.class, + com.google.cloud.vmwareengine.v1.GetPrivateCloudRequest.Builder.class); + } + + // Construct using com.google.cloud.vmwareengine.v1.GetPrivateCloudRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_GetPrivateCloudRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.GetPrivateCloudRequest getDefaultInstanceForType() { + return com.google.cloud.vmwareengine.v1.GetPrivateCloudRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.GetPrivateCloudRequest build() { + com.google.cloud.vmwareengine.v1.GetPrivateCloudRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.GetPrivateCloudRequest buildPartial() { + com.google.cloud.vmwareengine.v1.GetPrivateCloudRequest result = + new com.google.cloud.vmwareengine.v1.GetPrivateCloudRequest(this); + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.vmwareengine.v1.GetPrivateCloudRequest) { + return mergeFrom((com.google.cloud.vmwareengine.v1.GetPrivateCloudRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmwareengine.v1.GetPrivateCloudRequest other) { + if (other == com.google.cloud.vmwareengine.v1.GetPrivateCloudRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The resource name of the private cloud to retrieve.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the private cloud to retrieve.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the private cloud to retrieve.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the private cloud to retrieve.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the private cloud to retrieve.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.vmwareengine.v1.GetPrivateCloudRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmwareengine.v1.GetPrivateCloudRequest) + private static final com.google.cloud.vmwareengine.v1.GetPrivateCloudRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmwareengine.v1.GetPrivateCloudRequest(); + } + + public static com.google.cloud.vmwareengine.v1.GetPrivateCloudRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetPrivateCloudRequest 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.vmwareengine.v1.GetPrivateCloudRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/GetPrivateCloudRequestOrBuilder.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/GetPrivateCloudRequestOrBuilder.java new file mode 100644 index 000000000000..b9438004e937 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/GetPrivateCloudRequestOrBuilder.java @@ -0,0 +1,62 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmwareengine/v1/vmwareengine.proto + +package com.google.cloud.vmwareengine.v1; + +public interface GetPrivateCloudRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmwareengine.v1.GetPrivateCloudRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the private cloud to retrieve.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The resource name of the private cloud to retrieve.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/GetVmwareEngineNetworkRequest.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/GetVmwareEngineNetworkRequest.java new file mode 100644 index 000000000000..86ac08b25e4e --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/GetVmwareEngineNetworkRequest.java @@ -0,0 +1,663 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmwareengine/v1/vmwareengine.proto + +package com.google.cloud.vmwareengine.v1; + +/** + * + * + *
+ * Request message for [VmwareEngine.GetVmwareEngineNetwork][google.cloud.vmwareengine.v1.VmwareEngine.GetVmwareEngineNetwork]
+ * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest} + */ +public final class GetVmwareEngineNetworkRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest) + GetVmwareEngineNetworkRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetVmwareEngineNetworkRequest.newBuilder() to construct. + private GetVmwareEngineNetworkRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetVmwareEngineNetworkRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetVmwareEngineNetworkRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_GetVmwareEngineNetworkRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_GetVmwareEngineNetworkRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest.class, + com.google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required. The resource name of the VMware Engine network to retrieve.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-project/locations/global/vmwareEngineNetworks/my-network`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The resource name of the VMware Engine network to retrieve.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-project/locations/global/vmwareEngineNetworks/my-network`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest)) { + return super.equals(obj); + } + com.google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest other = + (com.google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest 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.vmwareengine.v1.GetVmwareEngineNetworkRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for [VmwareEngine.GetVmwareEngineNetwork][google.cloud.vmwareengine.v1.VmwareEngine.GetVmwareEngineNetwork]
+   * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest) + com.google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_GetVmwareEngineNetworkRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_GetVmwareEngineNetworkRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest.class, + com.google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest.Builder.class); + } + + // Construct using com.google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_GetVmwareEngineNetworkRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest + getDefaultInstanceForType() { + return com.google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest build() { + com.google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest buildPartial() { + com.google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest result = + new com.google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest(this); + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest) { + return mergeFrom((com.google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest other) { + if (other + == com.google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The resource name of the VMware Engine network to retrieve.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/global/vmwareEngineNetworks/my-network`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the VMware Engine network to retrieve.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/global/vmwareEngineNetworks/my-network`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the VMware Engine network to retrieve.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/global/vmwareEngineNetworks/my-network`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the VMware Engine network to retrieve.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/global/vmwareEngineNetworks/my-network`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the VMware Engine network to retrieve.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/global/vmwareEngineNetworks/my-network`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest) + private static final com.google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest(); + } + + public static com.google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetVmwareEngineNetworkRequest 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.vmwareengine.v1.GetVmwareEngineNetworkRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/GetVmwareEngineNetworkRequestOrBuilder.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/GetVmwareEngineNetworkRequestOrBuilder.java new file mode 100644 index 000000000000..68e63051e37e --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/GetVmwareEngineNetworkRequestOrBuilder.java @@ -0,0 +1,62 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmwareengine/v1/vmwareengine.proto + +package com.google.cloud.vmwareengine.v1; + +public interface GetVmwareEngineNetworkRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the VMware Engine network to retrieve.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-project/locations/global/vmwareEngineNetworks/my-network`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The resource name of the VMware Engine network to retrieve.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-project/locations/global/vmwareEngineNetworks/my-network`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/Hcx.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/Hcx.java new file mode 100644 index 000000000000..28b17e485f26 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/Hcx.java @@ -0,0 +1,1287 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmwareengine/v1/vmwareengine.proto + +package com.google.cloud.vmwareengine.v1; + +/** + * + * + *
+ * Details about a HCX Cloud Manager appliance.
+ * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.Hcx} + */ +public final class Hcx extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmwareengine.v1.Hcx) + HcxOrBuilder { + private static final long serialVersionUID = 0L; + // Use Hcx.newBuilder() to construct. + private Hcx(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Hcx() { + internalIp_ = ""; + version_ = ""; + state_ = 0; + fqdn_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Hcx(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_Hcx_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_Hcx_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.Hcx.class, + com.google.cloud.vmwareengine.v1.Hcx.Builder.class); + } + + /** + * + * + *
+   * State of the appliance
+   * 
+ * + * Protobuf enum {@code google.cloud.vmwareengine.v1.Hcx.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Unspecified appliance state. This is the default value.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
+     * The appliance is operational and can be used.
+     * 
+ * + * ACTIVE = 1; + */ + ACTIVE(1), + /** + * + * + *
+     * The appliance is being deployed.
+     * 
+ * + * CREATING = 2; + */ + CREATING(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Unspecified appliance state. This is the default value.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * The appliance is operational and can be used.
+     * 
+ * + * ACTIVE = 1; + */ + public static final int ACTIVE_VALUE = 1; + /** + * + * + *
+     * The appliance is being deployed.
+     * 
+ * + * CREATING = 2; + */ + public static final int CREATING_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 State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return ACTIVE; + case 2: + return CREATING; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.Hcx.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.vmwareengine.v1.Hcx.State) + } + + public static final int INTERNAL_IP_FIELD_NUMBER = 2; + private volatile java.lang.Object internalIp_; + /** + * + * + *
+   * Internal IP address of the appliance.
+   * 
+ * + * string internal_ip = 2; + * + * @return The internalIp. + */ + @java.lang.Override + public java.lang.String getInternalIp() { + java.lang.Object ref = internalIp_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + internalIp_ = s; + return s; + } + } + /** + * + * + *
+   * Internal IP address of the appliance.
+   * 
+ * + * string internal_ip = 2; + * + * @return The bytes for internalIp. + */ + @java.lang.Override + public com.google.protobuf.ByteString getInternalIpBytes() { + java.lang.Object ref = internalIp_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + internalIp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VERSION_FIELD_NUMBER = 4; + private volatile java.lang.Object version_; + /** + * + * + *
+   * Version of the appliance.
+   * 
+ * + * string version = 4; + * + * @return The version. + */ + @java.lang.Override + public java.lang.String getVersion() { + java.lang.Object ref = version_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + version_ = s; + return s; + } + } + /** + * + * + *
+   * Version of the appliance.
+   * 
+ * + * string version = 4; + * + * @return The bytes for version. + */ + @java.lang.Override + public com.google.protobuf.ByteString getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + version_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATE_FIELD_NUMBER = 5; + private int state_; + /** + * + * + *
+   * Output only. The state of the appliance.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.Hcx.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
+   * Output only. The state of the appliance.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.Hcx.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.Hcx.State getState() { + @SuppressWarnings("deprecation") + com.google.cloud.vmwareengine.v1.Hcx.State result = + com.google.cloud.vmwareengine.v1.Hcx.State.valueOf(state_); + return result == null ? com.google.cloud.vmwareengine.v1.Hcx.State.UNRECOGNIZED : result; + } + + public static final int FQDN_FIELD_NUMBER = 6; + private volatile java.lang.Object fqdn_; + /** + * + * + *
+   * Fully qualified domain name of the appliance.
+   * 
+ * + * string fqdn = 6; + * + * @return The fqdn. + */ + @java.lang.Override + public java.lang.String getFqdn() { + java.lang.Object ref = fqdn_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fqdn_ = s; + return s; + } + } + /** + * + * + *
+   * Fully qualified domain name of the appliance.
+   * 
+ * + * string fqdn = 6; + * + * @return The bytes for fqdn. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFqdnBytes() { + java.lang.Object ref = fqdn_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + fqdn_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(internalIp_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, internalIp_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, version_); + } + if (state_ != com.google.cloud.vmwareengine.v1.Hcx.State.STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(5, state_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fqdn_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, fqdn_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(internalIp_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, internalIp_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, version_); + } + if (state_ != com.google.cloud.vmwareengine.v1.Hcx.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, state_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fqdn_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, fqdn_); + } + 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.vmwareengine.v1.Hcx)) { + return super.equals(obj); + } + com.google.cloud.vmwareengine.v1.Hcx other = (com.google.cloud.vmwareengine.v1.Hcx) obj; + + if (!getInternalIp().equals(other.getInternalIp())) return false; + if (!getVersion().equals(other.getVersion())) return false; + if (state_ != other.state_) return false; + if (!getFqdn().equals(other.getFqdn())) 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) + INTERNAL_IP_FIELD_NUMBER; + hash = (53 * hash) + getInternalIp().hashCode(); + hash = (37 * hash) + VERSION_FIELD_NUMBER; + hash = (53 * hash) + getVersion().hashCode(); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (37 * hash) + FQDN_FIELD_NUMBER; + hash = (53 * hash) + getFqdn().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmwareengine.v1.Hcx parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.Hcx 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.vmwareengine.v1.Hcx parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.Hcx parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.Hcx parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.Hcx parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.Hcx parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.Hcx parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.Hcx parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.Hcx parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.Hcx parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.Hcx parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.vmwareengine.v1.Hcx prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Details about a HCX Cloud Manager appliance.
+   * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.Hcx} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmwareengine.v1.Hcx) + com.google.cloud.vmwareengine.v1.HcxOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_Hcx_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_Hcx_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.Hcx.class, + com.google.cloud.vmwareengine.v1.Hcx.Builder.class); + } + + // Construct using com.google.cloud.vmwareengine.v1.Hcx.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + internalIp_ = ""; + + version_ = ""; + + state_ = 0; + + fqdn_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_Hcx_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.Hcx getDefaultInstanceForType() { + return com.google.cloud.vmwareengine.v1.Hcx.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.Hcx build() { + com.google.cloud.vmwareengine.v1.Hcx result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.Hcx buildPartial() { + com.google.cloud.vmwareengine.v1.Hcx result = new com.google.cloud.vmwareengine.v1.Hcx(this); + result.internalIp_ = internalIp_; + result.version_ = version_; + result.state_ = state_; + result.fqdn_ = fqdn_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.vmwareengine.v1.Hcx) { + return mergeFrom((com.google.cloud.vmwareengine.v1.Hcx) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmwareengine.v1.Hcx other) { + if (other == com.google.cloud.vmwareengine.v1.Hcx.getDefaultInstance()) return this; + if (!other.getInternalIp().isEmpty()) { + internalIp_ = other.internalIp_; + onChanged(); + } + if (!other.getVersion().isEmpty()) { + version_ = other.version_; + onChanged(); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (!other.getFqdn().isEmpty()) { + fqdn_ = other.fqdn_; + 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 18: + { + internalIp_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 34: + { + version_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 40: + { + state_ = input.readEnum(); + + break; + } // case 40 + case 50: + { + fqdn_ = input.readStringRequireUtf8(); + + break; + } // case 50 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private java.lang.Object internalIp_ = ""; + /** + * + * + *
+     * Internal IP address of the appliance.
+     * 
+ * + * string internal_ip = 2; + * + * @return The internalIp. + */ + public java.lang.String getInternalIp() { + java.lang.Object ref = internalIp_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + internalIp_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Internal IP address of the appliance.
+     * 
+ * + * string internal_ip = 2; + * + * @return The bytes for internalIp. + */ + public com.google.protobuf.ByteString getInternalIpBytes() { + java.lang.Object ref = internalIp_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + internalIp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Internal IP address of the appliance.
+     * 
+ * + * string internal_ip = 2; + * + * @param value The internalIp to set. + * @return This builder for chaining. + */ + public Builder setInternalIp(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + internalIp_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Internal IP address of the appliance.
+     * 
+ * + * string internal_ip = 2; + * + * @return This builder for chaining. + */ + public Builder clearInternalIp() { + + internalIp_ = getDefaultInstance().getInternalIp(); + onChanged(); + return this; + } + /** + * + * + *
+     * Internal IP address of the appliance.
+     * 
+ * + * string internal_ip = 2; + * + * @param value The bytes for internalIp to set. + * @return This builder for chaining. + */ + public Builder setInternalIpBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + internalIp_ = value; + onChanged(); + return this; + } + + private java.lang.Object version_ = ""; + /** + * + * + *
+     * Version of the appliance.
+     * 
+ * + * string version = 4; + * + * @return The version. + */ + public java.lang.String getVersion() { + java.lang.Object ref = version_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + version_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Version of the appliance.
+     * 
+ * + * string version = 4; + * + * @return The bytes for version. + */ + public com.google.protobuf.ByteString getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + version_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Version of the appliance.
+     * 
+ * + * string version = 4; + * + * @param value The version to set. + * @return This builder for chaining. + */ + public Builder setVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + version_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Version of the appliance.
+     * 
+ * + * string version = 4; + * + * @return This builder for chaining. + */ + public Builder clearVersion() { + + version_ = getDefaultInstance().getVersion(); + onChanged(); + return this; + } + /** + * + * + *
+     * Version of the appliance.
+     * 
+ * + * string version = 4; + * + * @param value The bytes for version to set. + * @return This builder for chaining. + */ + public Builder setVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + version_ = value; + onChanged(); + return this; + } + + private int state_ = 0; + /** + * + * + *
+     * Output only. The state of the appliance.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.Hcx.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
+     * Output only. The state of the appliance.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.Hcx.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + + state_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The state of the appliance.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.Hcx.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.Hcx.State getState() { + @SuppressWarnings("deprecation") + com.google.cloud.vmwareengine.v1.Hcx.State result = + com.google.cloud.vmwareengine.v1.Hcx.State.valueOf(state_); + return result == null ? com.google.cloud.vmwareengine.v1.Hcx.State.UNRECOGNIZED : result; + } + /** + * + * + *
+     * Output only. The state of the appliance.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.Hcx.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.vmwareengine.v1.Hcx.State value) { + if (value == null) { + throw new NullPointerException(); + } + + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The state of the appliance.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.Hcx.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + + state_ = 0; + onChanged(); + return this; + } + + private java.lang.Object fqdn_ = ""; + /** + * + * + *
+     * Fully qualified domain name of the appliance.
+     * 
+ * + * string fqdn = 6; + * + * @return The fqdn. + */ + public java.lang.String getFqdn() { + java.lang.Object ref = fqdn_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fqdn_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Fully qualified domain name of the appliance.
+     * 
+ * + * string fqdn = 6; + * + * @return The bytes for fqdn. + */ + public com.google.protobuf.ByteString getFqdnBytes() { + java.lang.Object ref = fqdn_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + fqdn_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Fully qualified domain name of the appliance.
+     * 
+ * + * string fqdn = 6; + * + * @param value The fqdn to set. + * @return This builder for chaining. + */ + public Builder setFqdn(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + fqdn_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Fully qualified domain name of the appliance.
+     * 
+ * + * string fqdn = 6; + * + * @return This builder for chaining. + */ + public Builder clearFqdn() { + + fqdn_ = getDefaultInstance().getFqdn(); + onChanged(); + return this; + } + /** + * + * + *
+     * Fully qualified domain name of the appliance.
+     * 
+ * + * string fqdn = 6; + * + * @param value The bytes for fqdn to set. + * @return This builder for chaining. + */ + public Builder setFqdnBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + fqdn_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.vmwareengine.v1.Hcx) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmwareengine.v1.Hcx) + private static final com.google.cloud.vmwareengine.v1.Hcx DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmwareengine.v1.Hcx(); + } + + public static com.google.cloud.vmwareengine.v1.Hcx getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Hcx 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.vmwareengine.v1.Hcx getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/HcxActivationKey.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/HcxActivationKey.java new file mode 100644 index 000000000000..e2530d262772 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/HcxActivationKey.java @@ -0,0 +1,1641 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmwareengine/v1/vmwareengine.proto + +package com.google.cloud.vmwareengine.v1; + +/** + * + * + *
+ * HCX activation key. A default key is created during
+ * private cloud provisioning, but this behavior is subject to change
+ * and you should always verify active keys.
+ * Use [VmwareEngine.ListHcxActivationKeys][google.cloud.vmwareengine.v1.VmwareEngine.ListHcxActivationKeys] to retrieve existing keys
+ * and [VmwareEngine.CreateHcxActivationKey][google.cloud.vmwareengine.v1.VmwareEngine.CreateHcxActivationKey] to create new ones.
+ * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.HcxActivationKey} + */ +public final class HcxActivationKey extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmwareengine.v1.HcxActivationKey) + HcxActivationKeyOrBuilder { + private static final long serialVersionUID = 0L; + // Use HcxActivationKey.newBuilder() to construct. + private HcxActivationKey(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private HcxActivationKey() { + name_ = ""; + state_ = 0; + activationKey_ = ""; + uid_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new HcxActivationKey(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_HcxActivationKey_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_HcxActivationKey_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.HcxActivationKey.class, + com.google.cloud.vmwareengine.v1.HcxActivationKey.Builder.class); + } + + /** + * + * + *
+   * State of HCX activation key
+   * 
+ * + * Protobuf enum {@code google.cloud.vmwareengine.v1.HcxActivationKey.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Unspecified state.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
+     * State of a newly generated activation key.
+     * 
+ * + * AVAILABLE = 1; + */ + AVAILABLE(1), + /** + * + * + *
+     * State of key when it has been used to activate HCX appliance.
+     * 
+ * + * CONSUMED = 2; + */ + CONSUMED(2), + /** + * + * + *
+     * State of key when it is being created.
+     * 
+ * + * CREATING = 3; + */ + CREATING(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Unspecified state.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * State of a newly generated activation key.
+     * 
+ * + * AVAILABLE = 1; + */ + public static final int AVAILABLE_VALUE = 1; + /** + * + * + *
+     * State of key when it has been used to activate HCX appliance.
+     * 
+ * + * CONSUMED = 2; + */ + public static final int CONSUMED_VALUE = 2; + /** + * + * + *
+     * State of key when it is being created.
+     * 
+ * + * CREATING = 3; + */ + public static final int CREATING_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return AVAILABLE; + case 2: + return CONSUMED; + case 3: + return CREATING; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.HcxActivationKey.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.vmwareengine.v1.HcxActivationKey.State) + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Output only. The resource name of this HcxActivationKey.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-project/locations/us-west1/privateClouds/my-cloud/hcxActivationKeys/my-key`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The resource name of this HcxActivationKey.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-project/locations/us-west1/privateClouds/my-cloud/hcxActivationKeys/my-key`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
+   * Output only. Creation time of HCX activation key.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return createTime_ != null; + } + /** + * + * + *
+   * Output only. Creation time of HCX activation key.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + /** + * + * + *
+   * Output only. Creation time of HCX activation key.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return getCreateTime(); + } + + public static final int STATE_FIELD_NUMBER = 3; + private int state_; + /** + * + * + *
+   * Output only. State of HCX activation key.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.HcxActivationKey.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
+   * Output only. State of HCX activation key.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.HcxActivationKey.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.HcxActivationKey.State getState() { + @SuppressWarnings("deprecation") + com.google.cloud.vmwareengine.v1.HcxActivationKey.State result = + com.google.cloud.vmwareengine.v1.HcxActivationKey.State.valueOf(state_); + return result == null + ? com.google.cloud.vmwareengine.v1.HcxActivationKey.State.UNRECOGNIZED + : result; + } + + public static final int ACTIVATION_KEY_FIELD_NUMBER = 4; + private volatile java.lang.Object activationKey_; + /** + * + * + *
+   * Output only. HCX activation key.
+   * 
+ * + * string activation_key = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The activationKey. + */ + @java.lang.Override + public java.lang.String getActivationKey() { + java.lang.Object ref = activationKey_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + activationKey_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. HCX activation key.
+   * 
+ * + * string activation_key = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for activationKey. + */ + @java.lang.Override + public com.google.protobuf.ByteString getActivationKeyBytes() { + java.lang.Object ref = activationKey_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + activationKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UID_FIELD_NUMBER = 5; + private volatile java.lang.Object uid_; + /** + * + * + *
+   * Output only. System-generated unique identifier for the resource.
+   * 
+ * + * string uid = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The uid. + */ + @java.lang.Override + public java.lang.String getUid() { + java.lang.Object ref = uid_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uid_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. System-generated unique identifier for the resource.
+   * 
+ * + * string uid = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for uid. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUidBytes() { + java.lang.Object ref = uid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (createTime_ != null) { + output.writeMessage(2, getCreateTime()); + } + if (state_ + != com.google.cloud.vmwareengine.v1.HcxActivationKey.State.STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(3, state_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(activationKey_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, activationKey_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, uid_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (createTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); + } + if (state_ + != com.google.cloud.vmwareengine.v1.HcxActivationKey.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, state_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(activationKey_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, activationKey_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, uid_); + } + 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.vmwareengine.v1.HcxActivationKey)) { + return super.equals(obj); + } + com.google.cloud.vmwareengine.v1.HcxActivationKey other = + (com.google.cloud.vmwareengine.v1.HcxActivationKey) obj; + + if (!getName().equals(other.getName())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (state_ != other.state_) return false; + if (!getActivationKey().equals(other.getActivationKey())) return false; + if (!getUid().equals(other.getUid())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (37 * hash) + ACTIVATION_KEY_FIELD_NUMBER; + hash = (53 * hash) + getActivationKey().hashCode(); + hash = (37 * hash) + UID_FIELD_NUMBER; + hash = (53 * hash) + getUid().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmwareengine.v1.HcxActivationKey parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.HcxActivationKey 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.vmwareengine.v1.HcxActivationKey parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.HcxActivationKey parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.HcxActivationKey parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.HcxActivationKey parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.HcxActivationKey parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.HcxActivationKey parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.HcxActivationKey parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.HcxActivationKey parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.HcxActivationKey parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.HcxActivationKey parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.vmwareengine.v1.HcxActivationKey prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * HCX activation key. A default key is created during
+   * private cloud provisioning, but this behavior is subject to change
+   * and you should always verify active keys.
+   * Use [VmwareEngine.ListHcxActivationKeys][google.cloud.vmwareengine.v1.VmwareEngine.ListHcxActivationKeys] to retrieve existing keys
+   * and [VmwareEngine.CreateHcxActivationKey][google.cloud.vmwareengine.v1.VmwareEngine.CreateHcxActivationKey] to create new ones.
+   * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.HcxActivationKey} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmwareengine.v1.HcxActivationKey) + com.google.cloud.vmwareengine.v1.HcxActivationKeyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_HcxActivationKey_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_HcxActivationKey_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.HcxActivationKey.class, + com.google.cloud.vmwareengine.v1.HcxActivationKey.Builder.class); + } + + // Construct using com.google.cloud.vmwareengine.v1.HcxActivationKey.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + if (createTimeBuilder_ == null) { + createTime_ = null; + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + state_ = 0; + + activationKey_ = ""; + + uid_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_HcxActivationKey_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.HcxActivationKey getDefaultInstanceForType() { + return com.google.cloud.vmwareengine.v1.HcxActivationKey.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.HcxActivationKey build() { + com.google.cloud.vmwareengine.v1.HcxActivationKey result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.HcxActivationKey buildPartial() { + com.google.cloud.vmwareengine.v1.HcxActivationKey result = + new com.google.cloud.vmwareengine.v1.HcxActivationKey(this); + result.name_ = name_; + if (createTimeBuilder_ == null) { + result.createTime_ = createTime_; + } else { + result.createTime_ = createTimeBuilder_.build(); + } + result.state_ = state_; + result.activationKey_ = activationKey_; + result.uid_ = uid_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.vmwareengine.v1.HcxActivationKey) { + return mergeFrom((com.google.cloud.vmwareengine.v1.HcxActivationKey) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmwareengine.v1.HcxActivationKey other) { + if (other == com.google.cloud.vmwareengine.v1.HcxActivationKey.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (!other.getActivationKey().isEmpty()) { + activationKey_ = other.activationKey_; + onChanged(); + } + if (!other.getUid().isEmpty()) { + uid_ = other.uid_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + case 24: + { + state_ = input.readEnum(); + + break; + } // case 24 + case 34: + { + activationKey_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 42: + { + uid_ = input.readStringRequireUtf8(); + + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Output only. The resource name of this HcxActivationKey.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-west1/privateClouds/my-cloud/hcxActivationKeys/my-key`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The resource name of this HcxActivationKey.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-west1/privateClouds/my-cloud/hcxActivationKeys/my-key`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The resource name of this HcxActivationKey.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-west1/privateClouds/my-cloud/hcxActivationKeys/my-key`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The resource name of this HcxActivationKey.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-west1/privateClouds/my-cloud/hcxActivationKeys/my-key`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The resource name of this HcxActivationKey.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-west1/privateClouds/my-cloud/hcxActivationKeys/my-key`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + /** + * + * + *
+     * Output only. Creation time of HCX activation key.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return createTimeBuilder_ != null || createTime_ != null; + } + /** + * + * + *
+     * Output only. Creation time of HCX activation key.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Creation time of HCX activation key.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + onChanged(); + } else { + createTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Creation time of HCX activation key.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + onChanged(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. Creation time of HCX activation key.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (createTime_ != null) { + createTime_ = + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + } else { + createTime_ = value; + } + onChanged(); + } else { + createTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Creation time of HCX activation key.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + if (createTimeBuilder_ == null) { + createTime_ = null; + onChanged(); + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. Creation time of HCX activation key.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Creation time of HCX activation key.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + /** + * + * + *
+     * Output only. Creation time of HCX activation key.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private int state_ = 0; + /** + * + * + *
+     * Output only. State of HCX activation key.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.HcxActivationKey.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
+     * Output only. State of HCX activation key.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.HcxActivationKey.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + + state_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. State of HCX activation key.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.HcxActivationKey.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.HcxActivationKey.State getState() { + @SuppressWarnings("deprecation") + com.google.cloud.vmwareengine.v1.HcxActivationKey.State result = + com.google.cloud.vmwareengine.v1.HcxActivationKey.State.valueOf(state_); + return result == null + ? com.google.cloud.vmwareengine.v1.HcxActivationKey.State.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Output only. State of HCX activation key.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.HcxActivationKey.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.vmwareengine.v1.HcxActivationKey.State value) { + if (value == null) { + throw new NullPointerException(); + } + + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. State of HCX activation key.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.HcxActivationKey.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + + state_ = 0; + onChanged(); + return this; + } + + private java.lang.Object activationKey_ = ""; + /** + * + * + *
+     * Output only. HCX activation key.
+     * 
+ * + * string activation_key = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The activationKey. + */ + public java.lang.String getActivationKey() { + java.lang.Object ref = activationKey_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + activationKey_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. HCX activation key.
+     * 
+ * + * string activation_key = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for activationKey. + */ + public com.google.protobuf.ByteString getActivationKeyBytes() { + java.lang.Object ref = activationKey_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + activationKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. HCX activation key.
+     * 
+ * + * string activation_key = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The activationKey to set. + * @return This builder for chaining. + */ + public Builder setActivationKey(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + activationKey_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. HCX activation key.
+     * 
+ * + * string activation_key = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearActivationKey() { + + activationKey_ = getDefaultInstance().getActivationKey(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. HCX activation key.
+     * 
+ * + * string activation_key = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for activationKey to set. + * @return This builder for chaining. + */ + public Builder setActivationKeyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + activationKey_ = value; + onChanged(); + return this; + } + + private java.lang.Object uid_ = ""; + /** + * + * + *
+     * Output only. System-generated unique identifier for the resource.
+     * 
+ * + * string uid = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The uid. + */ + public java.lang.String getUid() { + java.lang.Object ref = uid_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. System-generated unique identifier for the resource.
+     * 
+ * + * string uid = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for uid. + */ + public com.google.protobuf.ByteString getUidBytes() { + java.lang.Object ref = uid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. System-generated unique identifier for the resource.
+     * 
+ * + * string uid = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The uid to set. + * @return This builder for chaining. + */ + public Builder setUid(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + uid_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. System-generated unique identifier for the resource.
+     * 
+ * + * string uid = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearUid() { + + uid_ = getDefaultInstance().getUid(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. System-generated unique identifier for the resource.
+     * 
+ * + * string uid = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for uid to set. + * @return This builder for chaining. + */ + public Builder setUidBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + uid_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.vmwareengine.v1.HcxActivationKey) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmwareengine.v1.HcxActivationKey) + private static final com.google.cloud.vmwareengine.v1.HcxActivationKey DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmwareengine.v1.HcxActivationKey(); + } + + public static com.google.cloud.vmwareengine.v1.HcxActivationKey getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HcxActivationKey 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.vmwareengine.v1.HcxActivationKey getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/HcxActivationKeyName.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/HcxActivationKeyName.java new file mode 100644 index 000000000000..95e2dfa017cd --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/HcxActivationKeyName.java @@ -0,0 +1,269 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.vmwareengine.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class HcxActivationKeyName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_PRIVATE_CLOUD_HCX_ACTIVATION_KEY = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/privateClouds/{private_cloud}/hcxActivationKeys/{hcx_activation_key}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String privateCloud; + private final String hcxActivationKey; + + @Deprecated + protected HcxActivationKeyName() { + project = null; + location = null; + privateCloud = null; + hcxActivationKey = null; + } + + private HcxActivationKeyName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + privateCloud = Preconditions.checkNotNull(builder.getPrivateCloud()); + hcxActivationKey = Preconditions.checkNotNull(builder.getHcxActivationKey()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getPrivateCloud() { + return privateCloud; + } + + public String getHcxActivationKey() { + return hcxActivationKey; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static HcxActivationKeyName of( + String project, String location, String privateCloud, String hcxActivationKey) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setPrivateCloud(privateCloud) + .setHcxActivationKey(hcxActivationKey) + .build(); + } + + public static String format( + String project, String location, String privateCloud, String hcxActivationKey) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setPrivateCloud(privateCloud) + .setHcxActivationKey(hcxActivationKey) + .build() + .toString(); + } + + public static HcxActivationKeyName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_PRIVATE_CLOUD_HCX_ACTIVATION_KEY.validatedMatch( + formattedString, "HcxActivationKeyName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("private_cloud"), + matchMap.get("hcx_activation_key")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (HcxActivationKeyName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_PRIVATE_CLOUD_HCX_ACTIVATION_KEY.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (privateCloud != null) { + fieldMapBuilder.put("private_cloud", privateCloud); + } + if (hcxActivationKey != null) { + fieldMapBuilder.put("hcx_activation_key", hcxActivationKey); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_PRIVATE_CLOUD_HCX_ACTIVATION_KEY.instantiate( + "project", + project, + "location", + location, + "private_cloud", + privateCloud, + "hcx_activation_key", + hcxActivationKey); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null || getClass() == o.getClass()) { + HcxActivationKeyName that = ((HcxActivationKeyName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.privateCloud, that.privateCloud) + && Objects.equals(this.hcxActivationKey, that.hcxActivationKey); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(privateCloud); + h *= 1000003; + h ^= Objects.hashCode(hcxActivationKey); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/privateClouds/{private_cloud}/hcxActivationKeys/{hcx_activation_key}. + */ + public static class Builder { + private String project; + private String location; + private String privateCloud; + private String hcxActivationKey; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getPrivateCloud() { + return privateCloud; + } + + public String getHcxActivationKey() { + return hcxActivationKey; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setPrivateCloud(String privateCloud) { + this.privateCloud = privateCloud; + return this; + } + + public Builder setHcxActivationKey(String hcxActivationKey) { + this.hcxActivationKey = hcxActivationKey; + return this; + } + + private Builder(HcxActivationKeyName hcxActivationKeyName) { + this.project = hcxActivationKeyName.project; + this.location = hcxActivationKeyName.location; + this.privateCloud = hcxActivationKeyName.privateCloud; + this.hcxActivationKey = hcxActivationKeyName.hcxActivationKey; + } + + public HcxActivationKeyName build() { + return new HcxActivationKeyName(this); + } + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/HcxActivationKeyOrBuilder.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/HcxActivationKeyOrBuilder.java new file mode 100644 index 000000000000..65628ea7b166 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/HcxActivationKeyOrBuilder.java @@ -0,0 +1,175 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmwareengine/v1/vmwareengine.proto + +package com.google.cloud.vmwareengine.v1; + +public interface HcxActivationKeyOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmwareengine.v1.HcxActivationKey) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. The resource name of this HcxActivationKey.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-project/locations/us-west1/privateClouds/my-cloud/hcxActivationKeys/my-key`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Output only. The resource name of this HcxActivationKey.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-project/locations/us-west1/privateClouds/my-cloud/hcxActivationKeys/my-key`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Output only. Creation time of HCX activation key.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + * + * + *
+   * Output only. Creation time of HCX activation key.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + * + * + *
+   * Output only. Creation time of HCX activation key.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. State of HCX activation key.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.HcxActivationKey.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + /** + * + * + *
+   * Output only. State of HCX activation key.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.HcxActivationKey.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.vmwareengine.v1.HcxActivationKey.State getState(); + + /** + * + * + *
+   * Output only. HCX activation key.
+   * 
+ * + * string activation_key = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The activationKey. + */ + java.lang.String getActivationKey(); + /** + * + * + *
+   * Output only. HCX activation key.
+   * 
+ * + * string activation_key = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for activationKey. + */ + com.google.protobuf.ByteString getActivationKeyBytes(); + + /** + * + * + *
+   * Output only. System-generated unique identifier for the resource.
+   * 
+ * + * string uid = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The uid. + */ + java.lang.String getUid(); + /** + * + * + *
+   * Output only. System-generated unique identifier for the resource.
+   * 
+ * + * string uid = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for uid. + */ + com.google.protobuf.ByteString getUidBytes(); +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/HcxOrBuilder.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/HcxOrBuilder.java new file mode 100644 index 000000000000..250cfbfa6e60 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/HcxOrBuilder.java @@ -0,0 +1,129 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmwareengine/v1/vmwareengine.proto + +package com.google.cloud.vmwareengine.v1; + +public interface HcxOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmwareengine.v1.Hcx) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Internal IP address of the appliance.
+   * 
+ * + * string internal_ip = 2; + * + * @return The internalIp. + */ + java.lang.String getInternalIp(); + /** + * + * + *
+   * Internal IP address of the appliance.
+   * 
+ * + * string internal_ip = 2; + * + * @return The bytes for internalIp. + */ + com.google.protobuf.ByteString getInternalIpBytes(); + + /** + * + * + *
+   * Version of the appliance.
+   * 
+ * + * string version = 4; + * + * @return The version. + */ + java.lang.String getVersion(); + /** + * + * + *
+   * Version of the appliance.
+   * 
+ * + * string version = 4; + * + * @return The bytes for version. + */ + com.google.protobuf.ByteString getVersionBytes(); + + /** + * + * + *
+   * Output only. The state of the appliance.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.Hcx.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + /** + * + * + *
+   * Output only. The state of the appliance.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.Hcx.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.vmwareengine.v1.Hcx.State getState(); + + /** + * + * + *
+   * Fully qualified domain name of the appliance.
+   * 
+ * + * string fqdn = 6; + * + * @return The fqdn. + */ + java.lang.String getFqdn(); + /** + * + * + *
+   * Fully qualified domain name of the appliance.
+   * 
+ * + * string fqdn = 6; + * + * @return The bytes for fqdn. + */ + com.google.protobuf.ByteString getFqdnBytes(); +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListClustersRequest.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListClustersRequest.java new file mode 100644 index 000000000000..a1fba963279b --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListClustersRequest.java @@ -0,0 +1,1420 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmwareengine/v1/vmwareengine.proto + +package com.google.cloud.vmwareengine.v1; + +/** + * + * + *
+ * Request message for [VmwareEngine.ListClusters][google.cloud.vmwareengine.v1.VmwareEngine.ListClusters]
+ * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.ListClustersRequest} + */ +public final class ListClustersRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmwareengine.v1.ListClustersRequest) + ListClustersRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListClustersRequest.newBuilder() to construct. + private ListClustersRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListClustersRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListClustersRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListClustersRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListClustersRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.ListClustersRequest.class, + com.google.cloud.vmwareengine.v1.ListClustersRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required. The resource name of the private cloud to query for clusters.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The resource name of the private cloud to query for clusters.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_; + /** + * + * + *
+   * The maximum number of clusters to return in one page.
+   * The service may return fewer than this value.
+   * The maximum value is coerced to 1000.
+   * The default value of this field is 500.
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + private volatile java.lang.Object pageToken_; + /** + * + * + *
+   * A page token, received from a previous `ListClusters` call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to `ListClusters`
+   * must match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @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; + } + } + /** + * + * + *
+   * A page token, received from a previous `ListClusters` call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to `ListClusters`
+   * must match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 4; + private volatile java.lang.Object filter_; + /** + * + * + *
+   * To filter on multiple expressions, provide each separate expression within
+   * parentheses. For example:
+   * ```
+   * (name = "example-cluster")
+   * (nodeCount = "3")
+   * ```
+   * By default, each expression is an `AND` expression. However, you can
+   * include `AND` and `OR` expressions explicitly. For example:
+   * ```
+   * (name = "example-cluster-1") AND
+   * (createTime > "2021-04-12T08:15:10.40Z") OR
+   * (name = "example-cluster-2")
+   * ```
+   * 
+ * + * string filter = 4; + * + * @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; + } + } + /** + * + * + *
+   * To filter on multiple expressions, provide each separate expression within
+   * parentheses. For example:
+   * ```
+   * (name = "example-cluster")
+   * (nodeCount = "3")
+   * ```
+   * By default, each expression is an `AND` expression. However, you can
+   * include `AND` and `OR` expressions explicitly. For example:
+   * ```
+   * (name = "example-cluster-1") AND
+   * (createTime > "2021-04-12T08:15:10.40Z") OR
+   * (name = "example-cluster-2")
+   * ```
+   * 
+ * + * string filter = 4; + * + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 5; + private volatile java.lang.Object orderBy_; + /** + * + * + *
+   * Sorts list results by a certain order. By default, returned results are
+   * ordered by `name` in ascending order. You can also sort results in
+   * descending order based on the `name` value using `orderBy="name desc"`.
+   * Currently, only ordering by `name` is supported.
+   * 
+ * + * string order_by = 5; + * + * @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, returned results are
+   * ordered by `name` in ascending order. You can also sort results in
+   * descending order based on the `name` value using `orderBy="name desc"`.
+   * Currently, only ordering by `name` is supported.
+   * 
+ * + * string order_by = 5; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, orderBy_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, orderBy_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.vmwareengine.v1.ListClustersRequest)) { + return super.equals(obj); + } + com.google.cloud.vmwareengine.v1.ListClustersRequest other = + (com.google.cloud.vmwareengine.v1.ListClustersRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmwareengine.v1.ListClustersRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.ListClustersRequest 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.vmwareengine.v1.ListClustersRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.ListClustersRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.ListClustersRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.ListClustersRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.ListClustersRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.ListClustersRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.ListClustersRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.ListClustersRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.ListClustersRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.ListClustersRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.vmwareengine.v1.ListClustersRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for [VmwareEngine.ListClusters][google.cloud.vmwareengine.v1.VmwareEngine.ListClusters]
+   * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.ListClustersRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmwareengine.v1.ListClustersRequest) + com.google.cloud.vmwareengine.v1.ListClustersRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListClustersRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListClustersRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.ListClustersRequest.class, + com.google.cloud.vmwareengine.v1.ListClustersRequest.Builder.class); + } + + // Construct using com.google.cloud.vmwareengine.v1.ListClustersRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + pageSize_ = 0; + + pageToken_ = ""; + + filter_ = ""; + + orderBy_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListClustersRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ListClustersRequest getDefaultInstanceForType() { + return com.google.cloud.vmwareengine.v1.ListClustersRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ListClustersRequest build() { + com.google.cloud.vmwareengine.v1.ListClustersRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ListClustersRequest buildPartial() { + com.google.cloud.vmwareengine.v1.ListClustersRequest result = + new com.google.cloud.vmwareengine.v1.ListClustersRequest(this); + result.parent_ = parent_; + result.pageSize_ = pageSize_; + result.pageToken_ = pageToken_; + result.filter_ = filter_; + result.orderBy_ = orderBy_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.vmwareengine.v1.ListClustersRequest) { + return mergeFrom((com.google.cloud.vmwareengine.v1.ListClustersRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmwareengine.v1.ListClustersRequest other) { + if (other == com.google.cloud.vmwareengine.v1.ListClustersRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: + { + filter_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The resource name of the private cloud to query for clusters.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the private cloud to query for clusters.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the private cloud to query for clusters.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the private cloud to query for clusters.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the private cloud to query for clusters.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * The maximum number of clusters to return in one page.
+     * The service may return fewer than this value.
+     * The maximum value is coerced to 1000.
+     * The default value of this field is 500.
+     * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * The maximum number of clusters to return in one page.
+     * The service may return fewer than this value.
+     * The maximum value is coerced to 1000.
+     * The default value of this field is 500.
+     * 
+ * + * int32 page_size = 2; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The maximum number of clusters to return in one page.
+     * The service may return fewer than this value.
+     * The maximum value is coerced to 1000.
+     * The default value of this field is 500.
+     * 
+ * + * int32 page_size = 2; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * A page token, received from a previous `ListClusters` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListClusters`
+     * must match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A page token, received from a previous `ListClusters` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListClusters`
+     * must match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @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; + } + } + /** + * + * + *
+     * A page token, received from a previous `ListClusters` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListClusters`
+     * must match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @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; + onChanged(); + return this; + } + /** + * + * + *
+     * A page token, received from a previous `ListClusters` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListClusters`
+     * must match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + + pageToken_ = getDefaultInstance().getPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * A page token, received from a previous `ListClusters` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListClusters`
+     * must match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + pageToken_ = value; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + /** + * + * + *
+     * To filter on multiple expressions, provide each separate expression within
+     * parentheses. For example:
+     * ```
+     * (name = "example-cluster")
+     * (nodeCount = "3")
+     * ```
+     * By default, each expression is an `AND` expression. However, you can
+     * include `AND` and `OR` expressions explicitly. For example:
+     * ```
+     * (name = "example-cluster-1") AND
+     * (createTime > "2021-04-12T08:15:10.40Z") OR
+     * (name = "example-cluster-2")
+     * ```
+     * 
+ * + * string filter = 4; + * + * @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; + } + } + /** + * + * + *
+     * To filter on multiple expressions, provide each separate expression within
+     * parentheses. For example:
+     * ```
+     * (name = "example-cluster")
+     * (nodeCount = "3")
+     * ```
+     * By default, each expression is an `AND` expression. However, you can
+     * include `AND` and `OR` expressions explicitly. For example:
+     * ```
+     * (name = "example-cluster-1") AND
+     * (createTime > "2021-04-12T08:15:10.40Z") OR
+     * (name = "example-cluster-2")
+     * ```
+     * 
+ * + * string filter = 4; + * + * @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; + } + } + /** + * + * + *
+     * To filter on multiple expressions, provide each separate expression within
+     * parentheses. For example:
+     * ```
+     * (name = "example-cluster")
+     * (nodeCount = "3")
+     * ```
+     * By default, each expression is an `AND` expression. However, you can
+     * include `AND` and `OR` expressions explicitly. For example:
+     * ```
+     * (name = "example-cluster-1") AND
+     * (createTime > "2021-04-12T08:15:10.40Z") OR
+     * (name = "example-cluster-2")
+     * ```
+     * 
+ * + * string filter = 4; + * + * @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; + onChanged(); + return this; + } + /** + * + * + *
+     * To filter on multiple expressions, provide each separate expression within
+     * parentheses. For example:
+     * ```
+     * (name = "example-cluster")
+     * (nodeCount = "3")
+     * ```
+     * By default, each expression is an `AND` expression. However, you can
+     * include `AND` and `OR` expressions explicitly. For example:
+     * ```
+     * (name = "example-cluster-1") AND
+     * (createTime > "2021-04-12T08:15:10.40Z") OR
+     * (name = "example-cluster-2")
+     * ```
+     * 
+ * + * string filter = 4; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + + filter_ = getDefaultInstance().getFilter(); + onChanged(); + return this; + } + /** + * + * + *
+     * To filter on multiple expressions, provide each separate expression within
+     * parentheses. For example:
+     * ```
+     * (name = "example-cluster")
+     * (nodeCount = "3")
+     * ```
+     * By default, each expression is an `AND` expression. However, you can
+     * include `AND` and `OR` expressions explicitly. For example:
+     * ```
+     * (name = "example-cluster-1") AND
+     * (createTime > "2021-04-12T08:15:10.40Z") OR
+     * (name = "example-cluster-2")
+     * ```
+     * 
+ * + * string filter = 4; + * + * @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; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + /** + * + * + *
+     * Sorts list results by a certain order. By default, returned results are
+     * ordered by `name` in ascending order. You can also sort results in
+     * descending order based on the `name` value using `orderBy="name desc"`.
+     * Currently, only ordering by `name` is supported.
+     * 
+ * + * string order_by = 5; + * + * @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, returned results are
+     * ordered by `name` in ascending order. You can also sort results in
+     * descending order based on the `name` value using `orderBy="name desc"`.
+     * Currently, only ordering by `name` is supported.
+     * 
+ * + * string order_by = 5; + * + * @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, returned results are
+     * ordered by `name` in ascending order. You can also sort results in
+     * descending order based on the `name` value using `orderBy="name desc"`.
+     * Currently, only ordering by `name` is supported.
+     * 
+ * + * string order_by = 5; + * + * @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; + onChanged(); + return this; + } + /** + * + * + *
+     * Sorts list results by a certain order. By default, returned results are
+     * ordered by `name` in ascending order. You can also sort results in
+     * descending order based on the `name` value using `orderBy="name desc"`.
+     * Currently, only ordering by `name` is supported.
+     * 
+ * + * string order_by = 5; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + + orderBy_ = getDefaultInstance().getOrderBy(); + onChanged(); + return this; + } + /** + * + * + *
+     * Sorts list results by a certain order. By default, returned results are
+     * ordered by `name` in ascending order. You can also sort results in
+     * descending order based on the `name` value using `orderBy="name desc"`.
+     * Currently, only ordering by `name` is supported.
+     * 
+ * + * string order_by = 5; + * + * @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; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.vmwareengine.v1.ListClustersRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmwareengine.v1.ListClustersRequest) + private static final com.google.cloud.vmwareengine.v1.ListClustersRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmwareengine.v1.ListClustersRequest(); + } + + public static com.google.cloud.vmwareengine.v1.ListClustersRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListClustersRequest 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.vmwareengine.v1.ListClustersRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListClustersRequestOrBuilder.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListClustersRequestOrBuilder.java new file mode 100644 index 000000000000..5f7d18dd32fe --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListClustersRequestOrBuilder.java @@ -0,0 +1,189 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmwareengine/v1/vmwareengine.proto + +package com.google.cloud.vmwareengine.v1; + +public interface ListClustersRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmwareengine.v1.ListClustersRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the private cloud to query for clusters.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The resource name of the private cloud to query for clusters.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * The maximum number of clusters to return in one page.
+   * The service may return fewer than this value.
+   * The maximum value is coerced to 1000.
+   * The default value of this field is 500.
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * A page token, received from a previous `ListClusters` call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to `ListClusters`
+   * must match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * A page token, received from a previous `ListClusters` call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to `ListClusters`
+   * must match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * To filter on multiple expressions, provide each separate expression within
+   * parentheses. For example:
+   * ```
+   * (name = "example-cluster")
+   * (nodeCount = "3")
+   * ```
+   * By default, each expression is an `AND` expression. However, you can
+   * include `AND` and `OR` expressions explicitly. For example:
+   * ```
+   * (name = "example-cluster-1") AND
+   * (createTime > "2021-04-12T08:15:10.40Z") OR
+   * (name = "example-cluster-2")
+   * ```
+   * 
+ * + * string filter = 4; + * + * @return The filter. + */ + java.lang.String getFilter(); + /** + * + * + *
+   * To filter on multiple expressions, provide each separate expression within
+   * parentheses. For example:
+   * ```
+   * (name = "example-cluster")
+   * (nodeCount = "3")
+   * ```
+   * By default, each expression is an `AND` expression. However, you can
+   * include `AND` and `OR` expressions explicitly. For example:
+   * ```
+   * (name = "example-cluster-1") AND
+   * (createTime > "2021-04-12T08:15:10.40Z") OR
+   * (name = "example-cluster-2")
+   * ```
+   * 
+ * + * string filter = 4; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * Sorts list results by a certain order. By default, returned results are
+   * ordered by `name` in ascending order. You can also sort results in
+   * descending order based on the `name` value using `orderBy="name desc"`.
+   * Currently, only ordering by `name` is supported.
+   * 
+ * + * string order_by = 5; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + /** + * + * + *
+   * Sorts list results by a certain order. By default, returned results are
+   * ordered by `name` in ascending order. You can also sort results in
+   * descending order based on the `name` value using `orderBy="name desc"`.
+   * Currently, only ordering by `name` is supported.
+   * 
+ * + * string order_by = 5; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListClustersResponse.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListClustersResponse.java new file mode 100644 index 000000000000..ea84b8bfb1ff --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListClustersResponse.java @@ -0,0 +1,1395 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmwareengine/v1/vmwareengine.proto + +package com.google.cloud.vmwareengine.v1; + +/** + * + * + *
+ * Response message for [VmwareEngine.ListClusters][google.cloud.vmwareengine.v1.VmwareEngine.ListClusters]
+ * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.ListClustersResponse} + */ +public final class ListClustersResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmwareengine.v1.ListClustersResponse) + ListClustersResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListClustersResponse.newBuilder() to construct. + private ListClustersResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListClustersResponse() { + clusters_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListClustersResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListClustersResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListClustersResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.ListClustersResponse.class, + com.google.cloud.vmwareengine.v1.ListClustersResponse.Builder.class); + } + + public static final int CLUSTERS_FIELD_NUMBER = 1; + private java.util.List clusters_; + /** + * + * + *
+   * A list of private cloud clusters.
+   * 
+ * + * repeated .google.cloud.vmwareengine.v1.Cluster clusters = 1; + */ + @java.lang.Override + public java.util.List getClustersList() { + return clusters_; + } + /** + * + * + *
+   * A list of private cloud clusters.
+   * 
+ * + * repeated .google.cloud.vmwareengine.v1.Cluster clusters = 1; + */ + @java.lang.Override + public java.util.List + getClustersOrBuilderList() { + return clusters_; + } + /** + * + * + *
+   * A list of private cloud clusters.
+   * 
+ * + * repeated .google.cloud.vmwareengine.v1.Cluster clusters = 1; + */ + @java.lang.Override + public int getClustersCount() { + return clusters_.size(); + } + /** + * + * + *
+   * A list of private cloud clusters.
+   * 
+ * + * repeated .google.cloud.vmwareengine.v1.Cluster clusters = 1; + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.Cluster getClusters(int index) { + return clusters_.get(index); + } + /** + * + * + *
+   * A list of private cloud clusters.
+   * 
+ * + * repeated .google.cloud.vmwareengine.v1.Cluster clusters = 1; + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ClusterOrBuilder getClustersOrBuilder(int index) { + return clusters_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object nextPageToken_; + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UNREACHABLE_FIELD_NUMBER = 3; + private com.google.protobuf.LazyStringList unreachable_; + /** + * + * + *
+   * Locations that could not be reached when making an aggregated query using
+   * wildcards.
+   * 
+ * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_; + } + /** + * + * + *
+   * Locations that could not be reached when making an aggregated query using
+   * wildcards.
+   * 
+ * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + /** + * + * + *
+   * Locations that could not be reached when making an aggregated query using
+   * wildcards.
+   * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + /** + * + * + *
+   * Locations that could not be reached when making an aggregated query using
+   * wildcards.
+   * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < clusters_.size(); i++) { + output.writeMessage(1, clusters_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, unreachable_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < clusters_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, clusters_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + { + int dataSize = 0; + for (int i = 0; i < unreachable_.size(); i++) { + dataSize += computeStringSizeNoTag(unreachable_.getRaw(i)); + } + size += dataSize; + size += 1 * getUnreachableList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.vmwareengine.v1.ListClustersResponse)) { + return super.equals(obj); + } + com.google.cloud.vmwareengine.v1.ListClustersResponse other = + (com.google.cloud.vmwareengine.v1.ListClustersResponse) obj; + + if (!getClustersList().equals(other.getClustersList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getClustersCount() > 0) { + hash = (37 * hash) + CLUSTERS_FIELD_NUMBER; + hash = (53 * hash) + getClustersList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + if (getUnreachableCount() > 0) { + hash = (37 * hash) + UNREACHABLE_FIELD_NUMBER; + hash = (53 * hash) + getUnreachableList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmwareengine.v1.ListClustersResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.ListClustersResponse 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.vmwareengine.v1.ListClustersResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.ListClustersResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.ListClustersResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.ListClustersResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.ListClustersResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.ListClustersResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.ListClustersResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.ListClustersResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.ListClustersResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.ListClustersResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.vmwareengine.v1.ListClustersResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Response message for [VmwareEngine.ListClusters][google.cloud.vmwareengine.v1.VmwareEngine.ListClusters]
+   * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.ListClustersResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmwareengine.v1.ListClustersResponse) + com.google.cloud.vmwareengine.v1.ListClustersResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListClustersResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListClustersResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.ListClustersResponse.class, + com.google.cloud.vmwareengine.v1.ListClustersResponse.Builder.class); + } + + // Construct using com.google.cloud.vmwareengine.v1.ListClustersResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (clustersBuilder_ == null) { + clusters_ = java.util.Collections.emptyList(); + } else { + clusters_ = null; + clustersBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + + unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListClustersResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ListClustersResponse getDefaultInstanceForType() { + return com.google.cloud.vmwareengine.v1.ListClustersResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ListClustersResponse build() { + com.google.cloud.vmwareengine.v1.ListClustersResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ListClustersResponse buildPartial() { + com.google.cloud.vmwareengine.v1.ListClustersResponse result = + new com.google.cloud.vmwareengine.v1.ListClustersResponse(this); + int from_bitField0_ = bitField0_; + if (clustersBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + clusters_ = java.util.Collections.unmodifiableList(clusters_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.clusters_ = clusters_; + } else { + result.clusters_ = clustersBuilder_.build(); + } + result.nextPageToken_ = nextPageToken_; + if (((bitField0_ & 0x00000002) != 0)) { + unreachable_ = unreachable_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.unreachable_ = unreachable_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.vmwareengine.v1.ListClustersResponse) { + return mergeFrom((com.google.cloud.vmwareengine.v1.ListClustersResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmwareengine.v1.ListClustersResponse other) { + if (other == com.google.cloud.vmwareengine.v1.ListClustersResponse.getDefaultInstance()) + return this; + if (clustersBuilder_ == null) { + if (!other.clusters_.isEmpty()) { + if (clusters_.isEmpty()) { + clusters_ = other.clusters_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureClustersIsMutable(); + clusters_.addAll(other.clusters_); + } + onChanged(); + } + } else { + if (!other.clusters_.isEmpty()) { + if (clustersBuilder_.isEmpty()) { + clustersBuilder_.dispose(); + clustersBuilder_ = null; + clusters_ = other.clusters_; + bitField0_ = (bitField0_ & ~0x00000001); + clustersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getClustersFieldBuilder() + : null; + } else { + clustersBuilder_.addAllMessages(other.clusters_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + onChanged(); + } + if (!other.unreachable_.isEmpty()) { + if (unreachable_.isEmpty()) { + unreachable_ = other.unreachable_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureUnreachableIsMutable(); + unreachable_.addAll(other.unreachable_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.vmwareengine.v1.Cluster m = + input.readMessage( + com.google.cloud.vmwareengine.v1.Cluster.parser(), extensionRegistry); + if (clustersBuilder_ == null) { + ensureClustersIsMutable(); + clusters_.add(m); + } else { + clustersBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List clusters_ = + java.util.Collections.emptyList(); + + private void ensureClustersIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + clusters_ = new java.util.ArrayList(clusters_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vmwareengine.v1.Cluster, + com.google.cloud.vmwareengine.v1.Cluster.Builder, + com.google.cloud.vmwareengine.v1.ClusterOrBuilder> + clustersBuilder_; + + /** + * + * + *
+     * A list of private cloud clusters.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.Cluster clusters = 1; + */ + public java.util.List getClustersList() { + if (clustersBuilder_ == null) { + return java.util.Collections.unmodifiableList(clusters_); + } else { + return clustersBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * A list of private cloud clusters.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.Cluster clusters = 1; + */ + public int getClustersCount() { + if (clustersBuilder_ == null) { + return clusters_.size(); + } else { + return clustersBuilder_.getCount(); + } + } + /** + * + * + *
+     * A list of private cloud clusters.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.Cluster clusters = 1; + */ + public com.google.cloud.vmwareengine.v1.Cluster getClusters(int index) { + if (clustersBuilder_ == null) { + return clusters_.get(index); + } else { + return clustersBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * A list of private cloud clusters.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.Cluster clusters = 1; + */ + public Builder setClusters(int index, com.google.cloud.vmwareengine.v1.Cluster value) { + if (clustersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureClustersIsMutable(); + clusters_.set(index, value); + onChanged(); + } else { + clustersBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * A list of private cloud clusters.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.Cluster clusters = 1; + */ + public Builder setClusters( + int index, com.google.cloud.vmwareengine.v1.Cluster.Builder builderForValue) { + if (clustersBuilder_ == null) { + ensureClustersIsMutable(); + clusters_.set(index, builderForValue.build()); + onChanged(); + } else { + clustersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of private cloud clusters.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.Cluster clusters = 1; + */ + public Builder addClusters(com.google.cloud.vmwareengine.v1.Cluster value) { + if (clustersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureClustersIsMutable(); + clusters_.add(value); + onChanged(); + } else { + clustersBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * A list of private cloud clusters.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.Cluster clusters = 1; + */ + public Builder addClusters(int index, com.google.cloud.vmwareengine.v1.Cluster value) { + if (clustersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureClustersIsMutable(); + clusters_.add(index, value); + onChanged(); + } else { + clustersBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * A list of private cloud clusters.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.Cluster clusters = 1; + */ + public Builder addClusters(com.google.cloud.vmwareengine.v1.Cluster.Builder builderForValue) { + if (clustersBuilder_ == null) { + ensureClustersIsMutable(); + clusters_.add(builderForValue.build()); + onChanged(); + } else { + clustersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of private cloud clusters.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.Cluster clusters = 1; + */ + public Builder addClusters( + int index, com.google.cloud.vmwareengine.v1.Cluster.Builder builderForValue) { + if (clustersBuilder_ == null) { + ensureClustersIsMutable(); + clusters_.add(index, builderForValue.build()); + onChanged(); + } else { + clustersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of private cloud clusters.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.Cluster clusters = 1; + */ + public Builder addAllClusters( + java.lang.Iterable values) { + if (clustersBuilder_ == null) { + ensureClustersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, clusters_); + onChanged(); + } else { + clustersBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * A list of private cloud clusters.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.Cluster clusters = 1; + */ + public Builder clearClusters() { + if (clustersBuilder_ == null) { + clusters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + clustersBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A list of private cloud clusters.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.Cluster clusters = 1; + */ + public Builder removeClusters(int index) { + if (clustersBuilder_ == null) { + ensureClustersIsMutable(); + clusters_.remove(index); + onChanged(); + } else { + clustersBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * A list of private cloud clusters.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.Cluster clusters = 1; + */ + public com.google.cloud.vmwareengine.v1.Cluster.Builder getClustersBuilder(int index) { + return getClustersFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * A list of private cloud clusters.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.Cluster clusters = 1; + */ + public com.google.cloud.vmwareengine.v1.ClusterOrBuilder getClustersOrBuilder(int index) { + if (clustersBuilder_ == null) { + return clusters_.get(index); + } else { + return clustersBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * A list of private cloud clusters.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.Cluster clusters = 1; + */ + public java.util.List + getClustersOrBuilderList() { + if (clustersBuilder_ != null) { + return clustersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(clusters_); + } + } + /** + * + * + *
+     * A list of private cloud clusters.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.Cluster clusters = 1; + */ + public com.google.cloud.vmwareengine.v1.Cluster.Builder addClustersBuilder() { + return getClustersFieldBuilder() + .addBuilder(com.google.cloud.vmwareengine.v1.Cluster.getDefaultInstance()); + } + /** + * + * + *
+     * A list of private cloud clusters.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.Cluster clusters = 1; + */ + public com.google.cloud.vmwareengine.v1.Cluster.Builder addClustersBuilder(int index) { + return getClustersFieldBuilder() + .addBuilder(index, com.google.cloud.vmwareengine.v1.Cluster.getDefaultInstance()); + } + /** + * + * + *
+     * A list of private cloud clusters.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.Cluster clusters = 1; + */ + public java.util.List + getClustersBuilderList() { + return getClustersFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vmwareengine.v1.Cluster, + com.google.cloud.vmwareengine.v1.Cluster.Builder, + com.google.cloud.vmwareengine.v1.ClusterOrBuilder> + getClustersFieldBuilder() { + if (clustersBuilder_ == null) { + clustersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vmwareengine.v1.Cluster, + com.google.cloud.vmwareengine.v1.Cluster.Builder, + com.google.cloud.vmwareengine.v1.ClusterOrBuilder>( + clusters_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + clusters_ = null; + } + return clustersBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nextPageToken_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + + nextPageToken_ = getDefaultInstance().getNextPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nextPageToken_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList unreachable_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureUnreachableIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); + bitField0_ |= 0x00000002; + } + } + /** + * + * + *
+     * Locations that could not be reached when making an aggregated query using
+     * wildcards.
+     * 
+ * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_.getUnmodifiableView(); + } + /** + * + * + *
+     * Locations that could not be reached when making an aggregated query using
+     * wildcards.
+     * 
+ * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + /** + * + * + *
+     * Locations that could not be reached when making an aggregated query using
+     * wildcards.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + /** + * + * + *
+     * Locations that could not be reached when making an aggregated query using
+     * wildcards.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + /** + * + * + *
+     * Locations that could not be reached when making an aggregated query using
+     * wildcards.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param index The index to set the value at. + * @param value The unreachable to set. + * @return This builder for chaining. + */ + public Builder setUnreachable(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Locations that could not be reached when making an aggregated query using
+     * wildcards.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param value The unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Locations that could not be reached when making an aggregated query using
+     * wildcards.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param values The unreachable to add. + * @return This builder for chaining. + */ + public Builder addAllUnreachable(java.lang.Iterable values) { + ensureUnreachableIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + onChanged(); + return this; + } + /** + * + * + *
+     * Locations that could not be reached when making an aggregated query using
+     * wildcards.
+     * 
+ * + * repeated string unreachable = 3; + * + * @return This builder for chaining. + */ + public Builder clearUnreachable() { + unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Locations that could not be reached when making an aggregated query using
+     * wildcards.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param value The bytes of the unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureUnreachableIsMutable(); + unreachable_.add(value); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.vmwareengine.v1.ListClustersResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmwareengine.v1.ListClustersResponse) + private static final com.google.cloud.vmwareengine.v1.ListClustersResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmwareengine.v1.ListClustersResponse(); + } + + public static com.google.cloud.vmwareengine.v1.ListClustersResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListClustersResponse 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.vmwareengine.v1.ListClustersResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListClustersResponseOrBuilder.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListClustersResponseOrBuilder.java new file mode 100644 index 000000000000..85f0d8844ae3 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListClustersResponseOrBuilder.java @@ -0,0 +1,159 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmwareengine/v1/vmwareengine.proto + +package com.google.cloud.vmwareengine.v1; + +public interface ListClustersResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmwareengine.v1.ListClustersResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * A list of private cloud clusters.
+   * 
+ * + * repeated .google.cloud.vmwareengine.v1.Cluster clusters = 1; + */ + java.util.List getClustersList(); + /** + * + * + *
+   * A list of private cloud clusters.
+   * 
+ * + * repeated .google.cloud.vmwareengine.v1.Cluster clusters = 1; + */ + com.google.cloud.vmwareengine.v1.Cluster getClusters(int index); + /** + * + * + *
+   * A list of private cloud clusters.
+   * 
+ * + * repeated .google.cloud.vmwareengine.v1.Cluster clusters = 1; + */ + int getClustersCount(); + /** + * + * + *
+   * A list of private cloud clusters.
+   * 
+ * + * repeated .google.cloud.vmwareengine.v1.Cluster clusters = 1; + */ + java.util.List + getClustersOrBuilderList(); + /** + * + * + *
+   * A list of private cloud clusters.
+   * 
+ * + * repeated .google.cloud.vmwareengine.v1.Cluster clusters = 1; + */ + com.google.cloud.vmwareengine.v1.ClusterOrBuilder getClustersOrBuilder(int index); + + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
+   * Locations that could not be reached when making an aggregated query using
+   * wildcards.
+   * 
+ * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + java.util.List getUnreachableList(); + /** + * + * + *
+   * Locations that could not be reached when making an aggregated query using
+   * wildcards.
+   * 
+ * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + int getUnreachableCount(); + /** + * + * + *
+   * Locations that could not be reached when making an aggregated query using
+   * wildcards.
+   * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + java.lang.String getUnreachable(int index); + /** + * + * + *
+   * Locations that could not be reached when making an aggregated query using
+   * wildcards.
+   * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + com.google.protobuf.ByteString getUnreachableBytes(int index); +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListHcxActivationKeysRequest.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListHcxActivationKeysRequest.java new file mode 100644 index 000000000000..55d547837c5c --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListHcxActivationKeysRequest.java @@ -0,0 +1,977 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmwareengine/v1/vmwareengine.proto + +package com.google.cloud.vmwareengine.v1; + +/** + * + * + *
+ * Request message for [VmwareEngine.ListHcxActivationKeys][google.cloud.vmwareengine.v1.VmwareEngine.ListHcxActivationKeys]
+ * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest} + */ +public final class ListHcxActivationKeysRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest) + ListHcxActivationKeysRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListHcxActivationKeysRequest.newBuilder() to construct. + private ListHcxActivationKeysRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListHcxActivationKeysRequest() { + parent_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListHcxActivationKeysRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListHcxActivationKeysRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListHcxActivationKeysRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest.class, + com.google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required. The resource name of the private cloud
+   * to be queried for HCX activation keys.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-project/locations/us-central1/privateClouds/my-cloud`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The resource name of the private cloud
+   * to be queried for HCX activation keys.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-project/locations/us-central1/privateClouds/my-cloud`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_; + /** + * + * + *
+   * The maximum number of HCX activation keys to return in one page.
+   * The service may return fewer than this value.
+   * The maximum value is coerced to 1000.
+   * The default value of this field is 500.
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + private volatile java.lang.Object pageToken_; + /** + * + * + *
+   * A page token, received from a previous `ListHcxActivationKeys` call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to
+   * `ListHcxActivationKeys` must match the call that provided the page
+   * token.
+   * 
+ * + * string page_token = 3; + * + * @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; + } + } + /** + * + * + *
+   * A page token, received from a previous `ListHcxActivationKeys` call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to
+   * `ListHcxActivationKeys` must match the call that provided the page
+   * token.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest)) { + return super.equals(obj); + } + com.google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest other = + (com.google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest 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.vmwareengine.v1.ListHcxActivationKeysRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for [VmwareEngine.ListHcxActivationKeys][google.cloud.vmwareengine.v1.VmwareEngine.ListHcxActivationKeys]
+   * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest) + com.google.cloud.vmwareengine.v1.ListHcxActivationKeysRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListHcxActivationKeysRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListHcxActivationKeysRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest.class, + com.google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest.Builder.class); + } + + // Construct using com.google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + pageSize_ = 0; + + pageToken_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListHcxActivationKeysRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest + getDefaultInstanceForType() { + return com.google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest build() { + com.google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest buildPartial() { + com.google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest result = + new com.google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest(this); + result.parent_ = parent_; + result.pageSize_ = pageSize_; + result.pageToken_ = pageToken_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest) { + return mergeFrom((com.google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest other) { + if (other + == com.google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The resource name of the private cloud
+     * to be queried for HCX activation keys.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-central1/privateClouds/my-cloud`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the private cloud
+     * to be queried for HCX activation keys.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-central1/privateClouds/my-cloud`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the private cloud
+     * to be queried for HCX activation keys.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-central1/privateClouds/my-cloud`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the private cloud
+     * to be queried for HCX activation keys.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-central1/privateClouds/my-cloud`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the private cloud
+     * to be queried for HCX activation keys.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-central1/privateClouds/my-cloud`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * The maximum number of HCX activation keys to return in one page.
+     * The service may return fewer than this value.
+     * The maximum value is coerced to 1000.
+     * The default value of this field is 500.
+     * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * The maximum number of HCX activation keys to return in one page.
+     * The service may return fewer than this value.
+     * The maximum value is coerced to 1000.
+     * The default value of this field is 500.
+     * 
+ * + * int32 page_size = 2; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The maximum number of HCX activation keys to return in one page.
+     * The service may return fewer than this value.
+     * The maximum value is coerced to 1000.
+     * The default value of this field is 500.
+     * 
+ * + * int32 page_size = 2; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * A page token, received from a previous `ListHcxActivationKeys` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to
+     * `ListHcxActivationKeys` must match the call that provided the page
+     * token.
+     * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A page token, received from a previous `ListHcxActivationKeys` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to
+     * `ListHcxActivationKeys` must match the call that provided the page
+     * token.
+     * 
+ * + * string page_token = 3; + * + * @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; + } + } + /** + * + * + *
+     * A page token, received from a previous `ListHcxActivationKeys` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to
+     * `ListHcxActivationKeys` must match the call that provided the page
+     * token.
+     * 
+ * + * string page_token = 3; + * + * @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; + onChanged(); + return this; + } + /** + * + * + *
+     * A page token, received from a previous `ListHcxActivationKeys` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to
+     * `ListHcxActivationKeys` must match the call that provided the page
+     * token.
+     * 
+ * + * string page_token = 3; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + + pageToken_ = getDefaultInstance().getPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * A page token, received from a previous `ListHcxActivationKeys` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to
+     * `ListHcxActivationKeys` must match the call that provided the page
+     * token.
+     * 
+ * + * string page_token = 3; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + pageToken_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest) + private static final com.google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest(); + } + + public static com.google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListHcxActivationKeysRequest 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.vmwareengine.v1.ListHcxActivationKeysRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListHcxActivationKeysRequestOrBuilder.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListHcxActivationKeysRequestOrBuilder.java new file mode 100644 index 000000000000..87441f58092e --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListHcxActivationKeysRequestOrBuilder.java @@ -0,0 +1,113 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmwareengine/v1/vmwareengine.proto + +package com.google.cloud.vmwareengine.v1; + +public interface ListHcxActivationKeysRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the private cloud
+   * to be queried for HCX activation keys.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-project/locations/us-central1/privateClouds/my-cloud`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The resource name of the private cloud
+   * to be queried for HCX activation keys.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-project/locations/us-central1/privateClouds/my-cloud`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * The maximum number of HCX activation keys to return in one page.
+   * The service may return fewer than this value.
+   * The maximum value is coerced to 1000.
+   * The default value of this field is 500.
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * A page token, received from a previous `ListHcxActivationKeys` call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to
+   * `ListHcxActivationKeys` must match the call that provided the page
+   * token.
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * A page token, received from a previous `ListHcxActivationKeys` call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to
+   * `ListHcxActivationKeys` must match the call that provided the page
+   * token.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListHcxActivationKeysResponse.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListHcxActivationKeysResponse.java new file mode 100644 index 000000000000..abe9480a2a74 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListHcxActivationKeysResponse.java @@ -0,0 +1,1417 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmwareengine/v1/vmwareengine.proto + +package com.google.cloud.vmwareengine.v1; + +/** + * + * + *
+ * Response message for [VmwareEngine.ListHcxActivationKeys][google.cloud.vmwareengine.v1.VmwareEngine.ListHcxActivationKeys]
+ * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse} + */ +public final class ListHcxActivationKeysResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse) + ListHcxActivationKeysResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListHcxActivationKeysResponse.newBuilder() to construct. + private ListHcxActivationKeysResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListHcxActivationKeysResponse() { + hcxActivationKeys_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListHcxActivationKeysResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListHcxActivationKeysResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListHcxActivationKeysResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse.class, + com.google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse.Builder.class); + } + + public static final int HCX_ACTIVATION_KEYS_FIELD_NUMBER = 1; + private java.util.List hcxActivationKeys_; + /** + * + * + *
+   * List of HCX activation keys.
+   * 
+ * + * repeated .google.cloud.vmwareengine.v1.HcxActivationKey hcx_activation_keys = 1; + */ + @java.lang.Override + public java.util.List + getHcxActivationKeysList() { + return hcxActivationKeys_; + } + /** + * + * + *
+   * List of HCX activation keys.
+   * 
+ * + * repeated .google.cloud.vmwareengine.v1.HcxActivationKey hcx_activation_keys = 1; + */ + @java.lang.Override + public java.util.List + getHcxActivationKeysOrBuilderList() { + return hcxActivationKeys_; + } + /** + * + * + *
+   * List of HCX activation keys.
+   * 
+ * + * repeated .google.cloud.vmwareengine.v1.HcxActivationKey hcx_activation_keys = 1; + */ + @java.lang.Override + public int getHcxActivationKeysCount() { + return hcxActivationKeys_.size(); + } + /** + * + * + *
+   * List of HCX activation keys.
+   * 
+ * + * repeated .google.cloud.vmwareengine.v1.HcxActivationKey hcx_activation_keys = 1; + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.HcxActivationKey getHcxActivationKeys(int index) { + return hcxActivationKeys_.get(index); + } + /** + * + * + *
+   * List of HCX activation keys.
+   * 
+ * + * repeated .google.cloud.vmwareengine.v1.HcxActivationKey hcx_activation_keys = 1; + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.HcxActivationKeyOrBuilder getHcxActivationKeysOrBuilder( + int index) { + return hcxActivationKeys_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object nextPageToken_; + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UNREACHABLE_FIELD_NUMBER = 3; + private com.google.protobuf.LazyStringList unreachable_; + /** + * + * + *
+   * Locations that could not be reached when making an aggregated query using
+   * wildcards.
+   * 
+ * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_; + } + /** + * + * + *
+   * Locations that could not be reached when making an aggregated query using
+   * wildcards.
+   * 
+ * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + /** + * + * + *
+   * Locations that could not be reached when making an aggregated query using
+   * wildcards.
+   * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + /** + * + * + *
+   * Locations that could not be reached when making an aggregated query using
+   * wildcards.
+   * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < hcxActivationKeys_.size(); i++) { + output.writeMessage(1, hcxActivationKeys_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, unreachable_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < hcxActivationKeys_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, hcxActivationKeys_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + { + int dataSize = 0; + for (int i = 0; i < unreachable_.size(); i++) { + dataSize += computeStringSizeNoTag(unreachable_.getRaw(i)); + } + size += dataSize; + size += 1 * getUnreachableList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse)) { + return super.equals(obj); + } + com.google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse other = + (com.google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse) obj; + + if (!getHcxActivationKeysList().equals(other.getHcxActivationKeysList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getHcxActivationKeysCount() > 0) { + hash = (37 * hash) + HCX_ACTIVATION_KEYS_FIELD_NUMBER; + hash = (53 * hash) + getHcxActivationKeysList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + if (getUnreachableCount() > 0) { + hash = (37 * hash) + UNREACHABLE_FIELD_NUMBER; + hash = (53 * hash) + getUnreachableList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse 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.vmwareengine.v1.ListHcxActivationKeysResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Response message for [VmwareEngine.ListHcxActivationKeys][google.cloud.vmwareengine.v1.VmwareEngine.ListHcxActivationKeys]
+   * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse) + com.google.cloud.vmwareengine.v1.ListHcxActivationKeysResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListHcxActivationKeysResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListHcxActivationKeysResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse.class, + com.google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse.Builder.class); + } + + // Construct using com.google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (hcxActivationKeysBuilder_ == null) { + hcxActivationKeys_ = java.util.Collections.emptyList(); + } else { + hcxActivationKeys_ = null; + hcxActivationKeysBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + + unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListHcxActivationKeysResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse + getDefaultInstanceForType() { + return com.google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse build() { + com.google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse buildPartial() { + com.google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse result = + new com.google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse(this); + int from_bitField0_ = bitField0_; + if (hcxActivationKeysBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + hcxActivationKeys_ = java.util.Collections.unmodifiableList(hcxActivationKeys_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.hcxActivationKeys_ = hcxActivationKeys_; + } else { + result.hcxActivationKeys_ = hcxActivationKeysBuilder_.build(); + } + result.nextPageToken_ = nextPageToken_; + if (((bitField0_ & 0x00000002) != 0)) { + unreachable_ = unreachable_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.unreachable_ = unreachable_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse) { + return mergeFrom((com.google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse other) { + if (other + == com.google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse.getDefaultInstance()) + return this; + if (hcxActivationKeysBuilder_ == null) { + if (!other.hcxActivationKeys_.isEmpty()) { + if (hcxActivationKeys_.isEmpty()) { + hcxActivationKeys_ = other.hcxActivationKeys_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureHcxActivationKeysIsMutable(); + hcxActivationKeys_.addAll(other.hcxActivationKeys_); + } + onChanged(); + } + } else { + if (!other.hcxActivationKeys_.isEmpty()) { + if (hcxActivationKeysBuilder_.isEmpty()) { + hcxActivationKeysBuilder_.dispose(); + hcxActivationKeysBuilder_ = null; + hcxActivationKeys_ = other.hcxActivationKeys_; + bitField0_ = (bitField0_ & ~0x00000001); + hcxActivationKeysBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getHcxActivationKeysFieldBuilder() + : null; + } else { + hcxActivationKeysBuilder_.addAllMessages(other.hcxActivationKeys_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + onChanged(); + } + if (!other.unreachable_.isEmpty()) { + if (unreachable_.isEmpty()) { + unreachable_ = other.unreachable_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureUnreachableIsMutable(); + unreachable_.addAll(other.unreachable_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.vmwareengine.v1.HcxActivationKey m = + input.readMessage( + com.google.cloud.vmwareengine.v1.HcxActivationKey.parser(), + extensionRegistry); + if (hcxActivationKeysBuilder_ == null) { + ensureHcxActivationKeysIsMutable(); + hcxActivationKeys_.add(m); + } else { + hcxActivationKeysBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List hcxActivationKeys_ = + java.util.Collections.emptyList(); + + private void ensureHcxActivationKeysIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + hcxActivationKeys_ = + new java.util.ArrayList( + hcxActivationKeys_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vmwareengine.v1.HcxActivationKey, + com.google.cloud.vmwareengine.v1.HcxActivationKey.Builder, + com.google.cloud.vmwareengine.v1.HcxActivationKeyOrBuilder> + hcxActivationKeysBuilder_; + + /** + * + * + *
+     * List of HCX activation keys.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.HcxActivationKey hcx_activation_keys = 1; + */ + public java.util.List + getHcxActivationKeysList() { + if (hcxActivationKeysBuilder_ == null) { + return java.util.Collections.unmodifiableList(hcxActivationKeys_); + } else { + return hcxActivationKeysBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * List of HCX activation keys.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.HcxActivationKey hcx_activation_keys = 1; + */ + public int getHcxActivationKeysCount() { + if (hcxActivationKeysBuilder_ == null) { + return hcxActivationKeys_.size(); + } else { + return hcxActivationKeysBuilder_.getCount(); + } + } + /** + * + * + *
+     * List of HCX activation keys.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.HcxActivationKey hcx_activation_keys = 1; + */ + public com.google.cloud.vmwareengine.v1.HcxActivationKey getHcxActivationKeys(int index) { + if (hcxActivationKeysBuilder_ == null) { + return hcxActivationKeys_.get(index); + } else { + return hcxActivationKeysBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * List of HCX activation keys.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.HcxActivationKey hcx_activation_keys = 1; + */ + public Builder setHcxActivationKeys( + int index, com.google.cloud.vmwareengine.v1.HcxActivationKey value) { + if (hcxActivationKeysBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureHcxActivationKeysIsMutable(); + hcxActivationKeys_.set(index, value); + onChanged(); + } else { + hcxActivationKeysBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of HCX activation keys.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.HcxActivationKey hcx_activation_keys = 1; + */ + public Builder setHcxActivationKeys( + int index, com.google.cloud.vmwareengine.v1.HcxActivationKey.Builder builderForValue) { + if (hcxActivationKeysBuilder_ == null) { + ensureHcxActivationKeysIsMutable(); + hcxActivationKeys_.set(index, builderForValue.build()); + onChanged(); + } else { + hcxActivationKeysBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of HCX activation keys.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.HcxActivationKey hcx_activation_keys = 1; + */ + public Builder addHcxActivationKeys(com.google.cloud.vmwareengine.v1.HcxActivationKey value) { + if (hcxActivationKeysBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureHcxActivationKeysIsMutable(); + hcxActivationKeys_.add(value); + onChanged(); + } else { + hcxActivationKeysBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * List of HCX activation keys.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.HcxActivationKey hcx_activation_keys = 1; + */ + public Builder addHcxActivationKeys( + int index, com.google.cloud.vmwareengine.v1.HcxActivationKey value) { + if (hcxActivationKeysBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureHcxActivationKeysIsMutable(); + hcxActivationKeys_.add(index, value); + onChanged(); + } else { + hcxActivationKeysBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of HCX activation keys.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.HcxActivationKey hcx_activation_keys = 1; + */ + public Builder addHcxActivationKeys( + com.google.cloud.vmwareengine.v1.HcxActivationKey.Builder builderForValue) { + if (hcxActivationKeysBuilder_ == null) { + ensureHcxActivationKeysIsMutable(); + hcxActivationKeys_.add(builderForValue.build()); + onChanged(); + } else { + hcxActivationKeysBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of HCX activation keys.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.HcxActivationKey hcx_activation_keys = 1; + */ + public Builder addHcxActivationKeys( + int index, com.google.cloud.vmwareengine.v1.HcxActivationKey.Builder builderForValue) { + if (hcxActivationKeysBuilder_ == null) { + ensureHcxActivationKeysIsMutable(); + hcxActivationKeys_.add(index, builderForValue.build()); + onChanged(); + } else { + hcxActivationKeysBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of HCX activation keys.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.HcxActivationKey hcx_activation_keys = 1; + */ + public Builder addAllHcxActivationKeys( + java.lang.Iterable values) { + if (hcxActivationKeysBuilder_ == null) { + ensureHcxActivationKeysIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, hcxActivationKeys_); + onChanged(); + } else { + hcxActivationKeysBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * List of HCX activation keys.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.HcxActivationKey hcx_activation_keys = 1; + */ + public Builder clearHcxActivationKeys() { + if (hcxActivationKeysBuilder_ == null) { + hcxActivationKeys_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + hcxActivationKeysBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * List of HCX activation keys.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.HcxActivationKey hcx_activation_keys = 1; + */ + public Builder removeHcxActivationKeys(int index) { + if (hcxActivationKeysBuilder_ == null) { + ensureHcxActivationKeysIsMutable(); + hcxActivationKeys_.remove(index); + onChanged(); + } else { + hcxActivationKeysBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * List of HCX activation keys.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.HcxActivationKey hcx_activation_keys = 1; + */ + public com.google.cloud.vmwareengine.v1.HcxActivationKey.Builder getHcxActivationKeysBuilder( + int index) { + return getHcxActivationKeysFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * List of HCX activation keys.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.HcxActivationKey hcx_activation_keys = 1; + */ + public com.google.cloud.vmwareengine.v1.HcxActivationKeyOrBuilder getHcxActivationKeysOrBuilder( + int index) { + if (hcxActivationKeysBuilder_ == null) { + return hcxActivationKeys_.get(index); + } else { + return hcxActivationKeysBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * List of HCX activation keys.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.HcxActivationKey hcx_activation_keys = 1; + */ + public java.util.List + getHcxActivationKeysOrBuilderList() { + if (hcxActivationKeysBuilder_ != null) { + return hcxActivationKeysBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(hcxActivationKeys_); + } + } + /** + * + * + *
+     * List of HCX activation keys.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.HcxActivationKey hcx_activation_keys = 1; + */ + public com.google.cloud.vmwareengine.v1.HcxActivationKey.Builder addHcxActivationKeysBuilder() { + return getHcxActivationKeysFieldBuilder() + .addBuilder(com.google.cloud.vmwareengine.v1.HcxActivationKey.getDefaultInstance()); + } + /** + * + * + *
+     * List of HCX activation keys.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.HcxActivationKey hcx_activation_keys = 1; + */ + public com.google.cloud.vmwareengine.v1.HcxActivationKey.Builder addHcxActivationKeysBuilder( + int index) { + return getHcxActivationKeysFieldBuilder() + .addBuilder( + index, com.google.cloud.vmwareengine.v1.HcxActivationKey.getDefaultInstance()); + } + /** + * + * + *
+     * List of HCX activation keys.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.HcxActivationKey hcx_activation_keys = 1; + */ + public java.util.List + getHcxActivationKeysBuilderList() { + return getHcxActivationKeysFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vmwareengine.v1.HcxActivationKey, + com.google.cloud.vmwareengine.v1.HcxActivationKey.Builder, + com.google.cloud.vmwareengine.v1.HcxActivationKeyOrBuilder> + getHcxActivationKeysFieldBuilder() { + if (hcxActivationKeysBuilder_ == null) { + hcxActivationKeysBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vmwareengine.v1.HcxActivationKey, + com.google.cloud.vmwareengine.v1.HcxActivationKey.Builder, + com.google.cloud.vmwareengine.v1.HcxActivationKeyOrBuilder>( + hcxActivationKeys_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + hcxActivationKeys_ = null; + } + return hcxActivationKeysBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nextPageToken_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + + nextPageToken_ = getDefaultInstance().getNextPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nextPageToken_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList unreachable_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureUnreachableIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); + bitField0_ |= 0x00000002; + } + } + /** + * + * + *
+     * Locations that could not be reached when making an aggregated query using
+     * wildcards.
+     * 
+ * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_.getUnmodifiableView(); + } + /** + * + * + *
+     * Locations that could not be reached when making an aggregated query using
+     * wildcards.
+     * 
+ * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + /** + * + * + *
+     * Locations that could not be reached when making an aggregated query using
+     * wildcards.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + /** + * + * + *
+     * Locations that could not be reached when making an aggregated query using
+     * wildcards.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + /** + * + * + *
+     * Locations that could not be reached when making an aggregated query using
+     * wildcards.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param index The index to set the value at. + * @param value The unreachable to set. + * @return This builder for chaining. + */ + public Builder setUnreachable(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Locations that could not be reached when making an aggregated query using
+     * wildcards.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param value The unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Locations that could not be reached when making an aggregated query using
+     * wildcards.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param values The unreachable to add. + * @return This builder for chaining. + */ + public Builder addAllUnreachable(java.lang.Iterable values) { + ensureUnreachableIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + onChanged(); + return this; + } + /** + * + * + *
+     * Locations that could not be reached when making an aggregated query using
+     * wildcards.
+     * 
+ * + * repeated string unreachable = 3; + * + * @return This builder for chaining. + */ + public Builder clearUnreachable() { + unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Locations that could not be reached when making an aggregated query using
+     * wildcards.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param value The bytes of the unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureUnreachableIsMutable(); + unreachable_.add(value); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse) + private static final com.google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse(); + } + + public static com.google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListHcxActivationKeysResponse 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.vmwareengine.v1.ListHcxActivationKeysResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListHcxActivationKeysResponseOrBuilder.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListHcxActivationKeysResponseOrBuilder.java new file mode 100644 index 000000000000..1831fdd4d895 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListHcxActivationKeysResponseOrBuilder.java @@ -0,0 +1,160 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmwareengine/v1/vmwareengine.proto + +package com.google.cloud.vmwareengine.v1; + +public interface ListHcxActivationKeysResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * List of HCX activation keys.
+   * 
+ * + * repeated .google.cloud.vmwareengine.v1.HcxActivationKey hcx_activation_keys = 1; + */ + java.util.List getHcxActivationKeysList(); + /** + * + * + *
+   * List of HCX activation keys.
+   * 
+ * + * repeated .google.cloud.vmwareengine.v1.HcxActivationKey hcx_activation_keys = 1; + */ + com.google.cloud.vmwareengine.v1.HcxActivationKey getHcxActivationKeys(int index); + /** + * + * + *
+   * List of HCX activation keys.
+   * 
+ * + * repeated .google.cloud.vmwareengine.v1.HcxActivationKey hcx_activation_keys = 1; + */ + int getHcxActivationKeysCount(); + /** + * + * + *
+   * List of HCX activation keys.
+   * 
+ * + * repeated .google.cloud.vmwareengine.v1.HcxActivationKey hcx_activation_keys = 1; + */ + java.util.List + getHcxActivationKeysOrBuilderList(); + /** + * + * + *
+   * List of HCX activation keys.
+   * 
+ * + * repeated .google.cloud.vmwareengine.v1.HcxActivationKey hcx_activation_keys = 1; + */ + com.google.cloud.vmwareengine.v1.HcxActivationKeyOrBuilder getHcxActivationKeysOrBuilder( + int index); + + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
+   * Locations that could not be reached when making an aggregated query using
+   * wildcards.
+   * 
+ * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + java.util.List getUnreachableList(); + /** + * + * + *
+   * Locations that could not be reached when making an aggregated query using
+   * wildcards.
+   * 
+ * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + int getUnreachableCount(); + /** + * + * + *
+   * Locations that could not be reached when making an aggregated query using
+   * wildcards.
+   * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + java.lang.String getUnreachable(int index); + /** + * + * + *
+   * Locations that could not be reached when making an aggregated query using
+   * wildcards.
+   * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + com.google.protobuf.ByteString getUnreachableBytes(int index); +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListNetworkPoliciesRequest.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListNetworkPoliciesRequest.java new file mode 100644 index 000000000000..4d7d0531e420 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListNetworkPoliciesRequest.java @@ -0,0 +1,1491 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmwareengine/v1/vmwareengine.proto + +package com.google.cloud.vmwareengine.v1; + +/** + * + * + *
+ * Request message for [VmwareEngine.ListNetworkPolicies][google.cloud.vmwareengine.v1.VmwareEngine.ListNetworkPolicies]
+ * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest} + */ +public final class ListNetworkPoliciesRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest) + ListNetworkPoliciesRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListNetworkPoliciesRequest.newBuilder() to construct. + private ListNetworkPoliciesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListNetworkPoliciesRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListNetworkPoliciesRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListNetworkPoliciesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListNetworkPoliciesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest.class, + com.google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required. The resource name of the location (region) to query for
+   * network policies. Resource names are schemeless URIs that follow the
+   * conventions in https://cloud.google.com/apis/design/resource_names. For
+   * example: `projects/my-project/locations/us-central1`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The resource name of the location (region) to query for
+   * network policies. Resource names are schemeless URIs that follow the
+   * conventions in https://cloud.google.com/apis/design/resource_names. For
+   * example: `projects/my-project/locations/us-central1`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_; + /** + * + * + *
+   * The maximum number of network policies to return in one page.
+   * The service may return fewer than this value.
+   * The maximum value is coerced to 1000.
+   * The default value of this field is 500.
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + private volatile java.lang.Object pageToken_; + /** + * + * + *
+   * A page token, received from a previous `ListNetworkPolicies` call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to
+   * `ListNetworkPolicies` must match the call that provided the page
+   * token.
+   * 
+ * + * string page_token = 3; + * + * @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; + } + } + /** + * + * + *
+   * A page token, received from a previous `ListNetworkPolicies` call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to
+   * `ListNetworkPolicies` must match the call that provided the page
+   * token.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 4; + private volatile java.lang.Object filter_; + /** + * + * + *
+   * A filter expression that matches resources returned in the response.
+   * The expression must specify the field name, a comparison
+   * operator, and the value that you want to use for filtering. The value
+   * must be a string, a number, or a boolean. The comparison operator
+   * must be `=`, `!=`, `>`, or `<`.
+   * For example, if you are filtering a list of network policies, you can
+   * exclude the ones named `example-policy` by specifying
+   * `name != "example-policy"`.
+   * To filter on multiple expressions, provide each separate expression within
+   * parentheses. For example:
+   * ```
+   * (name = "example-policy")
+   * (createTime > "2021-04-12T08:15:10.40Z")
+   * ```
+   * By default, each expression is an `AND` expression. However, you
+   * can include `AND` and `OR` expressions explicitly.
+   * For example:
+   * ```
+   * (name = "example-policy-1") AND
+   * (createTime > "2021-04-12T08:15:10.40Z") OR
+   * (name = "example-policy-2")
+   * ```
+   * 
+ * + * string filter = 4; + * + * @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 matches resources returned in the response.
+   * The expression must specify the field name, a comparison
+   * operator, and the value that you want to use for filtering. The value
+   * must be a string, a number, or a boolean. The comparison operator
+   * must be `=`, `!=`, `>`, or `<`.
+   * For example, if you are filtering a list of network policies, you can
+   * exclude the ones named `example-policy` by specifying
+   * `name != "example-policy"`.
+   * To filter on multiple expressions, provide each separate expression within
+   * parentheses. For example:
+   * ```
+   * (name = "example-policy")
+   * (createTime > "2021-04-12T08:15:10.40Z")
+   * ```
+   * By default, each expression is an `AND` expression. However, you
+   * can include `AND` and `OR` expressions explicitly.
+   * For example:
+   * ```
+   * (name = "example-policy-1") AND
+   * (createTime > "2021-04-12T08:15:10.40Z") OR
+   * (name = "example-policy-2")
+   * ```
+   * 
+ * + * string filter = 4; + * + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 5; + private volatile java.lang.Object orderBy_; + /** + * + * + *
+   * Sorts list results by a certain order. By default, returned results
+   * are ordered by `name` in ascending order.
+   * You can also sort results in descending order based on the `name` value
+   * using `orderBy="name desc"`.
+   * Currently, only ordering by `name` is supported.
+   * 
+ * + * string order_by = 5; + * + * @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, returned results
+   * are ordered by `name` in ascending order.
+   * You can also sort results in descending order based on the `name` value
+   * using `orderBy="name desc"`.
+   * Currently, only ordering by `name` is supported.
+   * 
+ * + * string order_by = 5; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, orderBy_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, orderBy_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest)) { + return super.equals(obj); + } + com.google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest other = + (com.google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest 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.vmwareengine.v1.ListNetworkPoliciesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for [VmwareEngine.ListNetworkPolicies][google.cloud.vmwareengine.v1.VmwareEngine.ListNetworkPolicies]
+   * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest) + com.google.cloud.vmwareengine.v1.ListNetworkPoliciesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListNetworkPoliciesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListNetworkPoliciesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest.class, + com.google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest.Builder.class); + } + + // Construct using com.google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + pageSize_ = 0; + + pageToken_ = ""; + + filter_ = ""; + + orderBy_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListNetworkPoliciesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest getDefaultInstanceForType() { + return com.google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest build() { + com.google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest buildPartial() { + com.google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest result = + new com.google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest(this); + result.parent_ = parent_; + result.pageSize_ = pageSize_; + result.pageToken_ = pageToken_; + result.filter_ = filter_; + result.orderBy_ = orderBy_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest) { + return mergeFrom((com.google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest other) { + if (other == com.google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: + { + filter_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The resource name of the location (region) to query for
+     * network policies. Resource names are schemeless URIs that follow the
+     * conventions in https://cloud.google.com/apis/design/resource_names. For
+     * example: `projects/my-project/locations/us-central1`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the location (region) to query for
+     * network policies. Resource names are schemeless URIs that follow the
+     * conventions in https://cloud.google.com/apis/design/resource_names. For
+     * example: `projects/my-project/locations/us-central1`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the location (region) to query for
+     * network policies. Resource names are schemeless URIs that follow the
+     * conventions in https://cloud.google.com/apis/design/resource_names. For
+     * example: `projects/my-project/locations/us-central1`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the location (region) to query for
+     * network policies. Resource names are schemeless URIs that follow the
+     * conventions in https://cloud.google.com/apis/design/resource_names. For
+     * example: `projects/my-project/locations/us-central1`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the location (region) to query for
+     * network policies. Resource names are schemeless URIs that follow the
+     * conventions in https://cloud.google.com/apis/design/resource_names. For
+     * example: `projects/my-project/locations/us-central1`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * The maximum number of network policies to return in one page.
+     * The service may return fewer than this value.
+     * The maximum value is coerced to 1000.
+     * The default value of this field is 500.
+     * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * The maximum number of network policies to return in one page.
+     * The service may return fewer than this value.
+     * The maximum value is coerced to 1000.
+     * The default value of this field is 500.
+     * 
+ * + * int32 page_size = 2; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The maximum number of network policies to return in one page.
+     * The service may return fewer than this value.
+     * The maximum value is coerced to 1000.
+     * The default value of this field is 500.
+     * 
+ * + * int32 page_size = 2; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * A page token, received from a previous `ListNetworkPolicies` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to
+     * `ListNetworkPolicies` must match the call that provided the page
+     * token.
+     * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A page token, received from a previous `ListNetworkPolicies` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to
+     * `ListNetworkPolicies` must match the call that provided the page
+     * token.
+     * 
+ * + * string page_token = 3; + * + * @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; + } + } + /** + * + * + *
+     * A page token, received from a previous `ListNetworkPolicies` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to
+     * `ListNetworkPolicies` must match the call that provided the page
+     * token.
+     * 
+ * + * string page_token = 3; + * + * @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; + onChanged(); + return this; + } + /** + * + * + *
+     * A page token, received from a previous `ListNetworkPolicies` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to
+     * `ListNetworkPolicies` must match the call that provided the page
+     * token.
+     * 
+ * + * string page_token = 3; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + + pageToken_ = getDefaultInstance().getPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * A page token, received from a previous `ListNetworkPolicies` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to
+     * `ListNetworkPolicies` must match the call that provided the page
+     * token.
+     * 
+ * + * string page_token = 3; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + pageToken_ = value; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + /** + * + * + *
+     * A filter expression that matches resources returned in the response.
+     * The expression must specify the field name, a comparison
+     * operator, and the value that you want to use for filtering. The value
+     * must be a string, a number, or a boolean. The comparison operator
+     * must be `=`, `!=`, `>`, or `<`.
+     * For example, if you are filtering a list of network policies, you can
+     * exclude the ones named `example-policy` by specifying
+     * `name != "example-policy"`.
+     * To filter on multiple expressions, provide each separate expression within
+     * parentheses. For example:
+     * ```
+     * (name = "example-policy")
+     * (createTime > "2021-04-12T08:15:10.40Z")
+     * ```
+     * By default, each expression is an `AND` expression. However, you
+     * can include `AND` and `OR` expressions explicitly.
+     * For example:
+     * ```
+     * (name = "example-policy-1") AND
+     * (createTime > "2021-04-12T08:15:10.40Z") OR
+     * (name = "example-policy-2")
+     * ```
+     * 
+ * + * string filter = 4; + * + * @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 matches resources returned in the response.
+     * The expression must specify the field name, a comparison
+     * operator, and the value that you want to use for filtering. The value
+     * must be a string, a number, or a boolean. The comparison operator
+     * must be `=`, `!=`, `>`, or `<`.
+     * For example, if you are filtering a list of network policies, you can
+     * exclude the ones named `example-policy` by specifying
+     * `name != "example-policy"`.
+     * To filter on multiple expressions, provide each separate expression within
+     * parentheses. For example:
+     * ```
+     * (name = "example-policy")
+     * (createTime > "2021-04-12T08:15:10.40Z")
+     * ```
+     * By default, each expression is an `AND` expression. However, you
+     * can include `AND` and `OR` expressions explicitly.
+     * For example:
+     * ```
+     * (name = "example-policy-1") AND
+     * (createTime > "2021-04-12T08:15:10.40Z") OR
+     * (name = "example-policy-2")
+     * ```
+     * 
+ * + * string filter = 4; + * + * @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 matches resources returned in the response.
+     * The expression must specify the field name, a comparison
+     * operator, and the value that you want to use for filtering. The value
+     * must be a string, a number, or a boolean. The comparison operator
+     * must be `=`, `!=`, `>`, or `<`.
+     * For example, if you are filtering a list of network policies, you can
+     * exclude the ones named `example-policy` by specifying
+     * `name != "example-policy"`.
+     * To filter on multiple expressions, provide each separate expression within
+     * parentheses. For example:
+     * ```
+     * (name = "example-policy")
+     * (createTime > "2021-04-12T08:15:10.40Z")
+     * ```
+     * By default, each expression is an `AND` expression. However, you
+     * can include `AND` and `OR` expressions explicitly.
+     * For example:
+     * ```
+     * (name = "example-policy-1") AND
+     * (createTime > "2021-04-12T08:15:10.40Z") OR
+     * (name = "example-policy-2")
+     * ```
+     * 
+ * + * string filter = 4; + * + * @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; + onChanged(); + return this; + } + /** + * + * + *
+     * A filter expression that matches resources returned in the response.
+     * The expression must specify the field name, a comparison
+     * operator, and the value that you want to use for filtering. The value
+     * must be a string, a number, or a boolean. The comparison operator
+     * must be `=`, `!=`, `>`, or `<`.
+     * For example, if you are filtering a list of network policies, you can
+     * exclude the ones named `example-policy` by specifying
+     * `name != "example-policy"`.
+     * To filter on multiple expressions, provide each separate expression within
+     * parentheses. For example:
+     * ```
+     * (name = "example-policy")
+     * (createTime > "2021-04-12T08:15:10.40Z")
+     * ```
+     * By default, each expression is an `AND` expression. However, you
+     * can include `AND` and `OR` expressions explicitly.
+     * For example:
+     * ```
+     * (name = "example-policy-1") AND
+     * (createTime > "2021-04-12T08:15:10.40Z") OR
+     * (name = "example-policy-2")
+     * ```
+     * 
+ * + * string filter = 4; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + + filter_ = getDefaultInstance().getFilter(); + onChanged(); + return this; + } + /** + * + * + *
+     * A filter expression that matches resources returned in the response.
+     * The expression must specify the field name, a comparison
+     * operator, and the value that you want to use for filtering. The value
+     * must be a string, a number, or a boolean. The comparison operator
+     * must be `=`, `!=`, `>`, or `<`.
+     * For example, if you are filtering a list of network policies, you can
+     * exclude the ones named `example-policy` by specifying
+     * `name != "example-policy"`.
+     * To filter on multiple expressions, provide each separate expression within
+     * parentheses. For example:
+     * ```
+     * (name = "example-policy")
+     * (createTime > "2021-04-12T08:15:10.40Z")
+     * ```
+     * By default, each expression is an `AND` expression. However, you
+     * can include `AND` and `OR` expressions explicitly.
+     * For example:
+     * ```
+     * (name = "example-policy-1") AND
+     * (createTime > "2021-04-12T08:15:10.40Z") OR
+     * (name = "example-policy-2")
+     * ```
+     * 
+ * + * string filter = 4; + * + * @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; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + /** + * + * + *
+     * Sorts list results by a certain order. By default, returned results
+     * are ordered by `name` in ascending order.
+     * You can also sort results in descending order based on the `name` value
+     * using `orderBy="name desc"`.
+     * Currently, only ordering by `name` is supported.
+     * 
+ * + * string order_by = 5; + * + * @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, returned results
+     * are ordered by `name` in ascending order.
+     * You can also sort results in descending order based on the `name` value
+     * using `orderBy="name desc"`.
+     * Currently, only ordering by `name` is supported.
+     * 
+ * + * string order_by = 5; + * + * @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, returned results
+     * are ordered by `name` in ascending order.
+     * You can also sort results in descending order based on the `name` value
+     * using `orderBy="name desc"`.
+     * Currently, only ordering by `name` is supported.
+     * 
+ * + * string order_by = 5; + * + * @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; + onChanged(); + return this; + } + /** + * + * + *
+     * Sorts list results by a certain order. By default, returned results
+     * are ordered by `name` in ascending order.
+     * You can also sort results in descending order based on the `name` value
+     * using `orderBy="name desc"`.
+     * Currently, only ordering by `name` is supported.
+     * 
+ * + * string order_by = 5; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + + orderBy_ = getDefaultInstance().getOrderBy(); + onChanged(); + return this; + } + /** + * + * + *
+     * Sorts list results by a certain order. By default, returned results
+     * are ordered by `name` in ascending order.
+     * You can also sort results in descending order based on the `name` value
+     * using `orderBy="name desc"`.
+     * Currently, only ordering by `name` is supported.
+     * 
+ * + * string order_by = 5; + * + * @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; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest) + private static final com.google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest(); + } + + public static com.google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListNetworkPoliciesRequest 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.vmwareengine.v1.ListNetworkPoliciesRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListNetworkPoliciesRequestOrBuilder.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListNetworkPoliciesRequestOrBuilder.java new file mode 100644 index 000000000000..592acdf121f3 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListNetworkPoliciesRequestOrBuilder.java @@ -0,0 +1,209 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmwareengine/v1/vmwareengine.proto + +package com.google.cloud.vmwareengine.v1; + +public interface ListNetworkPoliciesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the location (region) to query for
+   * network policies. Resource names are schemeless URIs that follow the
+   * conventions in https://cloud.google.com/apis/design/resource_names. For
+   * example: `projects/my-project/locations/us-central1`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The resource name of the location (region) to query for
+   * network policies. Resource names are schemeless URIs that follow the
+   * conventions in https://cloud.google.com/apis/design/resource_names. For
+   * example: `projects/my-project/locations/us-central1`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * The maximum number of network policies to return in one page.
+   * The service may return fewer than this value.
+   * The maximum value is coerced to 1000.
+   * The default value of this field is 500.
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * A page token, received from a previous `ListNetworkPolicies` call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to
+   * `ListNetworkPolicies` must match the call that provided the page
+   * token.
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * A page token, received from a previous `ListNetworkPolicies` call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to
+   * `ListNetworkPolicies` must match the call that provided the page
+   * token.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * A filter expression that matches resources returned in the response.
+   * The expression must specify the field name, a comparison
+   * operator, and the value that you want to use for filtering. The value
+   * must be a string, a number, or a boolean. The comparison operator
+   * must be `=`, `!=`, `>`, or `<`.
+   * For example, if you are filtering a list of network policies, you can
+   * exclude the ones named `example-policy` by specifying
+   * `name != "example-policy"`.
+   * To filter on multiple expressions, provide each separate expression within
+   * parentheses. For example:
+   * ```
+   * (name = "example-policy")
+   * (createTime > "2021-04-12T08:15:10.40Z")
+   * ```
+   * By default, each expression is an `AND` expression. However, you
+   * can include `AND` and `OR` expressions explicitly.
+   * For example:
+   * ```
+   * (name = "example-policy-1") AND
+   * (createTime > "2021-04-12T08:15:10.40Z") OR
+   * (name = "example-policy-2")
+   * ```
+   * 
+ * + * string filter = 4; + * + * @return The filter. + */ + java.lang.String getFilter(); + /** + * + * + *
+   * A filter expression that matches resources returned in the response.
+   * The expression must specify the field name, a comparison
+   * operator, and the value that you want to use for filtering. The value
+   * must be a string, a number, or a boolean. The comparison operator
+   * must be `=`, `!=`, `>`, or `<`.
+   * For example, if you are filtering a list of network policies, you can
+   * exclude the ones named `example-policy` by specifying
+   * `name != "example-policy"`.
+   * To filter on multiple expressions, provide each separate expression within
+   * parentheses. For example:
+   * ```
+   * (name = "example-policy")
+   * (createTime > "2021-04-12T08:15:10.40Z")
+   * ```
+   * By default, each expression is an `AND` expression. However, you
+   * can include `AND` and `OR` expressions explicitly.
+   * For example:
+   * ```
+   * (name = "example-policy-1") AND
+   * (createTime > "2021-04-12T08:15:10.40Z") OR
+   * (name = "example-policy-2")
+   * ```
+   * 
+ * + * string filter = 4; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * Sorts list results by a certain order. By default, returned results
+   * are ordered by `name` in ascending order.
+   * You can also sort results in descending order based on the `name` value
+   * using `orderBy="name desc"`.
+   * Currently, only ordering by `name` is supported.
+   * 
+ * + * string order_by = 5; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + /** + * + * + *
+   * Sorts list results by a certain order. By default, returned results
+   * are ordered by `name` in ascending order.
+   * You can also sort results in descending order based on the `name` value
+   * using `orderBy="name desc"`.
+   * Currently, only ordering by `name` is supported.
+   * 
+ * + * string order_by = 5; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListNetworkPoliciesResponse.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListNetworkPoliciesResponse.java new file mode 100644 index 000000000000..d4b1752fff92 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListNetworkPoliciesResponse.java @@ -0,0 +1,1410 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmwareengine/v1/vmwareengine.proto + +package com.google.cloud.vmwareengine.v1; + +/** + * + * + *
+ * Response message for [VmwareEngine.ListNetworkPolicies][google.cloud.vmwareengine.v1.VmwareEngine.ListNetworkPolicies]
+ * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse} + */ +public final class ListNetworkPoliciesResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse) + ListNetworkPoliciesResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListNetworkPoliciesResponse.newBuilder() to construct. + private ListNetworkPoliciesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListNetworkPoliciesResponse() { + networkPolicies_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListNetworkPoliciesResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListNetworkPoliciesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListNetworkPoliciesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse.class, + com.google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse.Builder.class); + } + + public static final int NETWORK_POLICIES_FIELD_NUMBER = 1; + private java.util.List networkPolicies_; + /** + * + * + *
+   * A list of network policies.
+   * 
+ * + * repeated .google.cloud.vmwareengine.v1.NetworkPolicy network_policies = 1; + */ + @java.lang.Override + public java.util.List getNetworkPoliciesList() { + return networkPolicies_; + } + /** + * + * + *
+   * A list of network policies.
+   * 
+ * + * repeated .google.cloud.vmwareengine.v1.NetworkPolicy network_policies = 1; + */ + @java.lang.Override + public java.util.List + getNetworkPoliciesOrBuilderList() { + return networkPolicies_; + } + /** + * + * + *
+   * A list of network policies.
+   * 
+ * + * repeated .google.cloud.vmwareengine.v1.NetworkPolicy network_policies = 1; + */ + @java.lang.Override + public int getNetworkPoliciesCount() { + return networkPolicies_.size(); + } + /** + * + * + *
+   * A list of network policies.
+   * 
+ * + * repeated .google.cloud.vmwareengine.v1.NetworkPolicy network_policies = 1; + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.NetworkPolicy getNetworkPolicies(int index) { + return networkPolicies_.get(index); + } + /** + * + * + *
+   * A list of network policies.
+   * 
+ * + * repeated .google.cloud.vmwareengine.v1.NetworkPolicy network_policies = 1; + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.NetworkPolicyOrBuilder getNetworkPoliciesOrBuilder( + int index) { + return networkPolicies_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object nextPageToken_; + /** + * + * + *
+   * A token, which can be send as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A token, which can be send as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UNREACHABLE_FIELD_NUMBER = 3; + private com.google.protobuf.LazyStringList unreachable_; + /** + * + * + *
+   * Locations that could not be reached when making an aggregated query using
+   * wildcards.
+   * 
+ * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_; + } + /** + * + * + *
+   * Locations that could not be reached when making an aggregated query using
+   * wildcards.
+   * 
+ * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + /** + * + * + *
+   * Locations that could not be reached when making an aggregated query using
+   * wildcards.
+   * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + /** + * + * + *
+   * Locations that could not be reached when making an aggregated query using
+   * wildcards.
+   * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < networkPolicies_.size(); i++) { + output.writeMessage(1, networkPolicies_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, unreachable_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < networkPolicies_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, networkPolicies_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + { + int dataSize = 0; + for (int i = 0; i < unreachable_.size(); i++) { + dataSize += computeStringSizeNoTag(unreachable_.getRaw(i)); + } + size += dataSize; + size += 1 * getUnreachableList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse)) { + return super.equals(obj); + } + com.google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse other = + (com.google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse) obj; + + if (!getNetworkPoliciesList().equals(other.getNetworkPoliciesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getNetworkPoliciesCount() > 0) { + hash = (37 * hash) + NETWORK_POLICIES_FIELD_NUMBER; + hash = (53 * hash) + getNetworkPoliciesList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + if (getUnreachableCount() > 0) { + hash = (37 * hash) + UNREACHABLE_FIELD_NUMBER; + hash = (53 * hash) + getUnreachableList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse 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.vmwareengine.v1.ListNetworkPoliciesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Response message for [VmwareEngine.ListNetworkPolicies][google.cloud.vmwareengine.v1.VmwareEngine.ListNetworkPolicies]
+   * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse) + com.google.cloud.vmwareengine.v1.ListNetworkPoliciesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListNetworkPoliciesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListNetworkPoliciesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse.class, + com.google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse.Builder.class); + } + + // Construct using com.google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (networkPoliciesBuilder_ == null) { + networkPolicies_ = java.util.Collections.emptyList(); + } else { + networkPolicies_ = null; + networkPoliciesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + + unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListNetworkPoliciesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse + getDefaultInstanceForType() { + return com.google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse build() { + com.google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse buildPartial() { + com.google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse result = + new com.google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse(this); + int from_bitField0_ = bitField0_; + if (networkPoliciesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + networkPolicies_ = java.util.Collections.unmodifiableList(networkPolicies_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.networkPolicies_ = networkPolicies_; + } else { + result.networkPolicies_ = networkPoliciesBuilder_.build(); + } + result.nextPageToken_ = nextPageToken_; + if (((bitField0_ & 0x00000002) != 0)) { + unreachable_ = unreachable_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.unreachable_ = unreachable_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse) { + return mergeFrom((com.google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse other) { + if (other + == com.google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse.getDefaultInstance()) + return this; + if (networkPoliciesBuilder_ == null) { + if (!other.networkPolicies_.isEmpty()) { + if (networkPolicies_.isEmpty()) { + networkPolicies_ = other.networkPolicies_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureNetworkPoliciesIsMutable(); + networkPolicies_.addAll(other.networkPolicies_); + } + onChanged(); + } + } else { + if (!other.networkPolicies_.isEmpty()) { + if (networkPoliciesBuilder_.isEmpty()) { + networkPoliciesBuilder_.dispose(); + networkPoliciesBuilder_ = null; + networkPolicies_ = other.networkPolicies_; + bitField0_ = (bitField0_ & ~0x00000001); + networkPoliciesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getNetworkPoliciesFieldBuilder() + : null; + } else { + networkPoliciesBuilder_.addAllMessages(other.networkPolicies_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + onChanged(); + } + if (!other.unreachable_.isEmpty()) { + if (unreachable_.isEmpty()) { + unreachable_ = other.unreachable_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureUnreachableIsMutable(); + unreachable_.addAll(other.unreachable_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.vmwareengine.v1.NetworkPolicy m = + input.readMessage( + com.google.cloud.vmwareengine.v1.NetworkPolicy.parser(), extensionRegistry); + if (networkPoliciesBuilder_ == null) { + ensureNetworkPoliciesIsMutable(); + networkPolicies_.add(m); + } else { + networkPoliciesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List networkPolicies_ = + java.util.Collections.emptyList(); + + private void ensureNetworkPoliciesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + networkPolicies_ = + new java.util.ArrayList( + networkPolicies_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vmwareengine.v1.NetworkPolicy, + com.google.cloud.vmwareengine.v1.NetworkPolicy.Builder, + com.google.cloud.vmwareengine.v1.NetworkPolicyOrBuilder> + networkPoliciesBuilder_; + + /** + * + * + *
+     * A list of network policies.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.NetworkPolicy network_policies = 1; + */ + public java.util.List getNetworkPoliciesList() { + if (networkPoliciesBuilder_ == null) { + return java.util.Collections.unmodifiableList(networkPolicies_); + } else { + return networkPoliciesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * A list of network policies.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.NetworkPolicy network_policies = 1; + */ + public int getNetworkPoliciesCount() { + if (networkPoliciesBuilder_ == null) { + return networkPolicies_.size(); + } else { + return networkPoliciesBuilder_.getCount(); + } + } + /** + * + * + *
+     * A list of network policies.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.NetworkPolicy network_policies = 1; + */ + public com.google.cloud.vmwareengine.v1.NetworkPolicy getNetworkPolicies(int index) { + if (networkPoliciesBuilder_ == null) { + return networkPolicies_.get(index); + } else { + return networkPoliciesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * A list of network policies.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.NetworkPolicy network_policies = 1; + */ + public Builder setNetworkPolicies( + int index, com.google.cloud.vmwareengine.v1.NetworkPolicy value) { + if (networkPoliciesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNetworkPoliciesIsMutable(); + networkPolicies_.set(index, value); + onChanged(); + } else { + networkPoliciesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * A list of network policies.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.NetworkPolicy network_policies = 1; + */ + public Builder setNetworkPolicies( + int index, com.google.cloud.vmwareengine.v1.NetworkPolicy.Builder builderForValue) { + if (networkPoliciesBuilder_ == null) { + ensureNetworkPoliciesIsMutable(); + networkPolicies_.set(index, builderForValue.build()); + onChanged(); + } else { + networkPoliciesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of network policies.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.NetworkPolicy network_policies = 1; + */ + public Builder addNetworkPolicies(com.google.cloud.vmwareengine.v1.NetworkPolicy value) { + if (networkPoliciesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNetworkPoliciesIsMutable(); + networkPolicies_.add(value); + onChanged(); + } else { + networkPoliciesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * A list of network policies.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.NetworkPolicy network_policies = 1; + */ + public Builder addNetworkPolicies( + int index, com.google.cloud.vmwareengine.v1.NetworkPolicy value) { + if (networkPoliciesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNetworkPoliciesIsMutable(); + networkPolicies_.add(index, value); + onChanged(); + } else { + networkPoliciesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * A list of network policies.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.NetworkPolicy network_policies = 1; + */ + public Builder addNetworkPolicies( + com.google.cloud.vmwareengine.v1.NetworkPolicy.Builder builderForValue) { + if (networkPoliciesBuilder_ == null) { + ensureNetworkPoliciesIsMutable(); + networkPolicies_.add(builderForValue.build()); + onChanged(); + } else { + networkPoliciesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of network policies.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.NetworkPolicy network_policies = 1; + */ + public Builder addNetworkPolicies( + int index, com.google.cloud.vmwareengine.v1.NetworkPolicy.Builder builderForValue) { + if (networkPoliciesBuilder_ == null) { + ensureNetworkPoliciesIsMutable(); + networkPolicies_.add(index, builderForValue.build()); + onChanged(); + } else { + networkPoliciesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of network policies.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.NetworkPolicy network_policies = 1; + */ + public Builder addAllNetworkPolicies( + java.lang.Iterable values) { + if (networkPoliciesBuilder_ == null) { + ensureNetworkPoliciesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, networkPolicies_); + onChanged(); + } else { + networkPoliciesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * A list of network policies.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.NetworkPolicy network_policies = 1; + */ + public Builder clearNetworkPolicies() { + if (networkPoliciesBuilder_ == null) { + networkPolicies_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + networkPoliciesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A list of network policies.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.NetworkPolicy network_policies = 1; + */ + public Builder removeNetworkPolicies(int index) { + if (networkPoliciesBuilder_ == null) { + ensureNetworkPoliciesIsMutable(); + networkPolicies_.remove(index); + onChanged(); + } else { + networkPoliciesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * A list of network policies.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.NetworkPolicy network_policies = 1; + */ + public com.google.cloud.vmwareengine.v1.NetworkPolicy.Builder getNetworkPoliciesBuilder( + int index) { + return getNetworkPoliciesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * A list of network policies.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.NetworkPolicy network_policies = 1; + */ + public com.google.cloud.vmwareengine.v1.NetworkPolicyOrBuilder getNetworkPoliciesOrBuilder( + int index) { + if (networkPoliciesBuilder_ == null) { + return networkPolicies_.get(index); + } else { + return networkPoliciesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * A list of network policies.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.NetworkPolicy network_policies = 1; + */ + public java.util.List + getNetworkPoliciesOrBuilderList() { + if (networkPoliciesBuilder_ != null) { + return networkPoliciesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(networkPolicies_); + } + } + /** + * + * + *
+     * A list of network policies.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.NetworkPolicy network_policies = 1; + */ + public com.google.cloud.vmwareengine.v1.NetworkPolicy.Builder addNetworkPoliciesBuilder() { + return getNetworkPoliciesFieldBuilder() + .addBuilder(com.google.cloud.vmwareengine.v1.NetworkPolicy.getDefaultInstance()); + } + /** + * + * + *
+     * A list of network policies.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.NetworkPolicy network_policies = 1; + */ + public com.google.cloud.vmwareengine.v1.NetworkPolicy.Builder addNetworkPoliciesBuilder( + int index) { + return getNetworkPoliciesFieldBuilder() + .addBuilder(index, com.google.cloud.vmwareengine.v1.NetworkPolicy.getDefaultInstance()); + } + /** + * + * + *
+     * A list of network policies.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.NetworkPolicy network_policies = 1; + */ + public java.util.List + getNetworkPoliciesBuilderList() { + return getNetworkPoliciesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vmwareengine.v1.NetworkPolicy, + com.google.cloud.vmwareengine.v1.NetworkPolicy.Builder, + com.google.cloud.vmwareengine.v1.NetworkPolicyOrBuilder> + getNetworkPoliciesFieldBuilder() { + if (networkPoliciesBuilder_ == null) { + networkPoliciesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vmwareengine.v1.NetworkPolicy, + com.google.cloud.vmwareengine.v1.NetworkPolicy.Builder, + com.google.cloud.vmwareengine.v1.NetworkPolicyOrBuilder>( + networkPolicies_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + networkPolicies_ = null; + } + return networkPoliciesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token, which can be send as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A token, which can be send as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A token, which can be send as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nextPageToken_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * A token, which can be send as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + + nextPageToken_ = getDefaultInstance().getNextPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * A token, which can be send as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nextPageToken_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList unreachable_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureUnreachableIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); + bitField0_ |= 0x00000002; + } + } + /** + * + * + *
+     * Locations that could not be reached when making an aggregated query using
+     * wildcards.
+     * 
+ * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_.getUnmodifiableView(); + } + /** + * + * + *
+     * Locations that could not be reached when making an aggregated query using
+     * wildcards.
+     * 
+ * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + /** + * + * + *
+     * Locations that could not be reached when making an aggregated query using
+     * wildcards.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + /** + * + * + *
+     * Locations that could not be reached when making an aggregated query using
+     * wildcards.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + /** + * + * + *
+     * Locations that could not be reached when making an aggregated query using
+     * wildcards.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param index The index to set the value at. + * @param value The unreachable to set. + * @return This builder for chaining. + */ + public Builder setUnreachable(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Locations that could not be reached when making an aggregated query using
+     * wildcards.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param value The unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Locations that could not be reached when making an aggregated query using
+     * wildcards.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param values The unreachable to add. + * @return This builder for chaining. + */ + public Builder addAllUnreachable(java.lang.Iterable values) { + ensureUnreachableIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + onChanged(); + return this; + } + /** + * + * + *
+     * Locations that could not be reached when making an aggregated query using
+     * wildcards.
+     * 
+ * + * repeated string unreachable = 3; + * + * @return This builder for chaining. + */ + public Builder clearUnreachable() { + unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Locations that could not be reached when making an aggregated query using
+     * wildcards.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param value The bytes of the unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureUnreachableIsMutable(); + unreachable_.add(value); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse) + private static final com.google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse(); + } + + public static com.google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListNetworkPoliciesResponse 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.vmwareengine.v1.ListNetworkPoliciesResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListNetworkPoliciesResponseOrBuilder.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListNetworkPoliciesResponseOrBuilder.java new file mode 100644 index 000000000000..483437a3a9d0 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListNetworkPoliciesResponseOrBuilder.java @@ -0,0 +1,159 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmwareengine/v1/vmwareengine.proto + +package com.google.cloud.vmwareengine.v1; + +public interface ListNetworkPoliciesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * A list of network policies.
+   * 
+ * + * repeated .google.cloud.vmwareengine.v1.NetworkPolicy network_policies = 1; + */ + java.util.List getNetworkPoliciesList(); + /** + * + * + *
+   * A list of network policies.
+   * 
+ * + * repeated .google.cloud.vmwareengine.v1.NetworkPolicy network_policies = 1; + */ + com.google.cloud.vmwareengine.v1.NetworkPolicy getNetworkPolicies(int index); + /** + * + * + *
+   * A list of network policies.
+   * 
+ * + * repeated .google.cloud.vmwareengine.v1.NetworkPolicy network_policies = 1; + */ + int getNetworkPoliciesCount(); + /** + * + * + *
+   * A list of network policies.
+   * 
+ * + * repeated .google.cloud.vmwareengine.v1.NetworkPolicy network_policies = 1; + */ + java.util.List + getNetworkPoliciesOrBuilderList(); + /** + * + * + *
+   * A list of network policies.
+   * 
+ * + * repeated .google.cloud.vmwareengine.v1.NetworkPolicy network_policies = 1; + */ + com.google.cloud.vmwareengine.v1.NetworkPolicyOrBuilder getNetworkPoliciesOrBuilder(int index); + + /** + * + * + *
+   * A token, which can be send as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token, which can be send as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
+   * Locations that could not be reached when making an aggregated query using
+   * wildcards.
+   * 
+ * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + java.util.List getUnreachableList(); + /** + * + * + *
+   * Locations that could not be reached when making an aggregated query using
+   * wildcards.
+   * 
+ * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + int getUnreachableCount(); + /** + * + * + *
+   * Locations that could not be reached when making an aggregated query using
+   * wildcards.
+   * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + java.lang.String getUnreachable(int index); + /** + * + * + *
+   * Locations that could not be reached when making an aggregated query using
+   * wildcards.
+   * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + com.google.protobuf.ByteString getUnreachableBytes(int index); +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListNodeTypesRequest.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListNodeTypesRequest.java new file mode 100644 index 000000000000..c5e5edcf8a83 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListNodeTypesRequest.java @@ -0,0 +1,1285 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmwareengine/v1/vmwareengine.proto + +package com.google.cloud.vmwareengine.v1; + +/** + * + * + *
+ * Request message for [VmwareEngine.ListNodeTypes][google.cloud.vmwareengine.v1.VmwareEngine.ListNodeTypes]
+ * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.ListNodeTypesRequest} + */ +public final class ListNodeTypesRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmwareengine.v1.ListNodeTypesRequest) + ListNodeTypesRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListNodeTypesRequest.newBuilder() to construct. + private ListNodeTypesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListNodeTypesRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListNodeTypesRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListNodeTypesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListNodeTypesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.ListNodeTypesRequest.class, + com.google.cloud.vmwareengine.v1.ListNodeTypesRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required. The resource name of the location to be queried for node types.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-project/locations/us-west1-a`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The resource name of the location to be queried for node types.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-project/locations/us-west1-a`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_; + /** + * + * + *
+   * The maximum number of node types to return in one page.
+   * The service may return fewer than this value.
+   * The maximum value is coerced to 1000.
+   * The default value of this field is 500.
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + private volatile java.lang.Object pageToken_; + /** + * + * + *
+   * A page token, received from a previous `ListNodeTypes` call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to
+   * `ListNodeTypes` must match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @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; + } + } + /** + * + * + *
+   * A page token, received from a previous `ListNodeTypes` call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to
+   * `ListNodeTypes` must match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 4; + private volatile java.lang.Object filter_; + /** + * + * + *
+   * A filter expression that matches resources returned in the response.
+   * The expression must specify the field name, a comparison
+   * operator, and the value that you want to use for filtering. The value
+   * must be a string, a number, or a boolean. The comparison operator
+   * must be `=`, `!=`, `>`, or `<`.
+   * For example, if you are filtering a list of node types, you can
+   * exclude the ones named `standard-72` by specifying
+   * `name != "standard-72"`.
+   * To filter on multiple expressions, provide each separate expression within
+   * parentheses. For example:
+   * ```
+   * (name = "standard-72")
+   * (virtual_cpu_count > 2)
+   * ```
+   * By default, each expression is an `AND` expression. However, you
+   * can include `AND` and `OR` expressions explicitly.
+   * For example:
+   * ```
+   * (name = "standard-96") AND
+   * (virtual_cpu_count > 2) OR
+   * (name = "standard-72")
+   * ```
+   * 
+ * + * string filter = 4; + * + * @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 matches resources returned in the response.
+   * The expression must specify the field name, a comparison
+   * operator, and the value that you want to use for filtering. The value
+   * must be a string, a number, or a boolean. The comparison operator
+   * must be `=`, `!=`, `>`, or `<`.
+   * For example, if you are filtering a list of node types, you can
+   * exclude the ones named `standard-72` by specifying
+   * `name != "standard-72"`.
+   * To filter on multiple expressions, provide each separate expression within
+   * parentheses. For example:
+   * ```
+   * (name = "standard-72")
+   * (virtual_cpu_count > 2)
+   * ```
+   * By default, each expression is an `AND` expression. However, you
+   * can include `AND` and `OR` expressions explicitly.
+   * For example:
+   * ```
+   * (name = "standard-96") AND
+   * (virtual_cpu_count > 2) OR
+   * (name = "standard-72")
+   * ```
+   * 
+ * + * string filter = 4; + * + * @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; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); + } + 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.vmwareengine.v1.ListNodeTypesRequest)) { + return super.equals(obj); + } + com.google.cloud.vmwareengine.v1.ListNodeTypesRequest other = + (com.google.cloud.vmwareengine.v1.ListNodeTypesRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmwareengine.v1.ListNodeTypesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.ListNodeTypesRequest 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.vmwareengine.v1.ListNodeTypesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.ListNodeTypesRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.ListNodeTypesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.ListNodeTypesRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.ListNodeTypesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.ListNodeTypesRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.ListNodeTypesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.ListNodeTypesRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.ListNodeTypesRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.ListNodeTypesRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.vmwareengine.v1.ListNodeTypesRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for [VmwareEngine.ListNodeTypes][google.cloud.vmwareengine.v1.VmwareEngine.ListNodeTypes]
+   * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.ListNodeTypesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmwareengine.v1.ListNodeTypesRequest) + com.google.cloud.vmwareengine.v1.ListNodeTypesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListNodeTypesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListNodeTypesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.ListNodeTypesRequest.class, + com.google.cloud.vmwareengine.v1.ListNodeTypesRequest.Builder.class); + } + + // Construct using com.google.cloud.vmwareengine.v1.ListNodeTypesRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + pageSize_ = 0; + + pageToken_ = ""; + + filter_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListNodeTypesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ListNodeTypesRequest getDefaultInstanceForType() { + return com.google.cloud.vmwareengine.v1.ListNodeTypesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ListNodeTypesRequest build() { + com.google.cloud.vmwareengine.v1.ListNodeTypesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ListNodeTypesRequest buildPartial() { + com.google.cloud.vmwareengine.v1.ListNodeTypesRequest result = + new com.google.cloud.vmwareengine.v1.ListNodeTypesRequest(this); + result.parent_ = parent_; + result.pageSize_ = pageSize_; + result.pageToken_ = pageToken_; + result.filter_ = filter_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.vmwareengine.v1.ListNodeTypesRequest) { + return mergeFrom((com.google.cloud.vmwareengine.v1.ListNodeTypesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmwareengine.v1.ListNodeTypesRequest other) { + if (other == com.google.cloud.vmwareengine.v1.ListNodeTypesRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: + { + filter_ = input.readStringRequireUtf8(); + + 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 java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The resource name of the location to be queried for node types.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-west1-a`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the location to be queried for node types.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-west1-a`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the location to be queried for node types.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-west1-a`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the location to be queried for node types.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-west1-a`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the location to be queried for node types.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-west1-a`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * The maximum number of node types to return in one page.
+     * The service may return fewer than this value.
+     * The maximum value is coerced to 1000.
+     * The default value of this field is 500.
+     * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * The maximum number of node types to return in one page.
+     * The service may return fewer than this value.
+     * The maximum value is coerced to 1000.
+     * The default value of this field is 500.
+     * 
+ * + * int32 page_size = 2; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The maximum number of node types to return in one page.
+     * The service may return fewer than this value.
+     * The maximum value is coerced to 1000.
+     * The default value of this field is 500.
+     * 
+ * + * int32 page_size = 2; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * A page token, received from a previous `ListNodeTypes` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to
+     * `ListNodeTypes` must match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A page token, received from a previous `ListNodeTypes` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to
+     * `ListNodeTypes` must match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @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; + } + } + /** + * + * + *
+     * A page token, received from a previous `ListNodeTypes` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to
+     * `ListNodeTypes` must match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @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; + onChanged(); + return this; + } + /** + * + * + *
+     * A page token, received from a previous `ListNodeTypes` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to
+     * `ListNodeTypes` must match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + + pageToken_ = getDefaultInstance().getPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * A page token, received from a previous `ListNodeTypes` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to
+     * `ListNodeTypes` must match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + pageToken_ = value; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + /** + * + * + *
+     * A filter expression that matches resources returned in the response.
+     * The expression must specify the field name, a comparison
+     * operator, and the value that you want to use for filtering. The value
+     * must be a string, a number, or a boolean. The comparison operator
+     * must be `=`, `!=`, `>`, or `<`.
+     * For example, if you are filtering a list of node types, you can
+     * exclude the ones named `standard-72` by specifying
+     * `name != "standard-72"`.
+     * To filter on multiple expressions, provide each separate expression within
+     * parentheses. For example:
+     * ```
+     * (name = "standard-72")
+     * (virtual_cpu_count > 2)
+     * ```
+     * By default, each expression is an `AND` expression. However, you
+     * can include `AND` and `OR` expressions explicitly.
+     * For example:
+     * ```
+     * (name = "standard-96") AND
+     * (virtual_cpu_count > 2) OR
+     * (name = "standard-72")
+     * ```
+     * 
+ * + * string filter = 4; + * + * @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 matches resources returned in the response.
+     * The expression must specify the field name, a comparison
+     * operator, and the value that you want to use for filtering. The value
+     * must be a string, a number, or a boolean. The comparison operator
+     * must be `=`, `!=`, `>`, or `<`.
+     * For example, if you are filtering a list of node types, you can
+     * exclude the ones named `standard-72` by specifying
+     * `name != "standard-72"`.
+     * To filter on multiple expressions, provide each separate expression within
+     * parentheses. For example:
+     * ```
+     * (name = "standard-72")
+     * (virtual_cpu_count > 2)
+     * ```
+     * By default, each expression is an `AND` expression. However, you
+     * can include `AND` and `OR` expressions explicitly.
+     * For example:
+     * ```
+     * (name = "standard-96") AND
+     * (virtual_cpu_count > 2) OR
+     * (name = "standard-72")
+     * ```
+     * 
+ * + * string filter = 4; + * + * @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 matches resources returned in the response.
+     * The expression must specify the field name, a comparison
+     * operator, and the value that you want to use for filtering. The value
+     * must be a string, a number, or a boolean. The comparison operator
+     * must be `=`, `!=`, `>`, or `<`.
+     * For example, if you are filtering a list of node types, you can
+     * exclude the ones named `standard-72` by specifying
+     * `name != "standard-72"`.
+     * To filter on multiple expressions, provide each separate expression within
+     * parentheses. For example:
+     * ```
+     * (name = "standard-72")
+     * (virtual_cpu_count > 2)
+     * ```
+     * By default, each expression is an `AND` expression. However, you
+     * can include `AND` and `OR` expressions explicitly.
+     * For example:
+     * ```
+     * (name = "standard-96") AND
+     * (virtual_cpu_count > 2) OR
+     * (name = "standard-72")
+     * ```
+     * 
+ * + * string filter = 4; + * + * @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; + onChanged(); + return this; + } + /** + * + * + *
+     * A filter expression that matches resources returned in the response.
+     * The expression must specify the field name, a comparison
+     * operator, and the value that you want to use for filtering. The value
+     * must be a string, a number, or a boolean. The comparison operator
+     * must be `=`, `!=`, `>`, or `<`.
+     * For example, if you are filtering a list of node types, you can
+     * exclude the ones named `standard-72` by specifying
+     * `name != "standard-72"`.
+     * To filter on multiple expressions, provide each separate expression within
+     * parentheses. For example:
+     * ```
+     * (name = "standard-72")
+     * (virtual_cpu_count > 2)
+     * ```
+     * By default, each expression is an `AND` expression. However, you
+     * can include `AND` and `OR` expressions explicitly.
+     * For example:
+     * ```
+     * (name = "standard-96") AND
+     * (virtual_cpu_count > 2) OR
+     * (name = "standard-72")
+     * ```
+     * 
+ * + * string filter = 4; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + + filter_ = getDefaultInstance().getFilter(); + onChanged(); + return this; + } + /** + * + * + *
+     * A filter expression that matches resources returned in the response.
+     * The expression must specify the field name, a comparison
+     * operator, and the value that you want to use for filtering. The value
+     * must be a string, a number, or a boolean. The comparison operator
+     * must be `=`, `!=`, `>`, or `<`.
+     * For example, if you are filtering a list of node types, you can
+     * exclude the ones named `standard-72` by specifying
+     * `name != "standard-72"`.
+     * To filter on multiple expressions, provide each separate expression within
+     * parentheses. For example:
+     * ```
+     * (name = "standard-72")
+     * (virtual_cpu_count > 2)
+     * ```
+     * By default, each expression is an `AND` expression. However, you
+     * can include `AND` and `OR` expressions explicitly.
+     * For example:
+     * ```
+     * (name = "standard-96") AND
+     * (virtual_cpu_count > 2) OR
+     * (name = "standard-72")
+     * ```
+     * 
+ * + * string filter = 4; + * + * @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; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.vmwareengine.v1.ListNodeTypesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmwareengine.v1.ListNodeTypesRequest) + private static final com.google.cloud.vmwareengine.v1.ListNodeTypesRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmwareengine.v1.ListNodeTypesRequest(); + } + + public static com.google.cloud.vmwareengine.v1.ListNodeTypesRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListNodeTypesRequest 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.vmwareengine.v1.ListNodeTypesRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListNodeTypesRequestOrBuilder.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListNodeTypesRequestOrBuilder.java new file mode 100644 index 000000000000..a369215c16d6 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListNodeTypesRequestOrBuilder.java @@ -0,0 +1,176 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmwareengine/v1/vmwareengine.proto + +package com.google.cloud.vmwareengine.v1; + +public interface ListNodeTypesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmwareengine.v1.ListNodeTypesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the location to be queried for node types.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-project/locations/us-west1-a`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The resource name of the location to be queried for node types.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-project/locations/us-west1-a`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * The maximum number of node types to return in one page.
+   * The service may return fewer than this value.
+   * The maximum value is coerced to 1000.
+   * The default value of this field is 500.
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * A page token, received from a previous `ListNodeTypes` call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to
+   * `ListNodeTypes` must match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * A page token, received from a previous `ListNodeTypes` call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to
+   * `ListNodeTypes` must match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * A filter expression that matches resources returned in the response.
+   * The expression must specify the field name, a comparison
+   * operator, and the value that you want to use for filtering. The value
+   * must be a string, a number, or a boolean. The comparison operator
+   * must be `=`, `!=`, `>`, or `<`.
+   * For example, if you are filtering a list of node types, you can
+   * exclude the ones named `standard-72` by specifying
+   * `name != "standard-72"`.
+   * To filter on multiple expressions, provide each separate expression within
+   * parentheses. For example:
+   * ```
+   * (name = "standard-72")
+   * (virtual_cpu_count > 2)
+   * ```
+   * By default, each expression is an `AND` expression. However, you
+   * can include `AND` and `OR` expressions explicitly.
+   * For example:
+   * ```
+   * (name = "standard-96") AND
+   * (virtual_cpu_count > 2) OR
+   * (name = "standard-72")
+   * ```
+   * 
+ * + * string filter = 4; + * + * @return The filter. + */ + java.lang.String getFilter(); + /** + * + * + *
+   * A filter expression that matches resources returned in the response.
+   * The expression must specify the field name, a comparison
+   * operator, and the value that you want to use for filtering. The value
+   * must be a string, a number, or a boolean. The comparison operator
+   * must be `=`, `!=`, `>`, or `<`.
+   * For example, if you are filtering a list of node types, you can
+   * exclude the ones named `standard-72` by specifying
+   * `name != "standard-72"`.
+   * To filter on multiple expressions, provide each separate expression within
+   * parentheses. For example:
+   * ```
+   * (name = "standard-72")
+   * (virtual_cpu_count > 2)
+   * ```
+   * By default, each expression is an `AND` expression. However, you
+   * can include `AND` and `OR` expressions explicitly.
+   * For example:
+   * ```
+   * (name = "standard-96") AND
+   * (virtual_cpu_count > 2) OR
+   * (name = "standard-72")
+   * ```
+   * 
+ * + * string filter = 4; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListNodeTypesResponse.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListNodeTypesResponse.java new file mode 100644 index 000000000000..c380d0b3a8fb --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListNodeTypesResponse.java @@ -0,0 +1,1395 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmwareengine/v1/vmwareengine.proto + +package com.google.cloud.vmwareengine.v1; + +/** + * + * + *
+ * Response message for [VmwareEngine.ListNodeTypes][google.cloud.vmwareengine.v1.VmwareEngine.ListNodeTypes]
+ * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.ListNodeTypesResponse} + */ +public final class ListNodeTypesResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmwareengine.v1.ListNodeTypesResponse) + ListNodeTypesResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListNodeTypesResponse.newBuilder() to construct. + private ListNodeTypesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListNodeTypesResponse() { + nodeTypes_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListNodeTypesResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListNodeTypesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListNodeTypesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.ListNodeTypesResponse.class, + com.google.cloud.vmwareengine.v1.ListNodeTypesResponse.Builder.class); + } + + public static final int NODE_TYPES_FIELD_NUMBER = 1; + private java.util.List nodeTypes_; + /** + * + * + *
+   * A list of Node Types.
+   * 
+ * + * repeated .google.cloud.vmwareengine.v1.NodeType node_types = 1; + */ + @java.lang.Override + public java.util.List getNodeTypesList() { + return nodeTypes_; + } + /** + * + * + *
+   * A list of Node Types.
+   * 
+ * + * repeated .google.cloud.vmwareengine.v1.NodeType node_types = 1; + */ + @java.lang.Override + public java.util.List + getNodeTypesOrBuilderList() { + return nodeTypes_; + } + /** + * + * + *
+   * A list of Node Types.
+   * 
+ * + * repeated .google.cloud.vmwareengine.v1.NodeType node_types = 1; + */ + @java.lang.Override + public int getNodeTypesCount() { + return nodeTypes_.size(); + } + /** + * + * + *
+   * A list of Node Types.
+   * 
+ * + * repeated .google.cloud.vmwareengine.v1.NodeType node_types = 1; + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.NodeType getNodeTypes(int index) { + return nodeTypes_.get(index); + } + /** + * + * + *
+   * A list of Node Types.
+   * 
+ * + * repeated .google.cloud.vmwareengine.v1.NodeType node_types = 1; + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.NodeTypeOrBuilder getNodeTypesOrBuilder(int index) { + return nodeTypes_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object nextPageToken_; + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UNREACHABLE_FIELD_NUMBER = 3; + private com.google.protobuf.LazyStringList unreachable_; + /** + * + * + *
+   * Locations that could not be reached when making an aggregated query using
+   * wildcards.
+   * 
+ * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_; + } + /** + * + * + *
+   * Locations that could not be reached when making an aggregated query using
+   * wildcards.
+   * 
+ * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + /** + * + * + *
+   * Locations that could not be reached when making an aggregated query using
+   * wildcards.
+   * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + /** + * + * + *
+   * Locations that could not be reached when making an aggregated query using
+   * wildcards.
+   * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < nodeTypes_.size(); i++) { + output.writeMessage(1, nodeTypes_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, unreachable_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < nodeTypes_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, nodeTypes_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + { + int dataSize = 0; + for (int i = 0; i < unreachable_.size(); i++) { + dataSize += computeStringSizeNoTag(unreachable_.getRaw(i)); + } + size += dataSize; + size += 1 * getUnreachableList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.vmwareengine.v1.ListNodeTypesResponse)) { + return super.equals(obj); + } + com.google.cloud.vmwareengine.v1.ListNodeTypesResponse other = + (com.google.cloud.vmwareengine.v1.ListNodeTypesResponse) obj; + + if (!getNodeTypesList().equals(other.getNodeTypesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getNodeTypesCount() > 0) { + hash = (37 * hash) + NODE_TYPES_FIELD_NUMBER; + hash = (53 * hash) + getNodeTypesList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + if (getUnreachableCount() > 0) { + hash = (37 * hash) + UNREACHABLE_FIELD_NUMBER; + hash = (53 * hash) + getUnreachableList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmwareengine.v1.ListNodeTypesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.ListNodeTypesResponse 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.vmwareengine.v1.ListNodeTypesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.ListNodeTypesResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.ListNodeTypesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.ListNodeTypesResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.ListNodeTypesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.ListNodeTypesResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.ListNodeTypesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.ListNodeTypesResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.ListNodeTypesResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.ListNodeTypesResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.vmwareengine.v1.ListNodeTypesResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Response message for [VmwareEngine.ListNodeTypes][google.cloud.vmwareengine.v1.VmwareEngine.ListNodeTypes]
+   * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.ListNodeTypesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmwareengine.v1.ListNodeTypesResponse) + com.google.cloud.vmwareengine.v1.ListNodeTypesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListNodeTypesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListNodeTypesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.ListNodeTypesResponse.class, + com.google.cloud.vmwareengine.v1.ListNodeTypesResponse.Builder.class); + } + + // Construct using com.google.cloud.vmwareengine.v1.ListNodeTypesResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (nodeTypesBuilder_ == null) { + nodeTypes_ = java.util.Collections.emptyList(); + } else { + nodeTypes_ = null; + nodeTypesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + + unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListNodeTypesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ListNodeTypesResponse getDefaultInstanceForType() { + return com.google.cloud.vmwareengine.v1.ListNodeTypesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ListNodeTypesResponse build() { + com.google.cloud.vmwareengine.v1.ListNodeTypesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ListNodeTypesResponse buildPartial() { + com.google.cloud.vmwareengine.v1.ListNodeTypesResponse result = + new com.google.cloud.vmwareengine.v1.ListNodeTypesResponse(this); + int from_bitField0_ = bitField0_; + if (nodeTypesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + nodeTypes_ = java.util.Collections.unmodifiableList(nodeTypes_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.nodeTypes_ = nodeTypes_; + } else { + result.nodeTypes_ = nodeTypesBuilder_.build(); + } + result.nextPageToken_ = nextPageToken_; + if (((bitField0_ & 0x00000002) != 0)) { + unreachable_ = unreachable_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.unreachable_ = unreachable_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.vmwareengine.v1.ListNodeTypesResponse) { + return mergeFrom((com.google.cloud.vmwareengine.v1.ListNodeTypesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmwareengine.v1.ListNodeTypesResponse other) { + if (other == com.google.cloud.vmwareengine.v1.ListNodeTypesResponse.getDefaultInstance()) + return this; + if (nodeTypesBuilder_ == null) { + if (!other.nodeTypes_.isEmpty()) { + if (nodeTypes_.isEmpty()) { + nodeTypes_ = other.nodeTypes_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureNodeTypesIsMutable(); + nodeTypes_.addAll(other.nodeTypes_); + } + onChanged(); + } + } else { + if (!other.nodeTypes_.isEmpty()) { + if (nodeTypesBuilder_.isEmpty()) { + nodeTypesBuilder_.dispose(); + nodeTypesBuilder_ = null; + nodeTypes_ = other.nodeTypes_; + bitField0_ = (bitField0_ & ~0x00000001); + nodeTypesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getNodeTypesFieldBuilder() + : null; + } else { + nodeTypesBuilder_.addAllMessages(other.nodeTypes_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + onChanged(); + } + if (!other.unreachable_.isEmpty()) { + if (unreachable_.isEmpty()) { + unreachable_ = other.unreachable_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureUnreachableIsMutable(); + unreachable_.addAll(other.unreachable_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.vmwareengine.v1.NodeType m = + input.readMessage( + com.google.cloud.vmwareengine.v1.NodeType.parser(), extensionRegistry); + if (nodeTypesBuilder_ == null) { + ensureNodeTypesIsMutable(); + nodeTypes_.add(m); + } else { + nodeTypesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List nodeTypes_ = + java.util.Collections.emptyList(); + + private void ensureNodeTypesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + nodeTypes_ = new java.util.ArrayList(nodeTypes_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vmwareengine.v1.NodeType, + com.google.cloud.vmwareengine.v1.NodeType.Builder, + com.google.cloud.vmwareengine.v1.NodeTypeOrBuilder> + nodeTypesBuilder_; + + /** + * + * + *
+     * A list of Node Types.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.NodeType node_types = 1; + */ + public java.util.List getNodeTypesList() { + if (nodeTypesBuilder_ == null) { + return java.util.Collections.unmodifiableList(nodeTypes_); + } else { + return nodeTypesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * A list of Node Types.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.NodeType node_types = 1; + */ + public int getNodeTypesCount() { + if (nodeTypesBuilder_ == null) { + return nodeTypes_.size(); + } else { + return nodeTypesBuilder_.getCount(); + } + } + /** + * + * + *
+     * A list of Node Types.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.NodeType node_types = 1; + */ + public com.google.cloud.vmwareengine.v1.NodeType getNodeTypes(int index) { + if (nodeTypesBuilder_ == null) { + return nodeTypes_.get(index); + } else { + return nodeTypesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * A list of Node Types.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.NodeType node_types = 1; + */ + public Builder setNodeTypes(int index, com.google.cloud.vmwareengine.v1.NodeType value) { + if (nodeTypesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodeTypesIsMutable(); + nodeTypes_.set(index, value); + onChanged(); + } else { + nodeTypesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * A list of Node Types.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.NodeType node_types = 1; + */ + public Builder setNodeTypes( + int index, com.google.cloud.vmwareengine.v1.NodeType.Builder builderForValue) { + if (nodeTypesBuilder_ == null) { + ensureNodeTypesIsMutable(); + nodeTypes_.set(index, builderForValue.build()); + onChanged(); + } else { + nodeTypesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of Node Types.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.NodeType node_types = 1; + */ + public Builder addNodeTypes(com.google.cloud.vmwareengine.v1.NodeType value) { + if (nodeTypesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodeTypesIsMutable(); + nodeTypes_.add(value); + onChanged(); + } else { + nodeTypesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * A list of Node Types.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.NodeType node_types = 1; + */ + public Builder addNodeTypes(int index, com.google.cloud.vmwareengine.v1.NodeType value) { + if (nodeTypesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodeTypesIsMutable(); + nodeTypes_.add(index, value); + onChanged(); + } else { + nodeTypesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * A list of Node Types.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.NodeType node_types = 1; + */ + public Builder addNodeTypes(com.google.cloud.vmwareengine.v1.NodeType.Builder builderForValue) { + if (nodeTypesBuilder_ == null) { + ensureNodeTypesIsMutable(); + nodeTypes_.add(builderForValue.build()); + onChanged(); + } else { + nodeTypesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of Node Types.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.NodeType node_types = 1; + */ + public Builder addNodeTypes( + int index, com.google.cloud.vmwareengine.v1.NodeType.Builder builderForValue) { + if (nodeTypesBuilder_ == null) { + ensureNodeTypesIsMutable(); + nodeTypes_.add(index, builderForValue.build()); + onChanged(); + } else { + nodeTypesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of Node Types.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.NodeType node_types = 1; + */ + public Builder addAllNodeTypes( + java.lang.Iterable values) { + if (nodeTypesBuilder_ == null) { + ensureNodeTypesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, nodeTypes_); + onChanged(); + } else { + nodeTypesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * A list of Node Types.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.NodeType node_types = 1; + */ + public Builder clearNodeTypes() { + if (nodeTypesBuilder_ == null) { + nodeTypes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + nodeTypesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A list of Node Types.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.NodeType node_types = 1; + */ + public Builder removeNodeTypes(int index) { + if (nodeTypesBuilder_ == null) { + ensureNodeTypesIsMutable(); + nodeTypes_.remove(index); + onChanged(); + } else { + nodeTypesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * A list of Node Types.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.NodeType node_types = 1; + */ + public com.google.cloud.vmwareengine.v1.NodeType.Builder getNodeTypesBuilder(int index) { + return getNodeTypesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * A list of Node Types.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.NodeType node_types = 1; + */ + public com.google.cloud.vmwareengine.v1.NodeTypeOrBuilder getNodeTypesOrBuilder(int index) { + if (nodeTypesBuilder_ == null) { + return nodeTypes_.get(index); + } else { + return nodeTypesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * A list of Node Types.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.NodeType node_types = 1; + */ + public java.util.List + getNodeTypesOrBuilderList() { + if (nodeTypesBuilder_ != null) { + return nodeTypesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(nodeTypes_); + } + } + /** + * + * + *
+     * A list of Node Types.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.NodeType node_types = 1; + */ + public com.google.cloud.vmwareengine.v1.NodeType.Builder addNodeTypesBuilder() { + return getNodeTypesFieldBuilder() + .addBuilder(com.google.cloud.vmwareengine.v1.NodeType.getDefaultInstance()); + } + /** + * + * + *
+     * A list of Node Types.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.NodeType node_types = 1; + */ + public com.google.cloud.vmwareengine.v1.NodeType.Builder addNodeTypesBuilder(int index) { + return getNodeTypesFieldBuilder() + .addBuilder(index, com.google.cloud.vmwareengine.v1.NodeType.getDefaultInstance()); + } + /** + * + * + *
+     * A list of Node Types.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.NodeType node_types = 1; + */ + public java.util.List + getNodeTypesBuilderList() { + return getNodeTypesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vmwareengine.v1.NodeType, + com.google.cloud.vmwareengine.v1.NodeType.Builder, + com.google.cloud.vmwareengine.v1.NodeTypeOrBuilder> + getNodeTypesFieldBuilder() { + if (nodeTypesBuilder_ == null) { + nodeTypesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vmwareengine.v1.NodeType, + com.google.cloud.vmwareengine.v1.NodeType.Builder, + com.google.cloud.vmwareengine.v1.NodeTypeOrBuilder>( + nodeTypes_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + nodeTypes_ = null; + } + return nodeTypesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nextPageToken_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + + nextPageToken_ = getDefaultInstance().getNextPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nextPageToken_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList unreachable_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureUnreachableIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); + bitField0_ |= 0x00000002; + } + } + /** + * + * + *
+     * Locations that could not be reached when making an aggregated query using
+     * wildcards.
+     * 
+ * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_.getUnmodifiableView(); + } + /** + * + * + *
+     * Locations that could not be reached when making an aggregated query using
+     * wildcards.
+     * 
+ * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + /** + * + * + *
+     * Locations that could not be reached when making an aggregated query using
+     * wildcards.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + /** + * + * + *
+     * Locations that could not be reached when making an aggregated query using
+     * wildcards.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + /** + * + * + *
+     * Locations that could not be reached when making an aggregated query using
+     * wildcards.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param index The index to set the value at. + * @param value The unreachable to set. + * @return This builder for chaining. + */ + public Builder setUnreachable(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Locations that could not be reached when making an aggregated query using
+     * wildcards.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param value The unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Locations that could not be reached when making an aggregated query using
+     * wildcards.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param values The unreachable to add. + * @return This builder for chaining. + */ + public Builder addAllUnreachable(java.lang.Iterable values) { + ensureUnreachableIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + onChanged(); + return this; + } + /** + * + * + *
+     * Locations that could not be reached when making an aggregated query using
+     * wildcards.
+     * 
+ * + * repeated string unreachable = 3; + * + * @return This builder for chaining. + */ + public Builder clearUnreachable() { + unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Locations that could not be reached when making an aggregated query using
+     * wildcards.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param value The bytes of the unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureUnreachableIsMutable(); + unreachable_.add(value); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.vmwareengine.v1.ListNodeTypesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmwareengine.v1.ListNodeTypesResponse) + private static final com.google.cloud.vmwareengine.v1.ListNodeTypesResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmwareengine.v1.ListNodeTypesResponse(); + } + + public static com.google.cloud.vmwareengine.v1.ListNodeTypesResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListNodeTypesResponse 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.vmwareengine.v1.ListNodeTypesResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListNodeTypesResponseOrBuilder.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListNodeTypesResponseOrBuilder.java new file mode 100644 index 000000000000..7bb15f017351 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListNodeTypesResponseOrBuilder.java @@ -0,0 +1,159 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmwareengine/v1/vmwareengine.proto + +package com.google.cloud.vmwareengine.v1; + +public interface ListNodeTypesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmwareengine.v1.ListNodeTypesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * A list of Node Types.
+   * 
+ * + * repeated .google.cloud.vmwareengine.v1.NodeType node_types = 1; + */ + java.util.List getNodeTypesList(); + /** + * + * + *
+   * A list of Node Types.
+   * 
+ * + * repeated .google.cloud.vmwareengine.v1.NodeType node_types = 1; + */ + com.google.cloud.vmwareengine.v1.NodeType getNodeTypes(int index); + /** + * + * + *
+   * A list of Node Types.
+   * 
+ * + * repeated .google.cloud.vmwareengine.v1.NodeType node_types = 1; + */ + int getNodeTypesCount(); + /** + * + * + *
+   * A list of Node Types.
+   * 
+ * + * repeated .google.cloud.vmwareengine.v1.NodeType node_types = 1; + */ + java.util.List + getNodeTypesOrBuilderList(); + /** + * + * + *
+   * A list of Node Types.
+   * 
+ * + * repeated .google.cloud.vmwareengine.v1.NodeType node_types = 1; + */ + com.google.cloud.vmwareengine.v1.NodeTypeOrBuilder getNodeTypesOrBuilder(int index); + + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
+   * Locations that could not be reached when making an aggregated query using
+   * wildcards.
+   * 
+ * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + java.util.List getUnreachableList(); + /** + * + * + *
+   * Locations that could not be reached when making an aggregated query using
+   * wildcards.
+   * 
+ * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + int getUnreachableCount(); + /** + * + * + *
+   * Locations that could not be reached when making an aggregated query using
+   * wildcards.
+   * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + java.lang.String getUnreachable(int index); + /** + * + * + *
+   * Locations that could not be reached when making an aggregated query using
+   * wildcards.
+   * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + com.google.protobuf.ByteString getUnreachableBytes(int index); +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListPrivateCloudsRequest.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListPrivateCloudsRequest.java new file mode 100644 index 000000000000..26cc95f8b335 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListPrivateCloudsRequest.java @@ -0,0 +1,1491 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmwareengine/v1/vmwareengine.proto + +package com.google.cloud.vmwareengine.v1; + +/** + * + * + *
+ * Request message for [VmwareEngine.ListPrivateClouds][google.cloud.vmwareengine.v1.VmwareEngine.ListPrivateClouds]
+ * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.ListPrivateCloudsRequest} + */ +public final class ListPrivateCloudsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmwareengine.v1.ListPrivateCloudsRequest) + ListPrivateCloudsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListPrivateCloudsRequest.newBuilder() to construct. + private ListPrivateCloudsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListPrivateCloudsRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListPrivateCloudsRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListPrivateCloudsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListPrivateCloudsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.ListPrivateCloudsRequest.class, + com.google.cloud.vmwareengine.v1.ListPrivateCloudsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required. The resource name of the private cloud to be queried for
+   * clusters. Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-project/locations/us-west1-a`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The resource name of the private cloud to be queried for
+   * clusters. Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-project/locations/us-west1-a`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_; + /** + * + * + *
+   * The maximum number of private clouds to return in one page.
+   * The service may return fewer than this value.
+   * The maximum value is coerced to 1000.
+   * The default value of this field is 500.
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + private volatile java.lang.Object pageToken_; + /** + * + * + *
+   * A page token, received from a previous `ListPrivateClouds` call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to `ListPrivateClouds` must
+   * match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @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; + } + } + /** + * + * + *
+   * A page token, received from a previous `ListPrivateClouds` call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to `ListPrivateClouds` must
+   * match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 4; + private volatile java.lang.Object filter_; + /** + * + * + *
+   * A filter expression that matches resources returned in the response.
+   * The expression must specify the field name, a comparison operator, and the
+   * value that you want to use for filtering. The value must be a string, a
+   * number, or a boolean. The comparison operator must be `=`, `!=`, `>`, or
+   * `<`.
+   * For example, if you are filtering a list of private clouds, you can exclude
+   * the ones named `example-pc` by specifying `name != "example-pc"`.
+   * You can also filter nested fields. For example, you could specify
+   * `networkConfig.managementCidr = "192.168.0.0/24"` to include private clouds
+   * only if they have a matching address in their network configuration.
+   * To filter on multiple expressions, provide each separate expression within
+   * parentheses. For example:
+   * ```
+   * (name = "example-pc")
+   * (createTime > "2021-04-12T08:15:10.40Z")
+   * ```
+   * By default, each expression is an `AND` expression. However, you can
+   * include `AND` and `OR` expressions explicitly. For example:
+   * ```
+   * (name = "private-cloud-1") AND
+   * (createTime > "2021-04-12T08:15:10.40Z") OR
+   * (name = "private-cloud-2")
+   * ```
+   * 
+ * + * string filter = 4; + * + * @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 matches resources returned in the response.
+   * The expression must specify the field name, a comparison operator, and the
+   * value that you want to use for filtering. The value must be a string, a
+   * number, or a boolean. The comparison operator must be `=`, `!=`, `>`, or
+   * `<`.
+   * For example, if you are filtering a list of private clouds, you can exclude
+   * the ones named `example-pc` by specifying `name != "example-pc"`.
+   * You can also filter nested fields. For example, you could specify
+   * `networkConfig.managementCidr = "192.168.0.0/24"` to include private clouds
+   * only if they have a matching address in their network configuration.
+   * To filter on multiple expressions, provide each separate expression within
+   * parentheses. For example:
+   * ```
+   * (name = "example-pc")
+   * (createTime > "2021-04-12T08:15:10.40Z")
+   * ```
+   * By default, each expression is an `AND` expression. However, you can
+   * include `AND` and `OR` expressions explicitly. For example:
+   * ```
+   * (name = "private-cloud-1") AND
+   * (createTime > "2021-04-12T08:15:10.40Z") OR
+   * (name = "private-cloud-2")
+   * ```
+   * 
+ * + * string filter = 4; + * + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 5; + private volatile java.lang.Object orderBy_; + /** + * + * + *
+   * Sorts list results by a certain order. By default, returned results are
+   * ordered by `name` in ascending order. You can also sort results in
+   * descending order based on the `name` value using `orderBy="name desc"`.
+   * Currently, only ordering by `name` is supported.
+   * 
+ * + * string order_by = 5; + * + * @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, returned results are
+   * ordered by `name` in ascending order. You can also sort results in
+   * descending order based on the `name` value using `orderBy="name desc"`.
+   * Currently, only ordering by `name` is supported.
+   * 
+ * + * string order_by = 5; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, orderBy_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, orderBy_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.vmwareengine.v1.ListPrivateCloudsRequest)) { + return super.equals(obj); + } + com.google.cloud.vmwareengine.v1.ListPrivateCloudsRequest other = + (com.google.cloud.vmwareengine.v1.ListPrivateCloudsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmwareengine.v1.ListPrivateCloudsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.ListPrivateCloudsRequest 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.vmwareengine.v1.ListPrivateCloudsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.ListPrivateCloudsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.ListPrivateCloudsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.ListPrivateCloudsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.ListPrivateCloudsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.ListPrivateCloudsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.ListPrivateCloudsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.ListPrivateCloudsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.ListPrivateCloudsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.ListPrivateCloudsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.vmwareengine.v1.ListPrivateCloudsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for [VmwareEngine.ListPrivateClouds][google.cloud.vmwareengine.v1.VmwareEngine.ListPrivateClouds]
+   * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.ListPrivateCloudsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmwareengine.v1.ListPrivateCloudsRequest) + com.google.cloud.vmwareengine.v1.ListPrivateCloudsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListPrivateCloudsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListPrivateCloudsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.ListPrivateCloudsRequest.class, + com.google.cloud.vmwareengine.v1.ListPrivateCloudsRequest.Builder.class); + } + + // Construct using com.google.cloud.vmwareengine.v1.ListPrivateCloudsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + pageSize_ = 0; + + pageToken_ = ""; + + filter_ = ""; + + orderBy_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListPrivateCloudsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ListPrivateCloudsRequest getDefaultInstanceForType() { + return com.google.cloud.vmwareengine.v1.ListPrivateCloudsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ListPrivateCloudsRequest build() { + com.google.cloud.vmwareengine.v1.ListPrivateCloudsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ListPrivateCloudsRequest buildPartial() { + com.google.cloud.vmwareengine.v1.ListPrivateCloudsRequest result = + new com.google.cloud.vmwareengine.v1.ListPrivateCloudsRequest(this); + result.parent_ = parent_; + result.pageSize_ = pageSize_; + result.pageToken_ = pageToken_; + result.filter_ = filter_; + result.orderBy_ = orderBy_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.vmwareengine.v1.ListPrivateCloudsRequest) { + return mergeFrom((com.google.cloud.vmwareengine.v1.ListPrivateCloudsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmwareengine.v1.ListPrivateCloudsRequest other) { + if (other == com.google.cloud.vmwareengine.v1.ListPrivateCloudsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: + { + filter_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The resource name of the private cloud to be queried for
+     * clusters. Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-west1-a`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the private cloud to be queried for
+     * clusters. Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-west1-a`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the private cloud to be queried for
+     * clusters. Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-west1-a`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the private cloud to be queried for
+     * clusters. Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-west1-a`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the private cloud to be queried for
+     * clusters. Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-west1-a`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * The maximum number of private clouds to return in one page.
+     * The service may return fewer than this value.
+     * The maximum value is coerced to 1000.
+     * The default value of this field is 500.
+     * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * The maximum number of private clouds to return in one page.
+     * The service may return fewer than this value.
+     * The maximum value is coerced to 1000.
+     * The default value of this field is 500.
+     * 
+ * + * int32 page_size = 2; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The maximum number of private clouds to return in one page.
+     * The service may return fewer than this value.
+     * The maximum value is coerced to 1000.
+     * The default value of this field is 500.
+     * 
+ * + * int32 page_size = 2; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * A page token, received from a previous `ListPrivateClouds` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListPrivateClouds` must
+     * match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A page token, received from a previous `ListPrivateClouds` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListPrivateClouds` must
+     * match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @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; + } + } + /** + * + * + *
+     * A page token, received from a previous `ListPrivateClouds` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListPrivateClouds` must
+     * match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @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; + onChanged(); + return this; + } + /** + * + * + *
+     * A page token, received from a previous `ListPrivateClouds` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListPrivateClouds` must
+     * match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + + pageToken_ = getDefaultInstance().getPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * A page token, received from a previous `ListPrivateClouds` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListPrivateClouds` must
+     * match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + pageToken_ = value; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + /** + * + * + *
+     * A filter expression that matches resources returned in the response.
+     * The expression must specify the field name, a comparison operator, and the
+     * value that you want to use for filtering. The value must be a string, a
+     * number, or a boolean. The comparison operator must be `=`, `!=`, `>`, or
+     * `<`.
+     * For example, if you are filtering a list of private clouds, you can exclude
+     * the ones named `example-pc` by specifying `name != "example-pc"`.
+     * You can also filter nested fields. For example, you could specify
+     * `networkConfig.managementCidr = "192.168.0.0/24"` to include private clouds
+     * only if they have a matching address in their network configuration.
+     * To filter on multiple expressions, provide each separate expression within
+     * parentheses. For example:
+     * ```
+     * (name = "example-pc")
+     * (createTime > "2021-04-12T08:15:10.40Z")
+     * ```
+     * By default, each expression is an `AND` expression. However, you can
+     * include `AND` and `OR` expressions explicitly. For example:
+     * ```
+     * (name = "private-cloud-1") AND
+     * (createTime > "2021-04-12T08:15:10.40Z") OR
+     * (name = "private-cloud-2")
+     * ```
+     * 
+ * + * string filter = 4; + * + * @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 matches resources returned in the response.
+     * The expression must specify the field name, a comparison operator, and the
+     * value that you want to use for filtering. The value must be a string, a
+     * number, or a boolean. The comparison operator must be `=`, `!=`, `>`, or
+     * `<`.
+     * For example, if you are filtering a list of private clouds, you can exclude
+     * the ones named `example-pc` by specifying `name != "example-pc"`.
+     * You can also filter nested fields. For example, you could specify
+     * `networkConfig.managementCidr = "192.168.0.0/24"` to include private clouds
+     * only if they have a matching address in their network configuration.
+     * To filter on multiple expressions, provide each separate expression within
+     * parentheses. For example:
+     * ```
+     * (name = "example-pc")
+     * (createTime > "2021-04-12T08:15:10.40Z")
+     * ```
+     * By default, each expression is an `AND` expression. However, you can
+     * include `AND` and `OR` expressions explicitly. For example:
+     * ```
+     * (name = "private-cloud-1") AND
+     * (createTime > "2021-04-12T08:15:10.40Z") OR
+     * (name = "private-cloud-2")
+     * ```
+     * 
+ * + * string filter = 4; + * + * @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 matches resources returned in the response.
+     * The expression must specify the field name, a comparison operator, and the
+     * value that you want to use for filtering. The value must be a string, a
+     * number, or a boolean. The comparison operator must be `=`, `!=`, `>`, or
+     * `<`.
+     * For example, if you are filtering a list of private clouds, you can exclude
+     * the ones named `example-pc` by specifying `name != "example-pc"`.
+     * You can also filter nested fields. For example, you could specify
+     * `networkConfig.managementCidr = "192.168.0.0/24"` to include private clouds
+     * only if they have a matching address in their network configuration.
+     * To filter on multiple expressions, provide each separate expression within
+     * parentheses. For example:
+     * ```
+     * (name = "example-pc")
+     * (createTime > "2021-04-12T08:15:10.40Z")
+     * ```
+     * By default, each expression is an `AND` expression. However, you can
+     * include `AND` and `OR` expressions explicitly. For example:
+     * ```
+     * (name = "private-cloud-1") AND
+     * (createTime > "2021-04-12T08:15:10.40Z") OR
+     * (name = "private-cloud-2")
+     * ```
+     * 
+ * + * string filter = 4; + * + * @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; + onChanged(); + return this; + } + /** + * + * + *
+     * A filter expression that matches resources returned in the response.
+     * The expression must specify the field name, a comparison operator, and the
+     * value that you want to use for filtering. The value must be a string, a
+     * number, or a boolean. The comparison operator must be `=`, `!=`, `>`, or
+     * `<`.
+     * For example, if you are filtering a list of private clouds, you can exclude
+     * the ones named `example-pc` by specifying `name != "example-pc"`.
+     * You can also filter nested fields. For example, you could specify
+     * `networkConfig.managementCidr = "192.168.0.0/24"` to include private clouds
+     * only if they have a matching address in their network configuration.
+     * To filter on multiple expressions, provide each separate expression within
+     * parentheses. For example:
+     * ```
+     * (name = "example-pc")
+     * (createTime > "2021-04-12T08:15:10.40Z")
+     * ```
+     * By default, each expression is an `AND` expression. However, you can
+     * include `AND` and `OR` expressions explicitly. For example:
+     * ```
+     * (name = "private-cloud-1") AND
+     * (createTime > "2021-04-12T08:15:10.40Z") OR
+     * (name = "private-cloud-2")
+     * ```
+     * 
+ * + * string filter = 4; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + + filter_ = getDefaultInstance().getFilter(); + onChanged(); + return this; + } + /** + * + * + *
+     * A filter expression that matches resources returned in the response.
+     * The expression must specify the field name, a comparison operator, and the
+     * value that you want to use for filtering. The value must be a string, a
+     * number, or a boolean. The comparison operator must be `=`, `!=`, `>`, or
+     * `<`.
+     * For example, if you are filtering a list of private clouds, you can exclude
+     * the ones named `example-pc` by specifying `name != "example-pc"`.
+     * You can also filter nested fields. For example, you could specify
+     * `networkConfig.managementCidr = "192.168.0.0/24"` to include private clouds
+     * only if they have a matching address in their network configuration.
+     * To filter on multiple expressions, provide each separate expression within
+     * parentheses. For example:
+     * ```
+     * (name = "example-pc")
+     * (createTime > "2021-04-12T08:15:10.40Z")
+     * ```
+     * By default, each expression is an `AND` expression. However, you can
+     * include `AND` and `OR` expressions explicitly. For example:
+     * ```
+     * (name = "private-cloud-1") AND
+     * (createTime > "2021-04-12T08:15:10.40Z") OR
+     * (name = "private-cloud-2")
+     * ```
+     * 
+ * + * string filter = 4; + * + * @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; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + /** + * + * + *
+     * Sorts list results by a certain order. By default, returned results are
+     * ordered by `name` in ascending order. You can also sort results in
+     * descending order based on the `name` value using `orderBy="name desc"`.
+     * Currently, only ordering by `name` is supported.
+     * 
+ * + * string order_by = 5; + * + * @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, returned results are
+     * ordered by `name` in ascending order. You can also sort results in
+     * descending order based on the `name` value using `orderBy="name desc"`.
+     * Currently, only ordering by `name` is supported.
+     * 
+ * + * string order_by = 5; + * + * @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, returned results are
+     * ordered by `name` in ascending order. You can also sort results in
+     * descending order based on the `name` value using `orderBy="name desc"`.
+     * Currently, only ordering by `name` is supported.
+     * 
+ * + * string order_by = 5; + * + * @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; + onChanged(); + return this; + } + /** + * + * + *
+     * Sorts list results by a certain order. By default, returned results are
+     * ordered by `name` in ascending order. You can also sort results in
+     * descending order based on the `name` value using `orderBy="name desc"`.
+     * Currently, only ordering by `name` is supported.
+     * 
+ * + * string order_by = 5; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + + orderBy_ = getDefaultInstance().getOrderBy(); + onChanged(); + return this; + } + /** + * + * + *
+     * Sorts list results by a certain order. By default, returned results are
+     * ordered by `name` in ascending order. You can also sort results in
+     * descending order based on the `name` value using `orderBy="name desc"`.
+     * Currently, only ordering by `name` is supported.
+     * 
+ * + * string order_by = 5; + * + * @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; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.vmwareengine.v1.ListPrivateCloudsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmwareengine.v1.ListPrivateCloudsRequest) + private static final com.google.cloud.vmwareengine.v1.ListPrivateCloudsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmwareengine.v1.ListPrivateCloudsRequest(); + } + + public static com.google.cloud.vmwareengine.v1.ListPrivateCloudsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListPrivateCloudsRequest 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.vmwareengine.v1.ListPrivateCloudsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListPrivateCloudsRequestOrBuilder.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListPrivateCloudsRequestOrBuilder.java new file mode 100644 index 000000000000..02e93548a2b1 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListPrivateCloudsRequestOrBuilder.java @@ -0,0 +1,209 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmwareengine/v1/vmwareengine.proto + +package com.google.cloud.vmwareengine.v1; + +public interface ListPrivateCloudsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmwareengine.v1.ListPrivateCloudsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the private cloud to be queried for
+   * clusters. Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-project/locations/us-west1-a`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The resource name of the private cloud to be queried for
+   * clusters. Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-project/locations/us-west1-a`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * The maximum number of private clouds to return in one page.
+   * The service may return fewer than this value.
+   * The maximum value is coerced to 1000.
+   * The default value of this field is 500.
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * A page token, received from a previous `ListPrivateClouds` call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to `ListPrivateClouds` must
+   * match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * A page token, received from a previous `ListPrivateClouds` call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to `ListPrivateClouds` must
+   * match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * A filter expression that matches resources returned in the response.
+   * The expression must specify the field name, a comparison operator, and the
+   * value that you want to use for filtering. The value must be a string, a
+   * number, or a boolean. The comparison operator must be `=`, `!=`, `>`, or
+   * `<`.
+   * For example, if you are filtering a list of private clouds, you can exclude
+   * the ones named `example-pc` by specifying `name != "example-pc"`.
+   * You can also filter nested fields. For example, you could specify
+   * `networkConfig.managementCidr = "192.168.0.0/24"` to include private clouds
+   * only if they have a matching address in their network configuration.
+   * To filter on multiple expressions, provide each separate expression within
+   * parentheses. For example:
+   * ```
+   * (name = "example-pc")
+   * (createTime > "2021-04-12T08:15:10.40Z")
+   * ```
+   * By default, each expression is an `AND` expression. However, you can
+   * include `AND` and `OR` expressions explicitly. For example:
+   * ```
+   * (name = "private-cloud-1") AND
+   * (createTime > "2021-04-12T08:15:10.40Z") OR
+   * (name = "private-cloud-2")
+   * ```
+   * 
+ * + * string filter = 4; + * + * @return The filter. + */ + java.lang.String getFilter(); + /** + * + * + *
+   * A filter expression that matches resources returned in the response.
+   * The expression must specify the field name, a comparison operator, and the
+   * value that you want to use for filtering. The value must be a string, a
+   * number, or a boolean. The comparison operator must be `=`, `!=`, `>`, or
+   * `<`.
+   * For example, if you are filtering a list of private clouds, you can exclude
+   * the ones named `example-pc` by specifying `name != "example-pc"`.
+   * You can also filter nested fields. For example, you could specify
+   * `networkConfig.managementCidr = "192.168.0.0/24"` to include private clouds
+   * only if they have a matching address in their network configuration.
+   * To filter on multiple expressions, provide each separate expression within
+   * parentheses. For example:
+   * ```
+   * (name = "example-pc")
+   * (createTime > "2021-04-12T08:15:10.40Z")
+   * ```
+   * By default, each expression is an `AND` expression. However, you can
+   * include `AND` and `OR` expressions explicitly. For example:
+   * ```
+   * (name = "private-cloud-1") AND
+   * (createTime > "2021-04-12T08:15:10.40Z") OR
+   * (name = "private-cloud-2")
+   * ```
+   * 
+ * + * string filter = 4; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * Sorts list results by a certain order. By default, returned results are
+   * ordered by `name` in ascending order. You can also sort results in
+   * descending order based on the `name` value using `orderBy="name desc"`.
+   * Currently, only ordering by `name` is supported.
+   * 
+ * + * string order_by = 5; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + /** + * + * + *
+   * Sorts list results by a certain order. By default, returned results are
+   * ordered by `name` in ascending order. You can also sort results in
+   * descending order based on the `name` value using `orderBy="name desc"`.
+   * Currently, only ordering by `name` is supported.
+   * 
+ * + * string order_by = 5; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListPrivateCloudsResponse.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListPrivateCloudsResponse.java new file mode 100644 index 000000000000..fb2b53a5485a --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListPrivateCloudsResponse.java @@ -0,0 +1,1406 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmwareengine/v1/vmwareengine.proto + +package com.google.cloud.vmwareengine.v1; + +/** + * + * + *
+ * Response message for [VmwareEngine.ListPrivateClouds][google.cloud.vmwareengine.v1.VmwareEngine.ListPrivateClouds]
+ * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.ListPrivateCloudsResponse} + */ +public final class ListPrivateCloudsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmwareengine.v1.ListPrivateCloudsResponse) + ListPrivateCloudsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListPrivateCloudsResponse.newBuilder() to construct. + private ListPrivateCloudsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListPrivateCloudsResponse() { + privateClouds_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListPrivateCloudsResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListPrivateCloudsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListPrivateCloudsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.ListPrivateCloudsResponse.class, + com.google.cloud.vmwareengine.v1.ListPrivateCloudsResponse.Builder.class); + } + + public static final int PRIVATE_CLOUDS_FIELD_NUMBER = 1; + private java.util.List privateClouds_; + /** + * + * + *
+   * A list of private clouds.
+   * 
+ * + * repeated .google.cloud.vmwareengine.v1.PrivateCloud private_clouds = 1; + */ + @java.lang.Override + public java.util.List getPrivateCloudsList() { + return privateClouds_; + } + /** + * + * + *
+   * A list of private clouds.
+   * 
+ * + * repeated .google.cloud.vmwareengine.v1.PrivateCloud private_clouds = 1; + */ + @java.lang.Override + public java.util.List + getPrivateCloudsOrBuilderList() { + return privateClouds_; + } + /** + * + * + *
+   * A list of private clouds.
+   * 
+ * + * repeated .google.cloud.vmwareengine.v1.PrivateCloud private_clouds = 1; + */ + @java.lang.Override + public int getPrivateCloudsCount() { + return privateClouds_.size(); + } + /** + * + * + *
+   * A list of private clouds.
+   * 
+ * + * repeated .google.cloud.vmwareengine.v1.PrivateCloud private_clouds = 1; + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.PrivateCloud getPrivateClouds(int index) { + return privateClouds_.get(index); + } + /** + * + * + *
+   * A list of private clouds.
+   * 
+ * + * repeated .google.cloud.vmwareengine.v1.PrivateCloud private_clouds = 1; + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.PrivateCloudOrBuilder getPrivateCloudsOrBuilder( + int index) { + return privateClouds_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object nextPageToken_; + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UNREACHABLE_FIELD_NUMBER = 3; + private com.google.protobuf.LazyStringList unreachable_; + /** + * + * + *
+   * Locations that could not be reached when making an aggregated query using
+   * wildcards.
+   * 
+ * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_; + } + /** + * + * + *
+   * Locations that could not be reached when making an aggregated query using
+   * wildcards.
+   * 
+ * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + /** + * + * + *
+   * Locations that could not be reached when making an aggregated query using
+   * wildcards.
+   * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + /** + * + * + *
+   * Locations that could not be reached when making an aggregated query using
+   * wildcards.
+   * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < privateClouds_.size(); i++) { + output.writeMessage(1, privateClouds_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, unreachable_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < privateClouds_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, privateClouds_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + { + int dataSize = 0; + for (int i = 0; i < unreachable_.size(); i++) { + dataSize += computeStringSizeNoTag(unreachable_.getRaw(i)); + } + size += dataSize; + size += 1 * getUnreachableList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.vmwareengine.v1.ListPrivateCloudsResponse)) { + return super.equals(obj); + } + com.google.cloud.vmwareengine.v1.ListPrivateCloudsResponse other = + (com.google.cloud.vmwareengine.v1.ListPrivateCloudsResponse) obj; + + if (!getPrivateCloudsList().equals(other.getPrivateCloudsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getPrivateCloudsCount() > 0) { + hash = (37 * hash) + PRIVATE_CLOUDS_FIELD_NUMBER; + hash = (53 * hash) + getPrivateCloudsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + if (getUnreachableCount() > 0) { + hash = (37 * hash) + UNREACHABLE_FIELD_NUMBER; + hash = (53 * hash) + getUnreachableList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmwareengine.v1.ListPrivateCloudsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.ListPrivateCloudsResponse 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.vmwareengine.v1.ListPrivateCloudsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.ListPrivateCloudsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.ListPrivateCloudsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.ListPrivateCloudsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.ListPrivateCloudsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.ListPrivateCloudsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.ListPrivateCloudsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.ListPrivateCloudsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.ListPrivateCloudsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.ListPrivateCloudsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.vmwareengine.v1.ListPrivateCloudsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Response message for [VmwareEngine.ListPrivateClouds][google.cloud.vmwareengine.v1.VmwareEngine.ListPrivateClouds]
+   * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.ListPrivateCloudsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmwareengine.v1.ListPrivateCloudsResponse) + com.google.cloud.vmwareengine.v1.ListPrivateCloudsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListPrivateCloudsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListPrivateCloudsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.ListPrivateCloudsResponse.class, + com.google.cloud.vmwareengine.v1.ListPrivateCloudsResponse.Builder.class); + } + + // Construct using com.google.cloud.vmwareengine.v1.ListPrivateCloudsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (privateCloudsBuilder_ == null) { + privateClouds_ = java.util.Collections.emptyList(); + } else { + privateClouds_ = null; + privateCloudsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + + unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListPrivateCloudsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ListPrivateCloudsResponse getDefaultInstanceForType() { + return com.google.cloud.vmwareengine.v1.ListPrivateCloudsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ListPrivateCloudsResponse build() { + com.google.cloud.vmwareengine.v1.ListPrivateCloudsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ListPrivateCloudsResponse buildPartial() { + com.google.cloud.vmwareengine.v1.ListPrivateCloudsResponse result = + new com.google.cloud.vmwareengine.v1.ListPrivateCloudsResponse(this); + int from_bitField0_ = bitField0_; + if (privateCloudsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + privateClouds_ = java.util.Collections.unmodifiableList(privateClouds_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.privateClouds_ = privateClouds_; + } else { + result.privateClouds_ = privateCloudsBuilder_.build(); + } + result.nextPageToken_ = nextPageToken_; + if (((bitField0_ & 0x00000002) != 0)) { + unreachable_ = unreachable_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.unreachable_ = unreachable_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.vmwareengine.v1.ListPrivateCloudsResponse) { + return mergeFrom((com.google.cloud.vmwareengine.v1.ListPrivateCloudsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmwareengine.v1.ListPrivateCloudsResponse other) { + if (other == com.google.cloud.vmwareengine.v1.ListPrivateCloudsResponse.getDefaultInstance()) + return this; + if (privateCloudsBuilder_ == null) { + if (!other.privateClouds_.isEmpty()) { + if (privateClouds_.isEmpty()) { + privateClouds_ = other.privateClouds_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensurePrivateCloudsIsMutable(); + privateClouds_.addAll(other.privateClouds_); + } + onChanged(); + } + } else { + if (!other.privateClouds_.isEmpty()) { + if (privateCloudsBuilder_.isEmpty()) { + privateCloudsBuilder_.dispose(); + privateCloudsBuilder_ = null; + privateClouds_ = other.privateClouds_; + bitField0_ = (bitField0_ & ~0x00000001); + privateCloudsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPrivateCloudsFieldBuilder() + : null; + } else { + privateCloudsBuilder_.addAllMessages(other.privateClouds_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + onChanged(); + } + if (!other.unreachable_.isEmpty()) { + if (unreachable_.isEmpty()) { + unreachable_ = other.unreachable_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureUnreachableIsMutable(); + unreachable_.addAll(other.unreachable_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.vmwareengine.v1.PrivateCloud m = + input.readMessage( + com.google.cloud.vmwareengine.v1.PrivateCloud.parser(), extensionRegistry); + if (privateCloudsBuilder_ == null) { + ensurePrivateCloudsIsMutable(); + privateClouds_.add(m); + } else { + privateCloudsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List privateClouds_ = + java.util.Collections.emptyList(); + + private void ensurePrivateCloudsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + privateClouds_ = + new java.util.ArrayList(privateClouds_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vmwareengine.v1.PrivateCloud, + com.google.cloud.vmwareengine.v1.PrivateCloud.Builder, + com.google.cloud.vmwareengine.v1.PrivateCloudOrBuilder> + privateCloudsBuilder_; + + /** + * + * + *
+     * A list of private clouds.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.PrivateCloud private_clouds = 1; + */ + public java.util.List getPrivateCloudsList() { + if (privateCloudsBuilder_ == null) { + return java.util.Collections.unmodifiableList(privateClouds_); + } else { + return privateCloudsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * A list of private clouds.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.PrivateCloud private_clouds = 1; + */ + public int getPrivateCloudsCount() { + if (privateCloudsBuilder_ == null) { + return privateClouds_.size(); + } else { + return privateCloudsBuilder_.getCount(); + } + } + /** + * + * + *
+     * A list of private clouds.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.PrivateCloud private_clouds = 1; + */ + public com.google.cloud.vmwareengine.v1.PrivateCloud getPrivateClouds(int index) { + if (privateCloudsBuilder_ == null) { + return privateClouds_.get(index); + } else { + return privateCloudsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * A list of private clouds.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.PrivateCloud private_clouds = 1; + */ + public Builder setPrivateClouds( + int index, com.google.cloud.vmwareengine.v1.PrivateCloud value) { + if (privateCloudsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePrivateCloudsIsMutable(); + privateClouds_.set(index, value); + onChanged(); + } else { + privateCloudsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * A list of private clouds.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.PrivateCloud private_clouds = 1; + */ + public Builder setPrivateClouds( + int index, com.google.cloud.vmwareengine.v1.PrivateCloud.Builder builderForValue) { + if (privateCloudsBuilder_ == null) { + ensurePrivateCloudsIsMutable(); + privateClouds_.set(index, builderForValue.build()); + onChanged(); + } else { + privateCloudsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of private clouds.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.PrivateCloud private_clouds = 1; + */ + public Builder addPrivateClouds(com.google.cloud.vmwareengine.v1.PrivateCloud value) { + if (privateCloudsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePrivateCloudsIsMutable(); + privateClouds_.add(value); + onChanged(); + } else { + privateCloudsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * A list of private clouds.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.PrivateCloud private_clouds = 1; + */ + public Builder addPrivateClouds( + int index, com.google.cloud.vmwareengine.v1.PrivateCloud value) { + if (privateCloudsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePrivateCloudsIsMutable(); + privateClouds_.add(index, value); + onChanged(); + } else { + privateCloudsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * A list of private clouds.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.PrivateCloud private_clouds = 1; + */ + public Builder addPrivateClouds( + com.google.cloud.vmwareengine.v1.PrivateCloud.Builder builderForValue) { + if (privateCloudsBuilder_ == null) { + ensurePrivateCloudsIsMutable(); + privateClouds_.add(builderForValue.build()); + onChanged(); + } else { + privateCloudsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of private clouds.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.PrivateCloud private_clouds = 1; + */ + public Builder addPrivateClouds( + int index, com.google.cloud.vmwareengine.v1.PrivateCloud.Builder builderForValue) { + if (privateCloudsBuilder_ == null) { + ensurePrivateCloudsIsMutable(); + privateClouds_.add(index, builderForValue.build()); + onChanged(); + } else { + privateCloudsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of private clouds.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.PrivateCloud private_clouds = 1; + */ + public Builder addAllPrivateClouds( + java.lang.Iterable values) { + if (privateCloudsBuilder_ == null) { + ensurePrivateCloudsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, privateClouds_); + onChanged(); + } else { + privateCloudsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * A list of private clouds.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.PrivateCloud private_clouds = 1; + */ + public Builder clearPrivateClouds() { + if (privateCloudsBuilder_ == null) { + privateClouds_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + privateCloudsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A list of private clouds.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.PrivateCloud private_clouds = 1; + */ + public Builder removePrivateClouds(int index) { + if (privateCloudsBuilder_ == null) { + ensurePrivateCloudsIsMutable(); + privateClouds_.remove(index); + onChanged(); + } else { + privateCloudsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * A list of private clouds.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.PrivateCloud private_clouds = 1; + */ + public com.google.cloud.vmwareengine.v1.PrivateCloud.Builder getPrivateCloudsBuilder( + int index) { + return getPrivateCloudsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * A list of private clouds.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.PrivateCloud private_clouds = 1; + */ + public com.google.cloud.vmwareengine.v1.PrivateCloudOrBuilder getPrivateCloudsOrBuilder( + int index) { + if (privateCloudsBuilder_ == null) { + return privateClouds_.get(index); + } else { + return privateCloudsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * A list of private clouds.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.PrivateCloud private_clouds = 1; + */ + public java.util.List + getPrivateCloudsOrBuilderList() { + if (privateCloudsBuilder_ != null) { + return privateCloudsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(privateClouds_); + } + } + /** + * + * + *
+     * A list of private clouds.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.PrivateCloud private_clouds = 1; + */ + public com.google.cloud.vmwareengine.v1.PrivateCloud.Builder addPrivateCloudsBuilder() { + return getPrivateCloudsFieldBuilder() + .addBuilder(com.google.cloud.vmwareengine.v1.PrivateCloud.getDefaultInstance()); + } + /** + * + * + *
+     * A list of private clouds.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.PrivateCloud private_clouds = 1; + */ + public com.google.cloud.vmwareengine.v1.PrivateCloud.Builder addPrivateCloudsBuilder( + int index) { + return getPrivateCloudsFieldBuilder() + .addBuilder(index, com.google.cloud.vmwareengine.v1.PrivateCloud.getDefaultInstance()); + } + /** + * + * + *
+     * A list of private clouds.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.PrivateCloud private_clouds = 1; + */ + public java.util.List + getPrivateCloudsBuilderList() { + return getPrivateCloudsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vmwareengine.v1.PrivateCloud, + com.google.cloud.vmwareengine.v1.PrivateCloud.Builder, + com.google.cloud.vmwareengine.v1.PrivateCloudOrBuilder> + getPrivateCloudsFieldBuilder() { + if (privateCloudsBuilder_ == null) { + privateCloudsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vmwareengine.v1.PrivateCloud, + com.google.cloud.vmwareengine.v1.PrivateCloud.Builder, + com.google.cloud.vmwareengine.v1.PrivateCloudOrBuilder>( + privateClouds_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + privateClouds_ = null; + } + return privateCloudsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nextPageToken_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + + nextPageToken_ = getDefaultInstance().getNextPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nextPageToken_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList unreachable_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureUnreachableIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); + bitField0_ |= 0x00000002; + } + } + /** + * + * + *
+     * Locations that could not be reached when making an aggregated query using
+     * wildcards.
+     * 
+ * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_.getUnmodifiableView(); + } + /** + * + * + *
+     * Locations that could not be reached when making an aggregated query using
+     * wildcards.
+     * 
+ * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + /** + * + * + *
+     * Locations that could not be reached when making an aggregated query using
+     * wildcards.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + /** + * + * + *
+     * Locations that could not be reached when making an aggregated query using
+     * wildcards.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + /** + * + * + *
+     * Locations that could not be reached when making an aggregated query using
+     * wildcards.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param index The index to set the value at. + * @param value The unreachable to set. + * @return This builder for chaining. + */ + public Builder setUnreachable(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Locations that could not be reached when making an aggregated query using
+     * wildcards.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param value The unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Locations that could not be reached when making an aggregated query using
+     * wildcards.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param values The unreachable to add. + * @return This builder for chaining. + */ + public Builder addAllUnreachable(java.lang.Iterable values) { + ensureUnreachableIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + onChanged(); + return this; + } + /** + * + * + *
+     * Locations that could not be reached when making an aggregated query using
+     * wildcards.
+     * 
+ * + * repeated string unreachable = 3; + * + * @return This builder for chaining. + */ + public Builder clearUnreachable() { + unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Locations that could not be reached when making an aggregated query using
+     * wildcards.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param value The bytes of the unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureUnreachableIsMutable(); + unreachable_.add(value); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.vmwareengine.v1.ListPrivateCloudsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmwareengine.v1.ListPrivateCloudsResponse) + private static final com.google.cloud.vmwareengine.v1.ListPrivateCloudsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmwareengine.v1.ListPrivateCloudsResponse(); + } + + public static com.google.cloud.vmwareengine.v1.ListPrivateCloudsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListPrivateCloudsResponse 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.vmwareengine.v1.ListPrivateCloudsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListPrivateCloudsResponseOrBuilder.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListPrivateCloudsResponseOrBuilder.java new file mode 100644 index 000000000000..4a17246e5cad --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListPrivateCloudsResponseOrBuilder.java @@ -0,0 +1,159 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmwareengine/v1/vmwareengine.proto + +package com.google.cloud.vmwareengine.v1; + +public interface ListPrivateCloudsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmwareengine.v1.ListPrivateCloudsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * A list of private clouds.
+   * 
+ * + * repeated .google.cloud.vmwareengine.v1.PrivateCloud private_clouds = 1; + */ + java.util.List getPrivateCloudsList(); + /** + * + * + *
+   * A list of private clouds.
+   * 
+ * + * repeated .google.cloud.vmwareengine.v1.PrivateCloud private_clouds = 1; + */ + com.google.cloud.vmwareengine.v1.PrivateCloud getPrivateClouds(int index); + /** + * + * + *
+   * A list of private clouds.
+   * 
+ * + * repeated .google.cloud.vmwareengine.v1.PrivateCloud private_clouds = 1; + */ + int getPrivateCloudsCount(); + /** + * + * + *
+   * A list of private clouds.
+   * 
+ * + * repeated .google.cloud.vmwareengine.v1.PrivateCloud private_clouds = 1; + */ + java.util.List + getPrivateCloudsOrBuilderList(); + /** + * + * + *
+   * A list of private clouds.
+   * 
+ * + * repeated .google.cloud.vmwareengine.v1.PrivateCloud private_clouds = 1; + */ + com.google.cloud.vmwareengine.v1.PrivateCloudOrBuilder getPrivateCloudsOrBuilder(int index); + + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
+   * Locations that could not be reached when making an aggregated query using
+   * wildcards.
+   * 
+ * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + java.util.List getUnreachableList(); + /** + * + * + *
+   * Locations that could not be reached when making an aggregated query using
+   * wildcards.
+   * 
+ * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + int getUnreachableCount(); + /** + * + * + *
+   * Locations that could not be reached when making an aggregated query using
+   * wildcards.
+   * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + java.lang.String getUnreachable(int index); + /** + * + * + *
+   * Locations that could not be reached when making an aggregated query using
+   * wildcards.
+   * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + com.google.protobuf.ByteString getUnreachableBytes(int index); +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListSubnetsRequest.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListSubnetsRequest.java new file mode 100644 index 000000000000..6fe1ed795039 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListSubnetsRequest.java @@ -0,0 +1,966 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmwareengine/v1/vmwareengine.proto + +package com.google.cloud.vmwareengine.v1; + +/** + * + * + *
+ * Request message for [VmwareEngine.ListSubnets][google.cloud.vmwareengine.v1.VmwareEngine.ListSubnets]
+ * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.ListSubnetsRequest} + */ +public final class ListSubnetsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmwareengine.v1.ListSubnetsRequest) + ListSubnetsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListSubnetsRequest.newBuilder() to construct. + private ListSubnetsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListSubnetsRequest() { + parent_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListSubnetsRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListSubnetsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListSubnetsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.ListSubnetsRequest.class, + com.google.cloud.vmwareengine.v1.ListSubnetsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required. The resource name of the private cloud to be queried for
+   * subnets.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The resource name of the private cloud to be queried for
+   * subnets.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_; + /** + * + * + *
+   * The maximum number of subnets to return in one page.
+   * The service may return fewer than this value.
+   * The maximum value is coerced to 1000.
+   * The default value of this field is 500.
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + private volatile java.lang.Object pageToken_; + /** + * + * + *
+   * A page token, received from a previous `ListSubnetsRequest` call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to
+   * `ListSubnetsRequest` must match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @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; + } + } + /** + * + * + *
+   * A page token, received from a previous `ListSubnetsRequest` call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to
+   * `ListSubnetsRequest` must match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.vmwareengine.v1.ListSubnetsRequest)) { + return super.equals(obj); + } + com.google.cloud.vmwareengine.v1.ListSubnetsRequest other = + (com.google.cloud.vmwareengine.v1.ListSubnetsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmwareengine.v1.ListSubnetsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.ListSubnetsRequest 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.vmwareengine.v1.ListSubnetsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.ListSubnetsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.ListSubnetsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.ListSubnetsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.ListSubnetsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.ListSubnetsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.ListSubnetsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.ListSubnetsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.ListSubnetsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.ListSubnetsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.vmwareengine.v1.ListSubnetsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for [VmwareEngine.ListSubnets][google.cloud.vmwareengine.v1.VmwareEngine.ListSubnets]
+   * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.ListSubnetsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmwareengine.v1.ListSubnetsRequest) + com.google.cloud.vmwareengine.v1.ListSubnetsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListSubnetsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListSubnetsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.ListSubnetsRequest.class, + com.google.cloud.vmwareengine.v1.ListSubnetsRequest.Builder.class); + } + + // Construct using com.google.cloud.vmwareengine.v1.ListSubnetsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + pageSize_ = 0; + + pageToken_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListSubnetsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ListSubnetsRequest getDefaultInstanceForType() { + return com.google.cloud.vmwareengine.v1.ListSubnetsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ListSubnetsRequest build() { + com.google.cloud.vmwareengine.v1.ListSubnetsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ListSubnetsRequest buildPartial() { + com.google.cloud.vmwareengine.v1.ListSubnetsRequest result = + new com.google.cloud.vmwareengine.v1.ListSubnetsRequest(this); + result.parent_ = parent_; + result.pageSize_ = pageSize_; + result.pageToken_ = pageToken_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.vmwareengine.v1.ListSubnetsRequest) { + return mergeFrom((com.google.cloud.vmwareengine.v1.ListSubnetsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmwareengine.v1.ListSubnetsRequest other) { + if (other == com.google.cloud.vmwareengine.v1.ListSubnetsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The resource name of the private cloud to be queried for
+     * subnets.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the private cloud to be queried for
+     * subnets.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the private cloud to be queried for
+     * subnets.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the private cloud to be queried for
+     * subnets.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the private cloud to be queried for
+     * subnets.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * The maximum number of subnets to return in one page.
+     * The service may return fewer than this value.
+     * The maximum value is coerced to 1000.
+     * The default value of this field is 500.
+     * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * The maximum number of subnets to return in one page.
+     * The service may return fewer than this value.
+     * The maximum value is coerced to 1000.
+     * The default value of this field is 500.
+     * 
+ * + * int32 page_size = 2; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The maximum number of subnets to return in one page.
+     * The service may return fewer than this value.
+     * The maximum value is coerced to 1000.
+     * The default value of this field is 500.
+     * 
+ * + * int32 page_size = 2; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * A page token, received from a previous `ListSubnetsRequest` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to
+     * `ListSubnetsRequest` must match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A page token, received from a previous `ListSubnetsRequest` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to
+     * `ListSubnetsRequest` must match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @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; + } + } + /** + * + * + *
+     * A page token, received from a previous `ListSubnetsRequest` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to
+     * `ListSubnetsRequest` must match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @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; + onChanged(); + return this; + } + /** + * + * + *
+     * A page token, received from a previous `ListSubnetsRequest` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to
+     * `ListSubnetsRequest` must match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + + pageToken_ = getDefaultInstance().getPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * A page token, received from a previous `ListSubnetsRequest` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to
+     * `ListSubnetsRequest` must match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + pageToken_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.vmwareengine.v1.ListSubnetsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmwareengine.v1.ListSubnetsRequest) + private static final com.google.cloud.vmwareengine.v1.ListSubnetsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmwareengine.v1.ListSubnetsRequest(); + } + + public static com.google.cloud.vmwareengine.v1.ListSubnetsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSubnetsRequest 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.vmwareengine.v1.ListSubnetsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListSubnetsRequestOrBuilder.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListSubnetsRequestOrBuilder.java new file mode 100644 index 000000000000..ed4639c07412 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListSubnetsRequestOrBuilder.java @@ -0,0 +1,111 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmwareengine/v1/vmwareengine.proto + +package com.google.cloud.vmwareengine.v1; + +public interface ListSubnetsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmwareengine.v1.ListSubnetsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the private cloud to be queried for
+   * subnets.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The resource name of the private cloud to be queried for
+   * subnets.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * The maximum number of subnets to return in one page.
+   * The service may return fewer than this value.
+   * The maximum value is coerced to 1000.
+   * The default value of this field is 500.
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * A page token, received from a previous `ListSubnetsRequest` call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to
+   * `ListSubnetsRequest` must match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * A page token, received from a previous `ListSubnetsRequest` call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to
+   * `ListSubnetsRequest` must match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListSubnetsResponse.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListSubnetsResponse.java new file mode 100644 index 000000000000..36c85dd95550 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListSubnetsResponse.java @@ -0,0 +1,1110 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmwareengine/v1/vmwareengine.proto + +package com.google.cloud.vmwareengine.v1; + +/** + * + * + *
+ * Response message for [VmwareEngine.ListSubnets][google.cloud.vmwareengine.v1.VmwareEngine.ListSubnets]
+ * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.ListSubnetsResponse} + */ +public final class ListSubnetsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmwareengine.v1.ListSubnetsResponse) + ListSubnetsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListSubnetsResponse.newBuilder() to construct. + private ListSubnetsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListSubnetsResponse() { + subnets_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListSubnetsResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListSubnetsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListSubnetsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.ListSubnetsResponse.class, + com.google.cloud.vmwareengine.v1.ListSubnetsResponse.Builder.class); + } + + public static final int SUBNETS_FIELD_NUMBER = 1; + private java.util.List subnets_; + /** + * + * + *
+   * A list of subnets.
+   * 
+ * + * repeated .google.cloud.vmwareengine.v1.Subnet subnets = 1; + */ + @java.lang.Override + public java.util.List getSubnetsList() { + return subnets_; + } + /** + * + * + *
+   * A list of subnets.
+   * 
+ * + * repeated .google.cloud.vmwareengine.v1.Subnet subnets = 1; + */ + @java.lang.Override + public java.util.List + getSubnetsOrBuilderList() { + return subnets_; + } + /** + * + * + *
+   * A list of subnets.
+   * 
+ * + * repeated .google.cloud.vmwareengine.v1.Subnet subnets = 1; + */ + @java.lang.Override + public int getSubnetsCount() { + return subnets_.size(); + } + /** + * + * + *
+   * A list of subnets.
+   * 
+ * + * repeated .google.cloud.vmwareengine.v1.Subnet subnets = 1; + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.Subnet getSubnets(int index) { + return subnets_.get(index); + } + /** + * + * + *
+   * A list of subnets.
+   * 
+ * + * repeated .google.cloud.vmwareengine.v1.Subnet subnets = 1; + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.SubnetOrBuilder getSubnetsOrBuilder(int index) { + return subnets_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object nextPageToken_; + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < subnets_.size(); i++) { + output.writeMessage(1, subnets_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < subnets_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, subnets_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.vmwareengine.v1.ListSubnetsResponse)) { + return super.equals(obj); + } + com.google.cloud.vmwareengine.v1.ListSubnetsResponse other = + (com.google.cloud.vmwareengine.v1.ListSubnetsResponse) obj; + + if (!getSubnetsList().equals(other.getSubnetsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getSubnetsCount() > 0) { + hash = (37 * hash) + SUBNETS_FIELD_NUMBER; + hash = (53 * hash) + getSubnetsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmwareengine.v1.ListSubnetsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.ListSubnetsResponse 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.vmwareengine.v1.ListSubnetsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.ListSubnetsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.ListSubnetsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.ListSubnetsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.ListSubnetsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.ListSubnetsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.ListSubnetsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.ListSubnetsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.ListSubnetsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.ListSubnetsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.vmwareengine.v1.ListSubnetsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Response message for [VmwareEngine.ListSubnets][google.cloud.vmwareengine.v1.VmwareEngine.ListSubnets]
+   * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.ListSubnetsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmwareengine.v1.ListSubnetsResponse) + com.google.cloud.vmwareengine.v1.ListSubnetsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListSubnetsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListSubnetsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.ListSubnetsResponse.class, + com.google.cloud.vmwareengine.v1.ListSubnetsResponse.Builder.class); + } + + // Construct using com.google.cloud.vmwareengine.v1.ListSubnetsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (subnetsBuilder_ == null) { + subnets_ = java.util.Collections.emptyList(); + } else { + subnets_ = null; + subnetsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListSubnetsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ListSubnetsResponse getDefaultInstanceForType() { + return com.google.cloud.vmwareengine.v1.ListSubnetsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ListSubnetsResponse build() { + com.google.cloud.vmwareengine.v1.ListSubnetsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ListSubnetsResponse buildPartial() { + com.google.cloud.vmwareengine.v1.ListSubnetsResponse result = + new com.google.cloud.vmwareengine.v1.ListSubnetsResponse(this); + int from_bitField0_ = bitField0_; + if (subnetsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + subnets_ = java.util.Collections.unmodifiableList(subnets_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.subnets_ = subnets_; + } else { + result.subnets_ = subnetsBuilder_.build(); + } + result.nextPageToken_ = nextPageToken_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.vmwareengine.v1.ListSubnetsResponse) { + return mergeFrom((com.google.cloud.vmwareengine.v1.ListSubnetsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmwareengine.v1.ListSubnetsResponse other) { + if (other == com.google.cloud.vmwareengine.v1.ListSubnetsResponse.getDefaultInstance()) + return this; + if (subnetsBuilder_ == null) { + if (!other.subnets_.isEmpty()) { + if (subnets_.isEmpty()) { + subnets_ = other.subnets_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureSubnetsIsMutable(); + subnets_.addAll(other.subnets_); + } + onChanged(); + } + } else { + if (!other.subnets_.isEmpty()) { + if (subnetsBuilder_.isEmpty()) { + subnetsBuilder_.dispose(); + subnetsBuilder_ = null; + subnets_ = other.subnets_; + bitField0_ = (bitField0_ & ~0x00000001); + subnetsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSubnetsFieldBuilder() + : null; + } else { + subnetsBuilder_.addAllMessages(other.subnets_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.vmwareengine.v1.Subnet m = + input.readMessage( + com.google.cloud.vmwareengine.v1.Subnet.parser(), extensionRegistry); + if (subnetsBuilder_ == null) { + ensureSubnetsIsMutable(); + subnets_.add(m); + } else { + subnetsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List subnets_ = + java.util.Collections.emptyList(); + + private void ensureSubnetsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + subnets_ = new java.util.ArrayList(subnets_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vmwareengine.v1.Subnet, + com.google.cloud.vmwareengine.v1.Subnet.Builder, + com.google.cloud.vmwareengine.v1.SubnetOrBuilder> + subnetsBuilder_; + + /** + * + * + *
+     * A list of subnets.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.Subnet subnets = 1; + */ + public java.util.List getSubnetsList() { + if (subnetsBuilder_ == null) { + return java.util.Collections.unmodifiableList(subnets_); + } else { + return subnetsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * A list of subnets.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.Subnet subnets = 1; + */ + public int getSubnetsCount() { + if (subnetsBuilder_ == null) { + return subnets_.size(); + } else { + return subnetsBuilder_.getCount(); + } + } + /** + * + * + *
+     * A list of subnets.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.Subnet subnets = 1; + */ + public com.google.cloud.vmwareengine.v1.Subnet getSubnets(int index) { + if (subnetsBuilder_ == null) { + return subnets_.get(index); + } else { + return subnetsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * A list of subnets.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.Subnet subnets = 1; + */ + public Builder setSubnets(int index, com.google.cloud.vmwareengine.v1.Subnet value) { + if (subnetsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSubnetsIsMutable(); + subnets_.set(index, value); + onChanged(); + } else { + subnetsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * A list of subnets.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.Subnet subnets = 1; + */ + public Builder setSubnets( + int index, com.google.cloud.vmwareengine.v1.Subnet.Builder builderForValue) { + if (subnetsBuilder_ == null) { + ensureSubnetsIsMutable(); + subnets_.set(index, builderForValue.build()); + onChanged(); + } else { + subnetsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of subnets.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.Subnet subnets = 1; + */ + public Builder addSubnets(com.google.cloud.vmwareengine.v1.Subnet value) { + if (subnetsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSubnetsIsMutable(); + subnets_.add(value); + onChanged(); + } else { + subnetsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * A list of subnets.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.Subnet subnets = 1; + */ + public Builder addSubnets(int index, com.google.cloud.vmwareengine.v1.Subnet value) { + if (subnetsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSubnetsIsMutable(); + subnets_.add(index, value); + onChanged(); + } else { + subnetsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * A list of subnets.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.Subnet subnets = 1; + */ + public Builder addSubnets(com.google.cloud.vmwareengine.v1.Subnet.Builder builderForValue) { + if (subnetsBuilder_ == null) { + ensureSubnetsIsMutable(); + subnets_.add(builderForValue.build()); + onChanged(); + } else { + subnetsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of subnets.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.Subnet subnets = 1; + */ + public Builder addSubnets( + int index, com.google.cloud.vmwareengine.v1.Subnet.Builder builderForValue) { + if (subnetsBuilder_ == null) { + ensureSubnetsIsMutable(); + subnets_.add(index, builderForValue.build()); + onChanged(); + } else { + subnetsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of subnets.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.Subnet subnets = 1; + */ + public Builder addAllSubnets( + java.lang.Iterable values) { + if (subnetsBuilder_ == null) { + ensureSubnetsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, subnets_); + onChanged(); + } else { + subnetsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * A list of subnets.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.Subnet subnets = 1; + */ + public Builder clearSubnets() { + if (subnetsBuilder_ == null) { + subnets_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + subnetsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A list of subnets.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.Subnet subnets = 1; + */ + public Builder removeSubnets(int index) { + if (subnetsBuilder_ == null) { + ensureSubnetsIsMutable(); + subnets_.remove(index); + onChanged(); + } else { + subnetsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * A list of subnets.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.Subnet subnets = 1; + */ + public com.google.cloud.vmwareengine.v1.Subnet.Builder getSubnetsBuilder(int index) { + return getSubnetsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * A list of subnets.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.Subnet subnets = 1; + */ + public com.google.cloud.vmwareengine.v1.SubnetOrBuilder getSubnetsOrBuilder(int index) { + if (subnetsBuilder_ == null) { + return subnets_.get(index); + } else { + return subnetsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * A list of subnets.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.Subnet subnets = 1; + */ + public java.util.List + getSubnetsOrBuilderList() { + if (subnetsBuilder_ != null) { + return subnetsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(subnets_); + } + } + /** + * + * + *
+     * A list of subnets.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.Subnet subnets = 1; + */ + public com.google.cloud.vmwareengine.v1.Subnet.Builder addSubnetsBuilder() { + return getSubnetsFieldBuilder() + .addBuilder(com.google.cloud.vmwareengine.v1.Subnet.getDefaultInstance()); + } + /** + * + * + *
+     * A list of subnets.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.Subnet subnets = 1; + */ + public com.google.cloud.vmwareengine.v1.Subnet.Builder addSubnetsBuilder(int index) { + return getSubnetsFieldBuilder() + .addBuilder(index, com.google.cloud.vmwareengine.v1.Subnet.getDefaultInstance()); + } + /** + * + * + *
+     * A list of subnets.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.Subnet subnets = 1; + */ + public java.util.List getSubnetsBuilderList() { + return getSubnetsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vmwareengine.v1.Subnet, + com.google.cloud.vmwareengine.v1.Subnet.Builder, + com.google.cloud.vmwareengine.v1.SubnetOrBuilder> + getSubnetsFieldBuilder() { + if (subnetsBuilder_ == null) { + subnetsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vmwareengine.v1.Subnet, + com.google.cloud.vmwareengine.v1.Subnet.Builder, + com.google.cloud.vmwareengine.v1.SubnetOrBuilder>( + subnets_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + subnets_ = null; + } + return subnetsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nextPageToken_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + + nextPageToken_ = getDefaultInstance().getNextPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nextPageToken_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.vmwareengine.v1.ListSubnetsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmwareengine.v1.ListSubnetsResponse) + private static final com.google.cloud.vmwareengine.v1.ListSubnetsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmwareengine.v1.ListSubnetsResponse(); + } + + public static com.google.cloud.vmwareengine.v1.ListSubnetsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSubnetsResponse 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.vmwareengine.v1.ListSubnetsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListSubnetsResponseOrBuilder.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListSubnetsResponseOrBuilder.java new file mode 100644 index 000000000000..dbc3fc32ead1 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListSubnetsResponseOrBuilder.java @@ -0,0 +1,104 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmwareengine/v1/vmwareengine.proto + +package com.google.cloud.vmwareengine.v1; + +public interface ListSubnetsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmwareengine.v1.ListSubnetsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * A list of subnets.
+   * 
+ * + * repeated .google.cloud.vmwareengine.v1.Subnet subnets = 1; + */ + java.util.List getSubnetsList(); + /** + * + * + *
+   * A list of subnets.
+   * 
+ * + * repeated .google.cloud.vmwareengine.v1.Subnet subnets = 1; + */ + com.google.cloud.vmwareengine.v1.Subnet getSubnets(int index); + /** + * + * + *
+   * A list of subnets.
+   * 
+ * + * repeated .google.cloud.vmwareengine.v1.Subnet subnets = 1; + */ + int getSubnetsCount(); + /** + * + * + *
+   * A list of subnets.
+   * 
+ * + * repeated .google.cloud.vmwareengine.v1.Subnet subnets = 1; + */ + java.util.List + getSubnetsOrBuilderList(); + /** + * + * + *
+   * A list of subnets.
+   * 
+ * + * repeated .google.cloud.vmwareengine.v1.Subnet subnets = 1; + */ + com.google.cloud.vmwareengine.v1.SubnetOrBuilder getSubnetsOrBuilder(int index); + + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListVmwareEngineNetworksRequest.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListVmwareEngineNetworksRequest.java new file mode 100644 index 000000000000..7fd13eb1ff78 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListVmwareEngineNetworksRequest.java @@ -0,0 +1,1494 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmwareengine/v1/vmwareengine.proto + +package com.google.cloud.vmwareengine.v1; + +/** + * + * + *
+ * Request message for [VmwareEngine.ListVmwareEngineNetworks][google.cloud.vmwareengine.v1.VmwareEngine.ListVmwareEngineNetworks]
+ * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest} + */ +public final class ListVmwareEngineNetworksRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest) + ListVmwareEngineNetworksRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListVmwareEngineNetworksRequest.newBuilder() to construct. + private ListVmwareEngineNetworksRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListVmwareEngineNetworksRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListVmwareEngineNetworksRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListVmwareEngineNetworksRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListVmwareEngineNetworksRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest.class, + com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required. The resource name of the location to query for
+   * VMware Engine networks. Resource names are schemeless URIs that follow the
+   * conventions in https://cloud.google.com/apis/design/resource_names. For
+   * example: `projects/my-project/locations/global`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The resource name of the location to query for
+   * VMware Engine networks. Resource names are schemeless URIs that follow the
+   * conventions in https://cloud.google.com/apis/design/resource_names. For
+   * example: `projects/my-project/locations/global`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_; + /** + * + * + *
+   * The maximum number of results to return in one page.
+   * The maximum value is coerced to 1000.
+   * The default value of this field is 500.
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + private volatile java.lang.Object pageToken_; + /** + * + * + *
+   * A page token, received from a previous `ListVmwareEngineNetworks` call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to
+   * `ListVmwareEngineNetworks` must match the call that provided the page
+   * token.
+   * 
+ * + * string page_token = 3; + * + * @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; + } + } + /** + * + * + *
+   * A page token, received from a previous `ListVmwareEngineNetworks` call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to
+   * `ListVmwareEngineNetworks` must match the call that provided the page
+   * token.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 4; + private volatile java.lang.Object filter_; + /** + * + * + *
+   * A filter expression that matches resources returned in the response.
+   * The expression must specify the field name, a comparison
+   * operator, and the value that you want to use for filtering. The value
+   * must be a string, a number, or a boolean. The comparison operator
+   * must be `=`, `!=`, `>`, or `<`.
+   * For example, if you are filtering a list of network peerings, you can
+   * exclude the ones named `example-network` by specifying
+   * `name != "example-network"`.
+   * To filter on multiple expressions, provide each separate expression within
+   * parentheses. For example:
+   * ```
+   * (name = "example-network")
+   * (createTime > "2021-04-12T08:15:10.40Z")
+   * ```
+   * By default, each expression is an `AND` expression. However, you
+   * can include `AND` and `OR` expressions explicitly.
+   * For example:
+   * ```
+   * (name = "example-network-1") AND
+   * (createTime > "2021-04-12T08:15:10.40Z") OR
+   * (name = "example-network-2")
+   * ```
+   * 
+ * + * string filter = 4; + * + * @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 matches resources returned in the response.
+   * The expression must specify the field name, a comparison
+   * operator, and the value that you want to use for filtering. The value
+   * must be a string, a number, or a boolean. The comparison operator
+   * must be `=`, `!=`, `>`, or `<`.
+   * For example, if you are filtering a list of network peerings, you can
+   * exclude the ones named `example-network` by specifying
+   * `name != "example-network"`.
+   * To filter on multiple expressions, provide each separate expression within
+   * parentheses. For example:
+   * ```
+   * (name = "example-network")
+   * (createTime > "2021-04-12T08:15:10.40Z")
+   * ```
+   * By default, each expression is an `AND` expression. However, you
+   * can include `AND` and `OR` expressions explicitly.
+   * For example:
+   * ```
+   * (name = "example-network-1") AND
+   * (createTime > "2021-04-12T08:15:10.40Z") OR
+   * (name = "example-network-2")
+   * ```
+   * 
+ * + * string filter = 4; + * + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 5; + private volatile java.lang.Object orderBy_; + /** + * + * + *
+   * Sorts list results by a certain order. By default, returned results
+   * are ordered by `name` in ascending order.
+   * You can also sort results in descending order based on the `name` value
+   * using `orderBy="name desc"`.
+   * Currently, only ordering by `name` is supported.
+   * 
+ * + * string order_by = 5; + * + * @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, returned results
+   * are ordered by `name` in ascending order.
+   * You can also sort results in descending order based on the `name` value
+   * using `orderBy="name desc"`.
+   * Currently, only ordering by `name` is supported.
+   * 
+ * + * string order_by = 5; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, orderBy_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, orderBy_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest)) { + return super.equals(obj); + } + com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest other = + (com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest 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.vmwareengine.v1.ListVmwareEngineNetworksRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for [VmwareEngine.ListVmwareEngineNetworks][google.cloud.vmwareengine.v1.VmwareEngine.ListVmwareEngineNetworks]
+   * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest) + com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListVmwareEngineNetworksRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListVmwareEngineNetworksRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest.class, + com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest.Builder.class); + } + + // Construct using com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + pageSize_ = 0; + + pageToken_ = ""; + + filter_ = ""; + + orderBy_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListVmwareEngineNetworksRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest + getDefaultInstanceForType() { + return com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest build() { + com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest buildPartial() { + com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest result = + new com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest(this); + result.parent_ = parent_; + result.pageSize_ = pageSize_; + result.pageToken_ = pageToken_; + result.filter_ = filter_; + result.orderBy_ = orderBy_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest) { + return mergeFrom((com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest other) { + if (other + == com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: + { + filter_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The resource name of the location to query for
+     * VMware Engine networks. Resource names are schemeless URIs that follow the
+     * conventions in https://cloud.google.com/apis/design/resource_names. For
+     * example: `projects/my-project/locations/global`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the location to query for
+     * VMware Engine networks. Resource names are schemeless URIs that follow the
+     * conventions in https://cloud.google.com/apis/design/resource_names. For
+     * example: `projects/my-project/locations/global`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the location to query for
+     * VMware Engine networks. Resource names are schemeless URIs that follow the
+     * conventions in https://cloud.google.com/apis/design/resource_names. For
+     * example: `projects/my-project/locations/global`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the location to query for
+     * VMware Engine networks. Resource names are schemeless URIs that follow the
+     * conventions in https://cloud.google.com/apis/design/resource_names. For
+     * example: `projects/my-project/locations/global`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the location to query for
+     * VMware Engine networks. Resource names are schemeless URIs that follow the
+     * conventions in https://cloud.google.com/apis/design/resource_names. For
+     * example: `projects/my-project/locations/global`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * The maximum number of results to return in one page.
+     * The maximum value is coerced to 1000.
+     * The default value of this field is 500.
+     * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * The maximum number of results to return in one page.
+     * The maximum value is coerced to 1000.
+     * The default value of this field is 500.
+     * 
+ * + * int32 page_size = 2; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The maximum number of results to return in one page.
+     * The maximum value is coerced to 1000.
+     * The default value of this field is 500.
+     * 
+ * + * int32 page_size = 2; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * A page token, received from a previous `ListVmwareEngineNetworks` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to
+     * `ListVmwareEngineNetworks` must match the call that provided the page
+     * token.
+     * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A page token, received from a previous `ListVmwareEngineNetworks` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to
+     * `ListVmwareEngineNetworks` must match the call that provided the page
+     * token.
+     * 
+ * + * string page_token = 3; + * + * @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; + } + } + /** + * + * + *
+     * A page token, received from a previous `ListVmwareEngineNetworks` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to
+     * `ListVmwareEngineNetworks` must match the call that provided the page
+     * token.
+     * 
+ * + * string page_token = 3; + * + * @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; + onChanged(); + return this; + } + /** + * + * + *
+     * A page token, received from a previous `ListVmwareEngineNetworks` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to
+     * `ListVmwareEngineNetworks` must match the call that provided the page
+     * token.
+     * 
+ * + * string page_token = 3; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + + pageToken_ = getDefaultInstance().getPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * A page token, received from a previous `ListVmwareEngineNetworks` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to
+     * `ListVmwareEngineNetworks` must match the call that provided the page
+     * token.
+     * 
+ * + * string page_token = 3; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + pageToken_ = value; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + /** + * + * + *
+     * A filter expression that matches resources returned in the response.
+     * The expression must specify the field name, a comparison
+     * operator, and the value that you want to use for filtering. The value
+     * must be a string, a number, or a boolean. The comparison operator
+     * must be `=`, `!=`, `>`, or `<`.
+     * For example, if you are filtering a list of network peerings, you can
+     * exclude the ones named `example-network` by specifying
+     * `name != "example-network"`.
+     * To filter on multiple expressions, provide each separate expression within
+     * parentheses. For example:
+     * ```
+     * (name = "example-network")
+     * (createTime > "2021-04-12T08:15:10.40Z")
+     * ```
+     * By default, each expression is an `AND` expression. However, you
+     * can include `AND` and `OR` expressions explicitly.
+     * For example:
+     * ```
+     * (name = "example-network-1") AND
+     * (createTime > "2021-04-12T08:15:10.40Z") OR
+     * (name = "example-network-2")
+     * ```
+     * 
+ * + * string filter = 4; + * + * @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 matches resources returned in the response.
+     * The expression must specify the field name, a comparison
+     * operator, and the value that you want to use for filtering. The value
+     * must be a string, a number, or a boolean. The comparison operator
+     * must be `=`, `!=`, `>`, or `<`.
+     * For example, if you are filtering a list of network peerings, you can
+     * exclude the ones named `example-network` by specifying
+     * `name != "example-network"`.
+     * To filter on multiple expressions, provide each separate expression within
+     * parentheses. For example:
+     * ```
+     * (name = "example-network")
+     * (createTime > "2021-04-12T08:15:10.40Z")
+     * ```
+     * By default, each expression is an `AND` expression. However, you
+     * can include `AND` and `OR` expressions explicitly.
+     * For example:
+     * ```
+     * (name = "example-network-1") AND
+     * (createTime > "2021-04-12T08:15:10.40Z") OR
+     * (name = "example-network-2")
+     * ```
+     * 
+ * + * string filter = 4; + * + * @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 matches resources returned in the response.
+     * The expression must specify the field name, a comparison
+     * operator, and the value that you want to use for filtering. The value
+     * must be a string, a number, or a boolean. The comparison operator
+     * must be `=`, `!=`, `>`, or `<`.
+     * For example, if you are filtering a list of network peerings, you can
+     * exclude the ones named `example-network` by specifying
+     * `name != "example-network"`.
+     * To filter on multiple expressions, provide each separate expression within
+     * parentheses. For example:
+     * ```
+     * (name = "example-network")
+     * (createTime > "2021-04-12T08:15:10.40Z")
+     * ```
+     * By default, each expression is an `AND` expression. However, you
+     * can include `AND` and `OR` expressions explicitly.
+     * For example:
+     * ```
+     * (name = "example-network-1") AND
+     * (createTime > "2021-04-12T08:15:10.40Z") OR
+     * (name = "example-network-2")
+     * ```
+     * 
+ * + * string filter = 4; + * + * @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; + onChanged(); + return this; + } + /** + * + * + *
+     * A filter expression that matches resources returned in the response.
+     * The expression must specify the field name, a comparison
+     * operator, and the value that you want to use for filtering. The value
+     * must be a string, a number, or a boolean. The comparison operator
+     * must be `=`, `!=`, `>`, or `<`.
+     * For example, if you are filtering a list of network peerings, you can
+     * exclude the ones named `example-network` by specifying
+     * `name != "example-network"`.
+     * To filter on multiple expressions, provide each separate expression within
+     * parentheses. For example:
+     * ```
+     * (name = "example-network")
+     * (createTime > "2021-04-12T08:15:10.40Z")
+     * ```
+     * By default, each expression is an `AND` expression. However, you
+     * can include `AND` and `OR` expressions explicitly.
+     * For example:
+     * ```
+     * (name = "example-network-1") AND
+     * (createTime > "2021-04-12T08:15:10.40Z") OR
+     * (name = "example-network-2")
+     * ```
+     * 
+ * + * string filter = 4; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + + filter_ = getDefaultInstance().getFilter(); + onChanged(); + return this; + } + /** + * + * + *
+     * A filter expression that matches resources returned in the response.
+     * The expression must specify the field name, a comparison
+     * operator, and the value that you want to use for filtering. The value
+     * must be a string, a number, or a boolean. The comparison operator
+     * must be `=`, `!=`, `>`, or `<`.
+     * For example, if you are filtering a list of network peerings, you can
+     * exclude the ones named `example-network` by specifying
+     * `name != "example-network"`.
+     * To filter on multiple expressions, provide each separate expression within
+     * parentheses. For example:
+     * ```
+     * (name = "example-network")
+     * (createTime > "2021-04-12T08:15:10.40Z")
+     * ```
+     * By default, each expression is an `AND` expression. However, you
+     * can include `AND` and `OR` expressions explicitly.
+     * For example:
+     * ```
+     * (name = "example-network-1") AND
+     * (createTime > "2021-04-12T08:15:10.40Z") OR
+     * (name = "example-network-2")
+     * ```
+     * 
+ * + * string filter = 4; + * + * @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; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + /** + * + * + *
+     * Sorts list results by a certain order. By default, returned results
+     * are ordered by `name` in ascending order.
+     * You can also sort results in descending order based on the `name` value
+     * using `orderBy="name desc"`.
+     * Currently, only ordering by `name` is supported.
+     * 
+ * + * string order_by = 5; + * + * @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, returned results
+     * are ordered by `name` in ascending order.
+     * You can also sort results in descending order based on the `name` value
+     * using `orderBy="name desc"`.
+     * Currently, only ordering by `name` is supported.
+     * 
+ * + * string order_by = 5; + * + * @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, returned results
+     * are ordered by `name` in ascending order.
+     * You can also sort results in descending order based on the `name` value
+     * using `orderBy="name desc"`.
+     * Currently, only ordering by `name` is supported.
+     * 
+ * + * string order_by = 5; + * + * @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; + onChanged(); + return this; + } + /** + * + * + *
+     * Sorts list results by a certain order. By default, returned results
+     * are ordered by `name` in ascending order.
+     * You can also sort results in descending order based on the `name` value
+     * using `orderBy="name desc"`.
+     * Currently, only ordering by `name` is supported.
+     * 
+ * + * string order_by = 5; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + + orderBy_ = getDefaultInstance().getOrderBy(); + onChanged(); + return this; + } + /** + * + * + *
+     * Sorts list results by a certain order. By default, returned results
+     * are ordered by `name` in ascending order.
+     * You can also sort results in descending order based on the `name` value
+     * using `orderBy="name desc"`.
+     * Currently, only ordering by `name` is supported.
+     * 
+ * + * string order_by = 5; + * + * @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; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest) + private static final com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest(); + } + + public static com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListVmwareEngineNetworksRequest 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.vmwareengine.v1.ListVmwareEngineNetworksRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListVmwareEngineNetworksRequestOrBuilder.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListVmwareEngineNetworksRequestOrBuilder.java new file mode 100644 index 000000000000..2de9d8e1e4c8 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListVmwareEngineNetworksRequestOrBuilder.java @@ -0,0 +1,208 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmwareengine/v1/vmwareengine.proto + +package com.google.cloud.vmwareengine.v1; + +public interface ListVmwareEngineNetworksRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the location to query for
+   * VMware Engine networks. Resource names are schemeless URIs that follow the
+   * conventions in https://cloud.google.com/apis/design/resource_names. For
+   * example: `projects/my-project/locations/global`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The resource name of the location to query for
+   * VMware Engine networks. Resource names are schemeless URIs that follow the
+   * conventions in https://cloud.google.com/apis/design/resource_names. For
+   * example: `projects/my-project/locations/global`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * The maximum number of results to return in one page.
+   * The maximum value is coerced to 1000.
+   * The default value of this field is 500.
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * A page token, received from a previous `ListVmwareEngineNetworks` call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to
+   * `ListVmwareEngineNetworks` must match the call that provided the page
+   * token.
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * A page token, received from a previous `ListVmwareEngineNetworks` call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to
+   * `ListVmwareEngineNetworks` must match the call that provided the page
+   * token.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * A filter expression that matches resources returned in the response.
+   * The expression must specify the field name, a comparison
+   * operator, and the value that you want to use for filtering. The value
+   * must be a string, a number, or a boolean. The comparison operator
+   * must be `=`, `!=`, `>`, or `<`.
+   * For example, if you are filtering a list of network peerings, you can
+   * exclude the ones named `example-network` by specifying
+   * `name != "example-network"`.
+   * To filter on multiple expressions, provide each separate expression within
+   * parentheses. For example:
+   * ```
+   * (name = "example-network")
+   * (createTime > "2021-04-12T08:15:10.40Z")
+   * ```
+   * By default, each expression is an `AND` expression. However, you
+   * can include `AND` and `OR` expressions explicitly.
+   * For example:
+   * ```
+   * (name = "example-network-1") AND
+   * (createTime > "2021-04-12T08:15:10.40Z") OR
+   * (name = "example-network-2")
+   * ```
+   * 
+ * + * string filter = 4; + * + * @return The filter. + */ + java.lang.String getFilter(); + /** + * + * + *
+   * A filter expression that matches resources returned in the response.
+   * The expression must specify the field name, a comparison
+   * operator, and the value that you want to use for filtering. The value
+   * must be a string, a number, or a boolean. The comparison operator
+   * must be `=`, `!=`, `>`, or `<`.
+   * For example, if you are filtering a list of network peerings, you can
+   * exclude the ones named `example-network` by specifying
+   * `name != "example-network"`.
+   * To filter on multiple expressions, provide each separate expression within
+   * parentheses. For example:
+   * ```
+   * (name = "example-network")
+   * (createTime > "2021-04-12T08:15:10.40Z")
+   * ```
+   * By default, each expression is an `AND` expression. However, you
+   * can include `AND` and `OR` expressions explicitly.
+   * For example:
+   * ```
+   * (name = "example-network-1") AND
+   * (createTime > "2021-04-12T08:15:10.40Z") OR
+   * (name = "example-network-2")
+   * ```
+   * 
+ * + * string filter = 4; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * Sorts list results by a certain order. By default, returned results
+   * are ordered by `name` in ascending order.
+   * You can also sort results in descending order based on the `name` value
+   * using `orderBy="name desc"`.
+   * Currently, only ordering by `name` is supported.
+   * 
+ * + * string order_by = 5; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + /** + * + * + *
+   * Sorts list results by a certain order. By default, returned results
+   * are ordered by `name` in ascending order.
+   * You can also sort results in descending order based on the `name` value
+   * using `orderBy="name desc"`.
+   * Currently, only ordering by `name` is supported.
+   * 
+ * + * string order_by = 5; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListVmwareEngineNetworksResponse.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListVmwareEngineNetworksResponse.java new file mode 100644 index 000000000000..759765f8fcdd --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListVmwareEngineNetworksResponse.java @@ -0,0 +1,1434 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmwareengine/v1/vmwareengine.proto + +package com.google.cloud.vmwareengine.v1; + +/** + * + * + *
+ * Response message for [VmwareEngine.ListVmwareEngineNetworks][google.cloud.vmwareengine.v1.VmwareEngine.ListVmwareEngineNetworks]
+ * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse} + */ +public final class ListVmwareEngineNetworksResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse) + ListVmwareEngineNetworksResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListVmwareEngineNetworksResponse.newBuilder() to construct. + private ListVmwareEngineNetworksResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListVmwareEngineNetworksResponse() { + vmwareEngineNetworks_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListVmwareEngineNetworksResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListVmwareEngineNetworksResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListVmwareEngineNetworksResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse.class, + com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse.Builder.class); + } + + public static final int VMWARE_ENGINE_NETWORKS_FIELD_NUMBER = 1; + private java.util.List + vmwareEngineNetworks_; + /** + * + * + *
+   * A list of VMware Engine networks.
+   * 
+ * + * repeated .google.cloud.vmwareengine.v1.VmwareEngineNetwork vmware_engine_networks = 1; + * + */ + @java.lang.Override + public java.util.List + getVmwareEngineNetworksList() { + return vmwareEngineNetworks_; + } + /** + * + * + *
+   * A list of VMware Engine networks.
+   * 
+ * + * repeated .google.cloud.vmwareengine.v1.VmwareEngineNetwork vmware_engine_networks = 1; + * + */ + @java.lang.Override + public java.util.List + getVmwareEngineNetworksOrBuilderList() { + return vmwareEngineNetworks_; + } + /** + * + * + *
+   * A list of VMware Engine networks.
+   * 
+ * + * repeated .google.cloud.vmwareengine.v1.VmwareEngineNetwork vmware_engine_networks = 1; + * + */ + @java.lang.Override + public int getVmwareEngineNetworksCount() { + return vmwareEngineNetworks_.size(); + } + /** + * + * + *
+   * A list of VMware Engine networks.
+   * 
+ * + * repeated .google.cloud.vmwareengine.v1.VmwareEngineNetwork vmware_engine_networks = 1; + * + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.VmwareEngineNetwork getVmwareEngineNetworks(int index) { + return vmwareEngineNetworks_.get(index); + } + /** + * + * + *
+   * A list of VMware Engine networks.
+   * 
+ * + * repeated .google.cloud.vmwareengine.v1.VmwareEngineNetwork vmware_engine_networks = 1; + * + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.VmwareEngineNetworkOrBuilder + getVmwareEngineNetworksOrBuilder(int index) { + return vmwareEngineNetworks_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object nextPageToken_; + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UNREACHABLE_FIELD_NUMBER = 3; + private com.google.protobuf.LazyStringList unreachable_; + /** + * + * + *
+   * Unreachable resources.
+   * 
+ * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_; + } + /** + * + * + *
+   * Unreachable resources.
+   * 
+ * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + /** + * + * + *
+   * Unreachable resources.
+   * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + /** + * + * + *
+   * Unreachable resources.
+   * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < vmwareEngineNetworks_.size(); i++) { + output.writeMessage(1, vmwareEngineNetworks_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, unreachable_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < vmwareEngineNetworks_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, vmwareEngineNetworks_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + { + int dataSize = 0; + for (int i = 0; i < unreachable_.size(); i++) { + dataSize += computeStringSizeNoTag(unreachable_.getRaw(i)); + } + size += dataSize; + size += 1 * getUnreachableList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse)) { + return super.equals(obj); + } + com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse other = + (com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse) obj; + + if (!getVmwareEngineNetworksList().equals(other.getVmwareEngineNetworksList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getVmwareEngineNetworksCount() > 0) { + hash = (37 * hash) + VMWARE_ENGINE_NETWORKS_FIELD_NUMBER; + hash = (53 * hash) + getVmwareEngineNetworksList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + if (getUnreachableCount() > 0) { + hash = (37 * hash) + UNREACHABLE_FIELD_NUMBER; + hash = (53 * hash) + getUnreachableList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse 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.vmwareengine.v1.ListVmwareEngineNetworksResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Response message for [VmwareEngine.ListVmwareEngineNetworks][google.cloud.vmwareengine.v1.VmwareEngine.ListVmwareEngineNetworks]
+   * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse) + com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListVmwareEngineNetworksResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListVmwareEngineNetworksResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse.class, + com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse.Builder.class); + } + + // Construct using + // com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (vmwareEngineNetworksBuilder_ == null) { + vmwareEngineNetworks_ = java.util.Collections.emptyList(); + } else { + vmwareEngineNetworks_ = null; + vmwareEngineNetworksBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + + unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ListVmwareEngineNetworksResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse + getDefaultInstanceForType() { + return com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse build() { + com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse buildPartial() { + com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse result = + new com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse(this); + int from_bitField0_ = bitField0_; + if (vmwareEngineNetworksBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + vmwareEngineNetworks_ = java.util.Collections.unmodifiableList(vmwareEngineNetworks_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.vmwareEngineNetworks_ = vmwareEngineNetworks_; + } else { + result.vmwareEngineNetworks_ = vmwareEngineNetworksBuilder_.build(); + } + result.nextPageToken_ = nextPageToken_; + if (((bitField0_ & 0x00000002) != 0)) { + unreachable_ = unreachable_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.unreachable_ = unreachable_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse) { + return mergeFrom((com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse other) { + if (other + == com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse.getDefaultInstance()) + return this; + if (vmwareEngineNetworksBuilder_ == null) { + if (!other.vmwareEngineNetworks_.isEmpty()) { + if (vmwareEngineNetworks_.isEmpty()) { + vmwareEngineNetworks_ = other.vmwareEngineNetworks_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureVmwareEngineNetworksIsMutable(); + vmwareEngineNetworks_.addAll(other.vmwareEngineNetworks_); + } + onChanged(); + } + } else { + if (!other.vmwareEngineNetworks_.isEmpty()) { + if (vmwareEngineNetworksBuilder_.isEmpty()) { + vmwareEngineNetworksBuilder_.dispose(); + vmwareEngineNetworksBuilder_ = null; + vmwareEngineNetworks_ = other.vmwareEngineNetworks_; + bitField0_ = (bitField0_ & ~0x00000001); + vmwareEngineNetworksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getVmwareEngineNetworksFieldBuilder() + : null; + } else { + vmwareEngineNetworksBuilder_.addAllMessages(other.vmwareEngineNetworks_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + onChanged(); + } + if (!other.unreachable_.isEmpty()) { + if (unreachable_.isEmpty()) { + unreachable_ = other.unreachable_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureUnreachableIsMutable(); + unreachable_.addAll(other.unreachable_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.vmwareengine.v1.VmwareEngineNetwork m = + input.readMessage( + com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.parser(), + extensionRegistry); + if (vmwareEngineNetworksBuilder_ == null) { + ensureVmwareEngineNetworksIsMutable(); + vmwareEngineNetworks_.add(m); + } else { + vmwareEngineNetworksBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List + vmwareEngineNetworks_ = java.util.Collections.emptyList(); + + private void ensureVmwareEngineNetworksIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + vmwareEngineNetworks_ = + new java.util.ArrayList( + vmwareEngineNetworks_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vmwareengine.v1.VmwareEngineNetwork, + com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.Builder, + com.google.cloud.vmwareengine.v1.VmwareEngineNetworkOrBuilder> + vmwareEngineNetworksBuilder_; + + /** + * + * + *
+     * A list of VMware Engine networks.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.VmwareEngineNetwork vmware_engine_networks = 1; + * + */ + public java.util.List + getVmwareEngineNetworksList() { + if (vmwareEngineNetworksBuilder_ == null) { + return java.util.Collections.unmodifiableList(vmwareEngineNetworks_); + } else { + return vmwareEngineNetworksBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * A list of VMware Engine networks.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.VmwareEngineNetwork vmware_engine_networks = 1; + * + */ + public int getVmwareEngineNetworksCount() { + if (vmwareEngineNetworksBuilder_ == null) { + return vmwareEngineNetworks_.size(); + } else { + return vmwareEngineNetworksBuilder_.getCount(); + } + } + /** + * + * + *
+     * A list of VMware Engine networks.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.VmwareEngineNetwork vmware_engine_networks = 1; + * + */ + public com.google.cloud.vmwareengine.v1.VmwareEngineNetwork getVmwareEngineNetworks(int index) { + if (vmwareEngineNetworksBuilder_ == null) { + return vmwareEngineNetworks_.get(index); + } else { + return vmwareEngineNetworksBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * A list of VMware Engine networks.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.VmwareEngineNetwork vmware_engine_networks = 1; + * + */ + public Builder setVmwareEngineNetworks( + int index, com.google.cloud.vmwareengine.v1.VmwareEngineNetwork value) { + if (vmwareEngineNetworksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureVmwareEngineNetworksIsMutable(); + vmwareEngineNetworks_.set(index, value); + onChanged(); + } else { + vmwareEngineNetworksBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * A list of VMware Engine networks.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.VmwareEngineNetwork vmware_engine_networks = 1; + * + */ + public Builder setVmwareEngineNetworks( + int index, com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.Builder builderForValue) { + if (vmwareEngineNetworksBuilder_ == null) { + ensureVmwareEngineNetworksIsMutable(); + vmwareEngineNetworks_.set(index, builderForValue.build()); + onChanged(); + } else { + vmwareEngineNetworksBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of VMware Engine networks.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.VmwareEngineNetwork vmware_engine_networks = 1; + * + */ + public Builder addVmwareEngineNetworks( + com.google.cloud.vmwareengine.v1.VmwareEngineNetwork value) { + if (vmwareEngineNetworksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureVmwareEngineNetworksIsMutable(); + vmwareEngineNetworks_.add(value); + onChanged(); + } else { + vmwareEngineNetworksBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * A list of VMware Engine networks.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.VmwareEngineNetwork vmware_engine_networks = 1; + * + */ + public Builder addVmwareEngineNetworks( + int index, com.google.cloud.vmwareengine.v1.VmwareEngineNetwork value) { + if (vmwareEngineNetworksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureVmwareEngineNetworksIsMutable(); + vmwareEngineNetworks_.add(index, value); + onChanged(); + } else { + vmwareEngineNetworksBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * A list of VMware Engine networks.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.VmwareEngineNetwork vmware_engine_networks = 1; + * + */ + public Builder addVmwareEngineNetworks( + com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.Builder builderForValue) { + if (vmwareEngineNetworksBuilder_ == null) { + ensureVmwareEngineNetworksIsMutable(); + vmwareEngineNetworks_.add(builderForValue.build()); + onChanged(); + } else { + vmwareEngineNetworksBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of VMware Engine networks.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.VmwareEngineNetwork vmware_engine_networks = 1; + * + */ + public Builder addVmwareEngineNetworks( + int index, com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.Builder builderForValue) { + if (vmwareEngineNetworksBuilder_ == null) { + ensureVmwareEngineNetworksIsMutable(); + vmwareEngineNetworks_.add(index, builderForValue.build()); + onChanged(); + } else { + vmwareEngineNetworksBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of VMware Engine networks.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.VmwareEngineNetwork vmware_engine_networks = 1; + * + */ + public Builder addAllVmwareEngineNetworks( + java.lang.Iterable values) { + if (vmwareEngineNetworksBuilder_ == null) { + ensureVmwareEngineNetworksIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, vmwareEngineNetworks_); + onChanged(); + } else { + vmwareEngineNetworksBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * A list of VMware Engine networks.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.VmwareEngineNetwork vmware_engine_networks = 1; + * + */ + public Builder clearVmwareEngineNetworks() { + if (vmwareEngineNetworksBuilder_ == null) { + vmwareEngineNetworks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + vmwareEngineNetworksBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A list of VMware Engine networks.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.VmwareEngineNetwork vmware_engine_networks = 1; + * + */ + public Builder removeVmwareEngineNetworks(int index) { + if (vmwareEngineNetworksBuilder_ == null) { + ensureVmwareEngineNetworksIsMutable(); + vmwareEngineNetworks_.remove(index); + onChanged(); + } else { + vmwareEngineNetworksBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * A list of VMware Engine networks.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.VmwareEngineNetwork vmware_engine_networks = 1; + * + */ + public com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.Builder + getVmwareEngineNetworksBuilder(int index) { + return getVmwareEngineNetworksFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * A list of VMware Engine networks.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.VmwareEngineNetwork vmware_engine_networks = 1; + * + */ + public com.google.cloud.vmwareengine.v1.VmwareEngineNetworkOrBuilder + getVmwareEngineNetworksOrBuilder(int index) { + if (vmwareEngineNetworksBuilder_ == null) { + return vmwareEngineNetworks_.get(index); + } else { + return vmwareEngineNetworksBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * A list of VMware Engine networks.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.VmwareEngineNetwork vmware_engine_networks = 1; + * + */ + public java.util.List + getVmwareEngineNetworksOrBuilderList() { + if (vmwareEngineNetworksBuilder_ != null) { + return vmwareEngineNetworksBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(vmwareEngineNetworks_); + } + } + /** + * + * + *
+     * A list of VMware Engine networks.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.VmwareEngineNetwork vmware_engine_networks = 1; + * + */ + public com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.Builder + addVmwareEngineNetworksBuilder() { + return getVmwareEngineNetworksFieldBuilder() + .addBuilder(com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.getDefaultInstance()); + } + /** + * + * + *
+     * A list of VMware Engine networks.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.VmwareEngineNetwork vmware_engine_networks = 1; + * + */ + public com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.Builder + addVmwareEngineNetworksBuilder(int index) { + return getVmwareEngineNetworksFieldBuilder() + .addBuilder( + index, com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.getDefaultInstance()); + } + /** + * + * + *
+     * A list of VMware Engine networks.
+     * 
+ * + * repeated .google.cloud.vmwareengine.v1.VmwareEngineNetwork vmware_engine_networks = 1; + * + */ + public java.util.List + getVmwareEngineNetworksBuilderList() { + return getVmwareEngineNetworksFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vmwareengine.v1.VmwareEngineNetwork, + com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.Builder, + com.google.cloud.vmwareengine.v1.VmwareEngineNetworkOrBuilder> + getVmwareEngineNetworksFieldBuilder() { + if (vmwareEngineNetworksBuilder_ == null) { + vmwareEngineNetworksBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vmwareengine.v1.VmwareEngineNetwork, + com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.Builder, + com.google.cloud.vmwareengine.v1.VmwareEngineNetworkOrBuilder>( + vmwareEngineNetworks_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + vmwareEngineNetworks_ = null; + } + return vmwareEngineNetworksBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nextPageToken_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + + nextPageToken_ = getDefaultInstance().getNextPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nextPageToken_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList unreachable_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureUnreachableIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); + bitField0_ |= 0x00000002; + } + } + /** + * + * + *
+     * Unreachable resources.
+     * 
+ * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_.getUnmodifiableView(); + } + /** + * + * + *
+     * Unreachable resources.
+     * 
+ * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + /** + * + * + *
+     * Unreachable resources.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + /** + * + * + *
+     * Unreachable resources.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + /** + * + * + *
+     * Unreachable resources.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param index The index to set the value at. + * @param value The unreachable to set. + * @return This builder for chaining. + */ + public Builder setUnreachable(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Unreachable resources.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param value The unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Unreachable resources.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param values The unreachable to add. + * @return This builder for chaining. + */ + public Builder addAllUnreachable(java.lang.Iterable values) { + ensureUnreachableIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + onChanged(); + return this; + } + /** + * + * + *
+     * Unreachable resources.
+     * 
+ * + * repeated string unreachable = 3; + * + * @return This builder for chaining. + */ + public Builder clearUnreachable() { + unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Unreachable resources.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param value The bytes of the unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureUnreachableIsMutable(); + unreachable_.add(value); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse) + private static final com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse(); + } + + public static com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListVmwareEngineNetworksResponse 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.vmwareengine.v1.ListVmwareEngineNetworksResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListVmwareEngineNetworksResponseOrBuilder.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListVmwareEngineNetworksResponseOrBuilder.java new file mode 100644 index 000000000000..1b455ed32514 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ListVmwareEngineNetworksResponseOrBuilder.java @@ -0,0 +1,162 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmwareengine/v1/vmwareengine.proto + +package com.google.cloud.vmwareengine.v1; + +public interface ListVmwareEngineNetworksResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * A list of VMware Engine networks.
+   * 
+ * + * repeated .google.cloud.vmwareengine.v1.VmwareEngineNetwork vmware_engine_networks = 1; + * + */ + java.util.List + getVmwareEngineNetworksList(); + /** + * + * + *
+   * A list of VMware Engine networks.
+   * 
+ * + * repeated .google.cloud.vmwareengine.v1.VmwareEngineNetwork vmware_engine_networks = 1; + * + */ + com.google.cloud.vmwareengine.v1.VmwareEngineNetwork getVmwareEngineNetworks(int index); + /** + * + * + *
+   * A list of VMware Engine networks.
+   * 
+ * + * repeated .google.cloud.vmwareengine.v1.VmwareEngineNetwork vmware_engine_networks = 1; + * + */ + int getVmwareEngineNetworksCount(); + /** + * + * + *
+   * A list of VMware Engine networks.
+   * 
+ * + * repeated .google.cloud.vmwareengine.v1.VmwareEngineNetwork vmware_engine_networks = 1; + * + */ + java.util.List + getVmwareEngineNetworksOrBuilderList(); + /** + * + * + *
+   * A list of VMware Engine networks.
+   * 
+ * + * repeated .google.cloud.vmwareengine.v1.VmwareEngineNetwork vmware_engine_networks = 1; + * + */ + com.google.cloud.vmwareengine.v1.VmwareEngineNetworkOrBuilder getVmwareEngineNetworksOrBuilder( + int index); + + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
+   * Unreachable resources.
+   * 
+ * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + java.util.List getUnreachableList(); + /** + * + * + *
+   * Unreachable resources.
+   * 
+ * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + int getUnreachableCount(); + /** + * + * + *
+   * Unreachable resources.
+   * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + java.lang.String getUnreachable(int index); + /** + * + * + *
+   * Unreachable resources.
+   * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + com.google.protobuf.ByteString getUnreachableBytes(int index); +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/LocationName.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/LocationName.java new file mode 100644 index 000000000000..36b3644ffae2 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/LocationName.java @@ -0,0 +1,192 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.vmwareengine.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class LocationName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION = + PathTemplate.createWithoutUrlEncoding("projects/{project}/locations/{location}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + + @Deprecated + protected LocationName() { + project = null; + location = null; + } + + private LocationName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static LocationName of(String project, String location) { + return newBuilder().setProject(project).setLocation(location).build(); + } + + public static String format(String project, String location) { + return newBuilder().setProject(project).setLocation(location).build().toString(); + } + + public static LocationName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION.validatedMatch( + formattedString, "LocationName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (LocationName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION.instantiate("project", project, "location", location); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null || getClass() == o.getClass()) { + LocationName that = ((LocationName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + return h; + } + + /** Builder for projects/{project}/locations/{location}. */ + public static class Builder { + private String project; + private String location; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + private Builder(LocationName locationName) { + this.project = locationName.project; + this.location = locationName.location; + } + + public LocationName build() { + return new LocationName(this); + } + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/NetworkConfig.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/NetworkConfig.java new file mode 100644 index 000000000000..9fbd74d0d14e --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/NetworkConfig.java @@ -0,0 +1,1161 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmwareengine/v1/vmwareengine.proto + +package com.google.cloud.vmwareengine.v1; + +/** + * + * + *
+ * Network configuration in the consumer project
+ * with which the peering has to be done.
+ * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.NetworkConfig} + */ +public final class NetworkConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmwareengine.v1.NetworkConfig) + NetworkConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use NetworkConfig.newBuilder() to construct. + private NetworkConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private NetworkConfig() { + managementCidr_ = ""; + vmwareEngineNetwork_ = ""; + vmwareEngineNetworkCanonical_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new NetworkConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_NetworkConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_NetworkConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.NetworkConfig.class, + com.google.cloud.vmwareengine.v1.NetworkConfig.Builder.class); + } + + public static final int MANAGEMENT_CIDR_FIELD_NUMBER = 4; + private volatile java.lang.Object managementCidr_; + /** + * + * + *
+   * Required. Management CIDR used by VMware management appliances.
+   * 
+ * + * string management_cidr = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The managementCidr. + */ + @java.lang.Override + public java.lang.String getManagementCidr() { + java.lang.Object ref = managementCidr_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + managementCidr_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Management CIDR used by VMware management appliances.
+   * 
+ * + * string management_cidr = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for managementCidr. + */ + @java.lang.Override + public com.google.protobuf.ByteString getManagementCidrBytes() { + java.lang.Object ref = managementCidr_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + managementCidr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VMWARE_ENGINE_NETWORK_FIELD_NUMBER = 5; + private volatile java.lang.Object vmwareEngineNetwork_; + /** + * + * + *
+   * Optional. The relative resource name of the VMware Engine network attached
+   * to the private cloud. Specify the name in the following form:
+   * `projects/{project}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}`
+   * where `{project}` can either be a project number or a project ID.
+   * 
+ * + * + * string vmware_engine_network = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The vmwareEngineNetwork. + */ + @java.lang.Override + public java.lang.String getVmwareEngineNetwork() { + java.lang.Object ref = vmwareEngineNetwork_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + vmwareEngineNetwork_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. The relative resource name of the VMware Engine network attached
+   * to the private cloud. Specify the name in the following form:
+   * `projects/{project}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}`
+   * where `{project}` can either be a project number or a project ID.
+   * 
+ * + * + * string vmware_engine_network = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for vmwareEngineNetwork. + */ + @java.lang.Override + public com.google.protobuf.ByteString getVmwareEngineNetworkBytes() { + java.lang.Object ref = vmwareEngineNetwork_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + vmwareEngineNetwork_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VMWARE_ENGINE_NETWORK_CANONICAL_FIELD_NUMBER = 6; + private volatile java.lang.Object vmwareEngineNetworkCanonical_; + /** + * + * + *
+   * Output only. The canonical name of the VMware Engine network in the form:
+   * `projects/{project_number}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}`
+   * 
+ * + * + * string vmware_engine_network_canonical = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The vmwareEngineNetworkCanonical. + */ + @java.lang.Override + public java.lang.String getVmwareEngineNetworkCanonical() { + java.lang.Object ref = vmwareEngineNetworkCanonical_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + vmwareEngineNetworkCanonical_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The canonical name of the VMware Engine network in the form:
+   * `projects/{project_number}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}`
+   * 
+ * + * + * string vmware_engine_network_canonical = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for vmwareEngineNetworkCanonical. + */ + @java.lang.Override + public com.google.protobuf.ByteString getVmwareEngineNetworkCanonicalBytes() { + java.lang.Object ref = vmwareEngineNetworkCanonical_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + vmwareEngineNetworkCanonical_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MANAGEMENT_IP_ADDRESS_LAYOUT_VERSION_FIELD_NUMBER = 8; + private int managementIpAddressLayoutVersion_; + /** + * + * + *
+   * Output only. The IP address layout version of the management IP address
+   * range. Possible versions include:
+   * * `managementIpAddressLayoutVersion=1`: Indicates the legacy IP address
+   * layout used by some existing private clouds. This is no longer supported
+   * for new private clouds as it does not support all features.
+   * * `managementIpAddressLayoutVersion=2`: Indicates the latest IP address
+   * layout used by all newly created private clouds. This version supports all
+   * current features.
+   * 
+ * + * + * int32 management_ip_address_layout_version = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The managementIpAddressLayoutVersion. + */ + @java.lang.Override + public int getManagementIpAddressLayoutVersion() { + return managementIpAddressLayoutVersion_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(managementCidr_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, managementCidr_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vmwareEngineNetwork_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, vmwareEngineNetwork_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vmwareEngineNetworkCanonical_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, vmwareEngineNetworkCanonical_); + } + if (managementIpAddressLayoutVersion_ != 0) { + output.writeInt32(8, managementIpAddressLayoutVersion_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(managementCidr_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, managementCidr_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vmwareEngineNetwork_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, vmwareEngineNetwork_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vmwareEngineNetworkCanonical_)) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize( + 6, vmwareEngineNetworkCanonical_); + } + if (managementIpAddressLayoutVersion_ != 0) { + size += + com.google.protobuf.CodedOutputStream.computeInt32Size( + 8, managementIpAddressLayoutVersion_); + } + 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.vmwareengine.v1.NetworkConfig)) { + return super.equals(obj); + } + com.google.cloud.vmwareengine.v1.NetworkConfig other = + (com.google.cloud.vmwareengine.v1.NetworkConfig) obj; + + if (!getManagementCidr().equals(other.getManagementCidr())) return false; + if (!getVmwareEngineNetwork().equals(other.getVmwareEngineNetwork())) return false; + if (!getVmwareEngineNetworkCanonical().equals(other.getVmwareEngineNetworkCanonical())) + return false; + if (getManagementIpAddressLayoutVersion() != other.getManagementIpAddressLayoutVersion()) + 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) + MANAGEMENT_CIDR_FIELD_NUMBER; + hash = (53 * hash) + getManagementCidr().hashCode(); + hash = (37 * hash) + VMWARE_ENGINE_NETWORK_FIELD_NUMBER; + hash = (53 * hash) + getVmwareEngineNetwork().hashCode(); + hash = (37 * hash) + VMWARE_ENGINE_NETWORK_CANONICAL_FIELD_NUMBER; + hash = (53 * hash) + getVmwareEngineNetworkCanonical().hashCode(); + hash = (37 * hash) + MANAGEMENT_IP_ADDRESS_LAYOUT_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getManagementIpAddressLayoutVersion(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmwareengine.v1.NetworkConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.NetworkConfig 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.vmwareengine.v1.NetworkConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.NetworkConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.NetworkConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.NetworkConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.NetworkConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.NetworkConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.NetworkConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.NetworkConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.NetworkConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.NetworkConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.vmwareengine.v1.NetworkConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Network configuration in the consumer project
+   * with which the peering has to be done.
+   * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.NetworkConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmwareengine.v1.NetworkConfig) + com.google.cloud.vmwareengine.v1.NetworkConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_NetworkConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_NetworkConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.NetworkConfig.class, + com.google.cloud.vmwareengine.v1.NetworkConfig.Builder.class); + } + + // Construct using com.google.cloud.vmwareengine.v1.NetworkConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + managementCidr_ = ""; + + vmwareEngineNetwork_ = ""; + + vmwareEngineNetworkCanonical_ = ""; + + managementIpAddressLayoutVersion_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_NetworkConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.NetworkConfig getDefaultInstanceForType() { + return com.google.cloud.vmwareengine.v1.NetworkConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.NetworkConfig build() { + com.google.cloud.vmwareengine.v1.NetworkConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.NetworkConfig buildPartial() { + com.google.cloud.vmwareengine.v1.NetworkConfig result = + new com.google.cloud.vmwareengine.v1.NetworkConfig(this); + result.managementCidr_ = managementCidr_; + result.vmwareEngineNetwork_ = vmwareEngineNetwork_; + result.vmwareEngineNetworkCanonical_ = vmwareEngineNetworkCanonical_; + result.managementIpAddressLayoutVersion_ = managementIpAddressLayoutVersion_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.vmwareengine.v1.NetworkConfig) { + return mergeFrom((com.google.cloud.vmwareengine.v1.NetworkConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmwareengine.v1.NetworkConfig other) { + if (other == com.google.cloud.vmwareengine.v1.NetworkConfig.getDefaultInstance()) return this; + if (!other.getManagementCidr().isEmpty()) { + managementCidr_ = other.managementCidr_; + onChanged(); + } + if (!other.getVmwareEngineNetwork().isEmpty()) { + vmwareEngineNetwork_ = other.vmwareEngineNetwork_; + onChanged(); + } + if (!other.getVmwareEngineNetworkCanonical().isEmpty()) { + vmwareEngineNetworkCanonical_ = other.vmwareEngineNetworkCanonical_; + onChanged(); + } + if (other.getManagementIpAddressLayoutVersion() != 0) { + setManagementIpAddressLayoutVersion(other.getManagementIpAddressLayoutVersion()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 34: + { + managementCidr_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 42: + { + vmwareEngineNetwork_ = input.readStringRequireUtf8(); + + break; + } // case 42 + case 50: + { + vmwareEngineNetworkCanonical_ = input.readStringRequireUtf8(); + + break; + } // case 50 + case 64: + { + managementIpAddressLayoutVersion_ = input.readInt32(); + + break; + } // case 64 + 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 java.lang.Object managementCidr_ = ""; + /** + * + * + *
+     * Required. Management CIDR used by VMware management appliances.
+     * 
+ * + * string management_cidr = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The managementCidr. + */ + public java.lang.String getManagementCidr() { + java.lang.Object ref = managementCidr_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + managementCidr_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Management CIDR used by VMware management appliances.
+     * 
+ * + * string management_cidr = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for managementCidr. + */ + public com.google.protobuf.ByteString getManagementCidrBytes() { + java.lang.Object ref = managementCidr_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + managementCidr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Management CIDR used by VMware management appliances.
+     * 
+ * + * string management_cidr = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The managementCidr to set. + * @return This builder for chaining. + */ + public Builder setManagementCidr(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + managementCidr_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Management CIDR used by VMware management appliances.
+     * 
+ * + * string management_cidr = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearManagementCidr() { + + managementCidr_ = getDefaultInstance().getManagementCidr(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Management CIDR used by VMware management appliances.
+     * 
+ * + * string management_cidr = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for managementCidr to set. + * @return This builder for chaining. + */ + public Builder setManagementCidrBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + managementCidr_ = value; + onChanged(); + return this; + } + + private java.lang.Object vmwareEngineNetwork_ = ""; + /** + * + * + *
+     * Optional. The relative resource name of the VMware Engine network attached
+     * to the private cloud. Specify the name in the following form:
+     * `projects/{project}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}`
+     * where `{project}` can either be a project number or a project ID.
+     * 
+ * + * + * string vmware_engine_network = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The vmwareEngineNetwork. + */ + public java.lang.String getVmwareEngineNetwork() { + java.lang.Object ref = vmwareEngineNetwork_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + vmwareEngineNetwork_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. The relative resource name of the VMware Engine network attached
+     * to the private cloud. Specify the name in the following form:
+     * `projects/{project}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}`
+     * where `{project}` can either be a project number or a project ID.
+     * 
+ * + * + * string vmware_engine_network = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for vmwareEngineNetwork. + */ + public com.google.protobuf.ByteString getVmwareEngineNetworkBytes() { + java.lang.Object ref = vmwareEngineNetwork_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + vmwareEngineNetwork_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. The relative resource name of the VMware Engine network attached
+     * to the private cloud. Specify the name in the following form:
+     * `projects/{project}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}`
+     * where `{project}` can either be a project number or a project ID.
+     * 
+ * + * + * string vmware_engine_network = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The vmwareEngineNetwork to set. + * @return This builder for chaining. + */ + public Builder setVmwareEngineNetwork(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + vmwareEngineNetwork_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The relative resource name of the VMware Engine network attached
+     * to the private cloud. Specify the name in the following form:
+     * `projects/{project}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}`
+     * where `{project}` can either be a project number or a project ID.
+     * 
+ * + * + * string vmware_engine_network = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearVmwareEngineNetwork() { + + vmwareEngineNetwork_ = getDefaultInstance().getVmwareEngineNetwork(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The relative resource name of the VMware Engine network attached
+     * to the private cloud. Specify the name in the following form:
+     * `projects/{project}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}`
+     * where `{project}` can either be a project number or a project ID.
+     * 
+ * + * + * string vmware_engine_network = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for vmwareEngineNetwork to set. + * @return This builder for chaining. + */ + public Builder setVmwareEngineNetworkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + vmwareEngineNetwork_ = value; + onChanged(); + return this; + } + + private java.lang.Object vmwareEngineNetworkCanonical_ = ""; + /** + * + * + *
+     * Output only. The canonical name of the VMware Engine network in the form:
+     * `projects/{project_number}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}`
+     * 
+ * + * + * string vmware_engine_network_canonical = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The vmwareEngineNetworkCanonical. + */ + public java.lang.String getVmwareEngineNetworkCanonical() { + java.lang.Object ref = vmwareEngineNetworkCanonical_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + vmwareEngineNetworkCanonical_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The canonical name of the VMware Engine network in the form:
+     * `projects/{project_number}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}`
+     * 
+ * + * + * string vmware_engine_network_canonical = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for vmwareEngineNetworkCanonical. + */ + public com.google.protobuf.ByteString getVmwareEngineNetworkCanonicalBytes() { + java.lang.Object ref = vmwareEngineNetworkCanonical_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + vmwareEngineNetworkCanonical_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The canonical name of the VMware Engine network in the form:
+     * `projects/{project_number}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}`
+     * 
+ * + * + * string vmware_engine_network_canonical = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The vmwareEngineNetworkCanonical to set. + * @return This builder for chaining. + */ + public Builder setVmwareEngineNetworkCanonical(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + vmwareEngineNetworkCanonical_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The canonical name of the VMware Engine network in the form:
+     * `projects/{project_number}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}`
+     * 
+ * + * + * string vmware_engine_network_canonical = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearVmwareEngineNetworkCanonical() { + + vmwareEngineNetworkCanonical_ = getDefaultInstance().getVmwareEngineNetworkCanonical(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The canonical name of the VMware Engine network in the form:
+     * `projects/{project_number}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}`
+     * 
+ * + * + * string vmware_engine_network_canonical = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for vmwareEngineNetworkCanonical to set. + * @return This builder for chaining. + */ + public Builder setVmwareEngineNetworkCanonicalBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + vmwareEngineNetworkCanonical_ = value; + onChanged(); + return this; + } + + private int managementIpAddressLayoutVersion_; + /** + * + * + *
+     * Output only. The IP address layout version of the management IP address
+     * range. Possible versions include:
+     * * `managementIpAddressLayoutVersion=1`: Indicates the legacy IP address
+     * layout used by some existing private clouds. This is no longer supported
+     * for new private clouds as it does not support all features.
+     * * `managementIpAddressLayoutVersion=2`: Indicates the latest IP address
+     * layout used by all newly created private clouds. This version supports all
+     * current features.
+     * 
+ * + * + * int32 management_ip_address_layout_version = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The managementIpAddressLayoutVersion. + */ + @java.lang.Override + public int getManagementIpAddressLayoutVersion() { + return managementIpAddressLayoutVersion_; + } + /** + * + * + *
+     * Output only. The IP address layout version of the management IP address
+     * range. Possible versions include:
+     * * `managementIpAddressLayoutVersion=1`: Indicates the legacy IP address
+     * layout used by some existing private clouds. This is no longer supported
+     * for new private clouds as it does not support all features.
+     * * `managementIpAddressLayoutVersion=2`: Indicates the latest IP address
+     * layout used by all newly created private clouds. This version supports all
+     * current features.
+     * 
+ * + * + * int32 management_ip_address_layout_version = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The managementIpAddressLayoutVersion to set. + * @return This builder for chaining. + */ + public Builder setManagementIpAddressLayoutVersion(int value) { + + managementIpAddressLayoutVersion_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The IP address layout version of the management IP address
+     * range. Possible versions include:
+     * * `managementIpAddressLayoutVersion=1`: Indicates the legacy IP address
+     * layout used by some existing private clouds. This is no longer supported
+     * for new private clouds as it does not support all features.
+     * * `managementIpAddressLayoutVersion=2`: Indicates the latest IP address
+     * layout used by all newly created private clouds. This version supports all
+     * current features.
+     * 
+ * + * + * int32 management_ip_address_layout_version = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearManagementIpAddressLayoutVersion() { + + managementIpAddressLayoutVersion_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.vmwareengine.v1.NetworkConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmwareengine.v1.NetworkConfig) + private static final com.google.cloud.vmwareengine.v1.NetworkConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmwareengine.v1.NetworkConfig(); + } + + public static com.google.cloud.vmwareengine.v1.NetworkConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NetworkConfig 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.vmwareengine.v1.NetworkConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/NetworkConfigOrBuilder.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/NetworkConfigOrBuilder.java new file mode 100644 index 000000000000..15fec51ce2fe --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/NetworkConfigOrBuilder.java @@ -0,0 +1,138 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmwareengine/v1/vmwareengine.proto + +package com.google.cloud.vmwareengine.v1; + +public interface NetworkConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmwareengine.v1.NetworkConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Management CIDR used by VMware management appliances.
+   * 
+ * + * string management_cidr = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The managementCidr. + */ + java.lang.String getManagementCidr(); + /** + * + * + *
+   * Required. Management CIDR used by VMware management appliances.
+   * 
+ * + * string management_cidr = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for managementCidr. + */ + com.google.protobuf.ByteString getManagementCidrBytes(); + + /** + * + * + *
+   * Optional. The relative resource name of the VMware Engine network attached
+   * to the private cloud. Specify the name in the following form:
+   * `projects/{project}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}`
+   * where `{project}` can either be a project number or a project ID.
+   * 
+ * + * + * string vmware_engine_network = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The vmwareEngineNetwork. + */ + java.lang.String getVmwareEngineNetwork(); + /** + * + * + *
+   * Optional. The relative resource name of the VMware Engine network attached
+   * to the private cloud. Specify the name in the following form:
+   * `projects/{project}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}`
+   * where `{project}` can either be a project number or a project ID.
+   * 
+ * + * + * string vmware_engine_network = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for vmwareEngineNetwork. + */ + com.google.protobuf.ByteString getVmwareEngineNetworkBytes(); + + /** + * + * + *
+   * Output only. The canonical name of the VMware Engine network in the form:
+   * `projects/{project_number}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}`
+   * 
+ * + * + * string vmware_engine_network_canonical = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The vmwareEngineNetworkCanonical. + */ + java.lang.String getVmwareEngineNetworkCanonical(); + /** + * + * + *
+   * Output only. The canonical name of the VMware Engine network in the form:
+   * `projects/{project_number}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}`
+   * 
+ * + * + * string vmware_engine_network_canonical = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for vmwareEngineNetworkCanonical. + */ + com.google.protobuf.ByteString getVmwareEngineNetworkCanonicalBytes(); + + /** + * + * + *
+   * Output only. The IP address layout version of the management IP address
+   * range. Possible versions include:
+   * * `managementIpAddressLayoutVersion=1`: Indicates the legacy IP address
+   * layout used by some existing private clouds. This is no longer supported
+   * for new private clouds as it does not support all features.
+   * * `managementIpAddressLayoutVersion=2`: Indicates the latest IP address
+   * layout used by all newly created private clouds. This version supports all
+   * current features.
+   * 
+ * + * + * int32 management_ip_address_layout_version = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The managementIpAddressLayoutVersion. + */ + int getManagementIpAddressLayoutVersion(); +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/NetworkPolicy.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/NetworkPolicy.java new file mode 100644 index 000000000000..adefb25b4ee8 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/NetworkPolicy.java @@ -0,0 +1,3701 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmwareengine/v1/vmwareengine.proto + +package com.google.cloud.vmwareengine.v1; + +/** + * + * + *
+ * Represents a network policy resource. Network policies are regional
+ * resources. You can use a network policy to enable or disable internet access
+ * and external IP access. Network policies are associated with a VMware Engine
+ * network, which might span across regions. For a given region, a network
+ * policy applies to all private clouds in the VMware Engine network associated
+ * with the policy.
+ * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.NetworkPolicy} + */ +public final class NetworkPolicy extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmwareengine.v1.NetworkPolicy) + NetworkPolicyOrBuilder { + private static final long serialVersionUID = 0L; + // Use NetworkPolicy.newBuilder() to construct. + private NetworkPolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private NetworkPolicy() { + name_ = ""; + edgeServicesCidr_ = ""; + uid_ = ""; + vmwareEngineNetwork_ = ""; + description_ = ""; + vmwareEngineNetworkCanonical_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new NetworkPolicy(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_NetworkPolicy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_NetworkPolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.NetworkPolicy.class, + com.google.cloud.vmwareengine.v1.NetworkPolicy.Builder.class); + } + + public interface NetworkServiceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * True if the service is enabled; false otherwise.
+     * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + boolean getEnabled(); + + /** + * + * + *
+     * Output only. State of the service. New values may be added to this enum
+     * when appropriate.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + /** + * + * + *
+     * Output only. State of the service. New values may be added to this enum
+     * when appropriate.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.State getState(); + } + /** + * + * + *
+   * Represents a network service that is managed by a `NetworkPolicy` resource.
+   * A network service provides a way to control an aspect of external access to
+   * VMware workloads. For example, whether the VMware workloads in the
+   * private clouds governed by a network policy can access or be accessed from
+   * the internet.
+   * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService} + */ + public static final class NetworkService extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService) + NetworkServiceOrBuilder { + private static final long serialVersionUID = 0L; + // Use NetworkService.newBuilder() to construct. + private NetworkService(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private NetworkService() { + state_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new NetworkService(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_NetworkPolicy_NetworkService_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_NetworkPolicy_NetworkService_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.class, + com.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.Builder.class); + } + + /** + * + * + *
+     * Enum State defines possible states of a network policy controlled
+     * service.
+     * 
+ * + * Protobuf enum {@code google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+       * Unspecified service state. This is the default value.
+       * 
+ * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
+       * Service is not provisioned.
+       * 
+ * + * UNPROVISIONED = 1; + */ + UNPROVISIONED(1), + /** + * + * + *
+       * Service is in the process of being provisioned/deprovisioned.
+       * 
+ * + * RECONCILING = 2; + */ + RECONCILING(2), + /** + * + * + *
+       * Service is active.
+       * 
+ * + * ACTIVE = 3; + */ + ACTIVE(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+       * Unspecified service state. This is the default value.
+       * 
+ * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+       * Service is not provisioned.
+       * 
+ * + * UNPROVISIONED = 1; + */ + public static final int UNPROVISIONED_VALUE = 1; + /** + * + * + *
+       * Service is in the process of being provisioned/deprovisioned.
+       * 
+ * + * RECONCILING = 2; + */ + public static final int RECONCILING_VALUE = 2; + /** + * + * + *
+       * Service is active.
+       * 
+ * + * ACTIVE = 3; + */ + public static final int ACTIVE_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return UNPROVISIONED; + case 2: + return RECONCILING; + case 3: + return ACTIVE; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.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.vmwareengine.v1.NetworkPolicy.NetworkService.State) + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_; + /** + * + * + *
+     * True if the service is enabled; false otherwise.
+     * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + + public static final int STATE_FIELD_NUMBER = 2; + private int state_; + /** + * + * + *
+     * Output only. State of the service. New values may be added to this enum
+     * when appropriate.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
+     * Output only. State of the service. New values may be added to this enum
+     * when appropriate.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.State getState() { + @SuppressWarnings("deprecation") + com.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.State result = + com.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.State.valueOf(state_); + return result == null + ? com.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.State.UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (enabled_ != false) { + output.writeBool(1, enabled_); + } + if (state_ + != com.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.State.STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, state_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (enabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enabled_); + } + if (state_ + != com.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.State.STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, state_); + } + 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.vmwareengine.v1.NetworkPolicy.NetworkService)) { + return super.equals(obj); + } + com.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService other = + (com.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService) obj; + + if (getEnabled() != other.getEnabled()) return false; + if (state_ != other.state_) 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) + ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnabled()); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService 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.vmwareengine.v1.NetworkPolicy.NetworkService parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Represents a network service that is managed by a `NetworkPolicy` resource.
+     * A network service provides a way to control an aspect of external access to
+     * VMware workloads. For example, whether the VMware workloads in the
+     * private clouds governed by a network policy can access or be accessed from
+     * the internet.
+     * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService) + com.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkServiceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_NetworkPolicy_NetworkService_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_NetworkPolicy_NetworkService_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.class, + com.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.Builder.class); + } + + // Construct using com.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + enabled_ = false; + + state_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_NetworkPolicy_NetworkService_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService + getDefaultInstanceForType() { + return com.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService build() { + com.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService buildPartial() { + com.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService result = + new com.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService(this); + result.enabled_ = enabled_; + result.state_ = state_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService) { + return mergeFrom((com.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService other) { + if (other + == com.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.getDefaultInstance()) + return this; + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + 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: + { + enabled_ = input.readBool(); + + break; + } // case 8 + case 16: + { + state_ = input.readEnum(); + + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private boolean enabled_; + /** + * + * + *
+       * True if the service is enabled; false otherwise.
+       * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + * + * + *
+       * True if the service is enabled; false otherwise.
+       * 
+ * + * bool enabled = 1; + * + * @param value The enabled to set. + * @return This builder for chaining. + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * True if the service is enabled; false otherwise.
+       * 
+ * + * bool enabled = 1; + * + * @return This builder for chaining. + */ + public Builder clearEnabled() { + + enabled_ = false; + onChanged(); + return this; + } + + private int state_ = 0; + /** + * + * + *
+       * Output only. State of the service. New values may be added to this enum
+       * when appropriate.
+       * 
+ * + * + * .google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
+       * Output only. State of the service. New values may be added to this enum
+       * when appropriate.
+       * 
+ * + * + * .google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + + state_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. State of the service. New values may be added to this enum
+       * when appropriate.
+       * 
+ * + * + * .google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.State getState() { + @SuppressWarnings("deprecation") + com.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.State result = + com.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.State.valueOf(state_); + return result == null + ? com.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.State.UNRECOGNIZED + : result; + } + /** + * + * + *
+       * Output only. State of the service. New values may be added to this enum
+       * when appropriate.
+       * 
+ * + * + * .google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState( + com.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.State value) { + if (value == null) { + throw new NullPointerException(); + } + + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. State of the service. New values may be added to this enum
+       * when appropriate.
+       * 
+ * + * + * .google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + + state_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService) + private static final com.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService(); + } + + public static com.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NetworkService 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.vmwareengine.v1.NetworkPolicy.NetworkService + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Output only. The resource name of this network policy.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-project/locations/us-central1/networkPolicies/my-network-policy`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The resource name of this network policy.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-project/locations/us-central1/networkPolicies/my-network-policy`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
+   * Output only. Creation time of this resource.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return createTime_ != null; + } + /** + * + * + *
+   * Output only. Creation time of this resource.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + /** + * + * + *
+   * Output only. Creation time of this resource.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return getCreateTime(); + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp updateTime_; + /** + * + * + *
+   * Output only. Last update time of this resource.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return updateTime_ != null; + } + /** + * + * + *
+   * Output only. Last update time of this resource.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + /** + * + * + *
+   * Output only. Last update time of this resource.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return getUpdateTime(); + } + + public static final int INTERNET_ACCESS_FIELD_NUMBER = 6; + private com.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService internetAccess_; + /** + * + * + *
+   * Network service that allows VMware workloads to access the internet.
+   * 
+ * + * .google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService internet_access = 6; + * + * @return Whether the internetAccess field is set. + */ + @java.lang.Override + public boolean hasInternetAccess() { + return internetAccess_ != null; + } + /** + * + * + *
+   * Network service that allows VMware workloads to access the internet.
+   * 
+ * + * .google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService internet_access = 6; + * + * @return The internetAccess. + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService getInternetAccess() { + return internetAccess_ == null + ? com.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.getDefaultInstance() + : internetAccess_; + } + /** + * + * + *
+   * Network service that allows VMware workloads to access the internet.
+   * 
+ * + * .google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService internet_access = 6; + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkServiceOrBuilder + getInternetAccessOrBuilder() { + return getInternetAccess(); + } + + public static final int EXTERNAL_IP_FIELD_NUMBER = 7; + private com.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService externalIp_; + /** + * + * + *
+   * Network service that allows External IP addresses to be assigned to VMware
+   * workloads. This service can only be enabled when `internet_access` is also
+   * enabled.
+   * 
+ * + * .google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService external_ip = 7; + * + * @return Whether the externalIp field is set. + */ + @java.lang.Override + public boolean hasExternalIp() { + return externalIp_ != null; + } + /** + * + * + *
+   * Network service that allows External IP addresses to be assigned to VMware
+   * workloads. This service can only be enabled when `internet_access` is also
+   * enabled.
+   * 
+ * + * .google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService external_ip = 7; + * + * @return The externalIp. + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService getExternalIp() { + return externalIp_ == null + ? com.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.getDefaultInstance() + : externalIp_; + } + /** + * + * + *
+   * Network service that allows External IP addresses to be assigned to VMware
+   * workloads. This service can only be enabled when `internet_access` is also
+   * enabled.
+   * 
+ * + * .google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService external_ip = 7; + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkServiceOrBuilder + getExternalIpOrBuilder() { + return getExternalIp(); + } + + public static final int EDGE_SERVICES_CIDR_FIELD_NUMBER = 9; + private volatile java.lang.Object edgeServicesCidr_; + /** + * + * + *
+   * Required. IP address range in CIDR notation used to create internet access
+   * and external IP access. An RFC 1918 CIDR block, with a "/26" prefix, is
+   * required. The range cannot overlap with any prefixes either in the consumer
+   * VPC network or in use by the private clouds attached to that VPC network.
+   * 
+ * + * string edge_services_cidr = 9 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The edgeServicesCidr. + */ + @java.lang.Override + public java.lang.String getEdgeServicesCidr() { + java.lang.Object ref = edgeServicesCidr_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + edgeServicesCidr_ = s; + return s; + } + } + /** + * + * + *
+   * Required. IP address range in CIDR notation used to create internet access
+   * and external IP access. An RFC 1918 CIDR block, with a "/26" prefix, is
+   * required. The range cannot overlap with any prefixes either in the consumer
+   * VPC network or in use by the private clouds attached to that VPC network.
+   * 
+ * + * string edge_services_cidr = 9 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for edgeServicesCidr. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEdgeServicesCidrBytes() { + java.lang.Object ref = edgeServicesCidr_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + edgeServicesCidr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UID_FIELD_NUMBER = 10; + private volatile java.lang.Object uid_; + /** + * + * + *
+   * Output only. System-generated unique identifier for the resource.
+   * 
+ * + * string uid = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The uid. + */ + @java.lang.Override + public java.lang.String getUid() { + java.lang.Object ref = uid_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uid_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. System-generated unique identifier for the resource.
+   * 
+ * + * string uid = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for uid. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUidBytes() { + java.lang.Object ref = uid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VMWARE_ENGINE_NETWORK_FIELD_NUMBER = 12; + private volatile java.lang.Object vmwareEngineNetwork_; + /** + * + * + *
+   * Optional. The relative resource name of the VMware Engine network.
+   * Specify the name in the following form:
+   * `projects/{project}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}`
+   * where `{project}` can either be a project number or a project ID.
+   * 
+ * + * + * string vmware_engine_network = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The vmwareEngineNetwork. + */ + @java.lang.Override + public java.lang.String getVmwareEngineNetwork() { + java.lang.Object ref = vmwareEngineNetwork_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + vmwareEngineNetwork_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. The relative resource name of the VMware Engine network.
+   * Specify the name in the following form:
+   * `projects/{project}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}`
+   * where `{project}` can either be a project number or a project ID.
+   * 
+ * + * + * string vmware_engine_network = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for vmwareEngineNetwork. + */ + @java.lang.Override + public com.google.protobuf.ByteString getVmwareEngineNetworkBytes() { + java.lang.Object ref = vmwareEngineNetwork_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + vmwareEngineNetwork_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 13; + private volatile java.lang.Object description_; + /** + * + * + *
+   * Optional. User-provided description for this network policy.
+   * 
+ * + * string description = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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. User-provided description for this network policy.
+   * 
+ * + * string description = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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 VMWARE_ENGINE_NETWORK_CANONICAL_FIELD_NUMBER = 14; + private volatile java.lang.Object vmwareEngineNetworkCanonical_; + /** + * + * + *
+   * Output only. The canonical name of the VMware Engine network in the form:
+   * `projects/{project_number}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}`
+   * 
+ * + * + * string vmware_engine_network_canonical = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The vmwareEngineNetworkCanonical. + */ + @java.lang.Override + public java.lang.String getVmwareEngineNetworkCanonical() { + java.lang.Object ref = vmwareEngineNetworkCanonical_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + vmwareEngineNetworkCanonical_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The canonical name of the VMware Engine network in the form:
+   * `projects/{project_number}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}`
+   * 
+ * + * + * string vmware_engine_network_canonical = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for vmwareEngineNetworkCanonical. + */ + @java.lang.Override + public com.google.protobuf.ByteString getVmwareEngineNetworkCanonicalBytes() { + java.lang.Object ref = vmwareEngineNetworkCanonical_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + vmwareEngineNetworkCanonical_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (createTime_ != null) { + output.writeMessage(2, getCreateTime()); + } + if (updateTime_ != null) { + output.writeMessage(3, getUpdateTime()); + } + if (internetAccess_ != null) { + output.writeMessage(6, getInternetAccess()); + } + if (externalIp_ != null) { + output.writeMessage(7, getExternalIp()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(edgeServicesCidr_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, edgeServicesCidr_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, uid_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vmwareEngineNetwork_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 12, vmwareEngineNetwork_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 13, description_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vmwareEngineNetworkCanonical_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 14, vmwareEngineNetworkCanonical_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (createTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); + } + if (updateTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime()); + } + if (internetAccess_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getInternetAccess()); + } + if (externalIp_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getExternalIp()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(edgeServicesCidr_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, edgeServicesCidr_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, uid_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vmwareEngineNetwork_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, vmwareEngineNetwork_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, description_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vmwareEngineNetworkCanonical_)) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize( + 14, vmwareEngineNetworkCanonical_); + } + 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.vmwareengine.v1.NetworkPolicy)) { + return super.equals(obj); + } + com.google.cloud.vmwareengine.v1.NetworkPolicy other = + (com.google.cloud.vmwareengine.v1.NetworkPolicy) obj; + + if (!getName().equals(other.getName())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (hasInternetAccess() != other.hasInternetAccess()) return false; + if (hasInternetAccess()) { + if (!getInternetAccess().equals(other.getInternetAccess())) return false; + } + if (hasExternalIp() != other.hasExternalIp()) return false; + if (hasExternalIp()) { + if (!getExternalIp().equals(other.getExternalIp())) return false; + } + if (!getEdgeServicesCidr().equals(other.getEdgeServicesCidr())) return false; + if (!getUid().equals(other.getUid())) return false; + if (!getVmwareEngineNetwork().equals(other.getVmwareEngineNetwork())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!getVmwareEngineNetworkCanonical().equals(other.getVmwareEngineNetworkCanonical())) + return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + if (hasInternetAccess()) { + hash = (37 * hash) + INTERNET_ACCESS_FIELD_NUMBER; + hash = (53 * hash) + getInternetAccess().hashCode(); + } + if (hasExternalIp()) { + hash = (37 * hash) + EXTERNAL_IP_FIELD_NUMBER; + hash = (53 * hash) + getExternalIp().hashCode(); + } + hash = (37 * hash) + EDGE_SERVICES_CIDR_FIELD_NUMBER; + hash = (53 * hash) + getEdgeServicesCidr().hashCode(); + hash = (37 * hash) + UID_FIELD_NUMBER; + hash = (53 * hash) + getUid().hashCode(); + hash = (37 * hash) + VMWARE_ENGINE_NETWORK_FIELD_NUMBER; + hash = (53 * hash) + getVmwareEngineNetwork().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (37 * hash) + VMWARE_ENGINE_NETWORK_CANONICAL_FIELD_NUMBER; + hash = (53 * hash) + getVmwareEngineNetworkCanonical().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmwareengine.v1.NetworkPolicy parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.NetworkPolicy 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.vmwareengine.v1.NetworkPolicy parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.NetworkPolicy parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.NetworkPolicy parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.NetworkPolicy parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.NetworkPolicy parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.NetworkPolicy parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.NetworkPolicy parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.NetworkPolicy parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.NetworkPolicy parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.NetworkPolicy parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.vmwareengine.v1.NetworkPolicy prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Represents a network policy resource. Network policies are regional
+   * resources. You can use a network policy to enable or disable internet access
+   * and external IP access. Network policies are associated with a VMware Engine
+   * network, which might span across regions. For a given region, a network
+   * policy applies to all private clouds in the VMware Engine network associated
+   * with the policy.
+   * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.NetworkPolicy} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmwareengine.v1.NetworkPolicy) + com.google.cloud.vmwareengine.v1.NetworkPolicyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_NetworkPolicy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_NetworkPolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.NetworkPolicy.class, + com.google.cloud.vmwareengine.v1.NetworkPolicy.Builder.class); + } + + // Construct using com.google.cloud.vmwareengine.v1.NetworkPolicy.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + if (createTimeBuilder_ == null) { + createTime_ = null; + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + if (updateTimeBuilder_ == null) { + updateTime_ = null; + } else { + updateTime_ = null; + updateTimeBuilder_ = null; + } + if (internetAccessBuilder_ == null) { + internetAccess_ = null; + } else { + internetAccess_ = null; + internetAccessBuilder_ = null; + } + if (externalIpBuilder_ == null) { + externalIp_ = null; + } else { + externalIp_ = null; + externalIpBuilder_ = null; + } + edgeServicesCidr_ = ""; + + uid_ = ""; + + vmwareEngineNetwork_ = ""; + + description_ = ""; + + vmwareEngineNetworkCanonical_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_NetworkPolicy_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.NetworkPolicy getDefaultInstanceForType() { + return com.google.cloud.vmwareengine.v1.NetworkPolicy.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.NetworkPolicy build() { + com.google.cloud.vmwareengine.v1.NetworkPolicy result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.NetworkPolicy buildPartial() { + com.google.cloud.vmwareengine.v1.NetworkPolicy result = + new com.google.cloud.vmwareengine.v1.NetworkPolicy(this); + result.name_ = name_; + if (createTimeBuilder_ == null) { + result.createTime_ = createTime_; + } else { + result.createTime_ = createTimeBuilder_.build(); + } + if (updateTimeBuilder_ == null) { + result.updateTime_ = updateTime_; + } else { + result.updateTime_ = updateTimeBuilder_.build(); + } + if (internetAccessBuilder_ == null) { + result.internetAccess_ = internetAccess_; + } else { + result.internetAccess_ = internetAccessBuilder_.build(); + } + if (externalIpBuilder_ == null) { + result.externalIp_ = externalIp_; + } else { + result.externalIp_ = externalIpBuilder_.build(); + } + result.edgeServicesCidr_ = edgeServicesCidr_; + result.uid_ = uid_; + result.vmwareEngineNetwork_ = vmwareEngineNetwork_; + result.description_ = description_; + result.vmwareEngineNetworkCanonical_ = vmwareEngineNetworkCanonical_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.vmwareengine.v1.NetworkPolicy) { + return mergeFrom((com.google.cloud.vmwareengine.v1.NetworkPolicy) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmwareengine.v1.NetworkPolicy other) { + if (other == com.google.cloud.vmwareengine.v1.NetworkPolicy.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (other.hasInternetAccess()) { + mergeInternetAccess(other.getInternetAccess()); + } + if (other.hasExternalIp()) { + mergeExternalIp(other.getExternalIp()); + } + if (!other.getEdgeServicesCidr().isEmpty()) { + edgeServicesCidr_ = other.edgeServicesCidr_; + onChanged(); + } + if (!other.getUid().isEmpty()) { + uid_ = other.uid_; + onChanged(); + } + if (!other.getVmwareEngineNetwork().isEmpty()) { + vmwareEngineNetwork_ = other.vmwareEngineNetwork_; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + onChanged(); + } + if (!other.getVmwareEngineNetworkCanonical().isEmpty()) { + vmwareEngineNetworkCanonical_ = other.vmwareEngineNetworkCanonical_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + case 26: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 26 + case 50: + { + input.readMessage(getInternetAccessFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 50 + case 58: + { + input.readMessage(getExternalIpFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 58 + case 74: + { + edgeServicesCidr_ = input.readStringRequireUtf8(); + + break; + } // case 74 + case 82: + { + uid_ = input.readStringRequireUtf8(); + + break; + } // case 82 + case 98: + { + vmwareEngineNetwork_ = input.readStringRequireUtf8(); + + break; + } // case 98 + case 106: + { + description_ = input.readStringRequireUtf8(); + + break; + } // case 106 + case 114: + { + vmwareEngineNetworkCanonical_ = input.readStringRequireUtf8(); + + break; + } // case 114 + 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 java.lang.Object name_ = ""; + /** + * + * + *
+     * Output only. The resource name of this network policy.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-central1/networkPolicies/my-network-policy`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The resource name of this network policy.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-central1/networkPolicies/my-network-policy`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The resource name of this network policy.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-central1/networkPolicies/my-network-policy`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The resource name of this network policy.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-central1/networkPolicies/my-network-policy`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The resource name of this network policy.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-central1/networkPolicies/my-network-policy`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + /** + * + * + *
+     * Output only. Creation time of this resource.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return createTimeBuilder_ != null || createTime_ != null; + } + /** + * + * + *
+     * Output only. Creation time of this resource.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Creation time of this resource.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + onChanged(); + } else { + createTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Creation time of this resource.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + onChanged(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. Creation time of this resource.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (createTime_ != null) { + createTime_ = + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + } else { + createTime_ = value; + } + onChanged(); + } else { + createTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Creation time of this resource.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + if (createTimeBuilder_ == null) { + createTime_ = null; + onChanged(); + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. Creation time of this resource.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Creation time of this resource.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + /** + * + * + *
+     * Output only. Creation time of this resource.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + /** + * + * + *
+     * Output only. Last update time of this resource.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return updateTimeBuilder_ != null || updateTime_ != null; + } + /** + * + * + *
+     * Output only. Last update time of this resource.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Last update time of this resource.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + onChanged(); + } else { + updateTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Last update time of this resource.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + onChanged(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. Last update time of this resource.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (updateTime_ != null) { + updateTime_ = + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + } else { + updateTime_ = value; + } + onChanged(); + } else { + updateTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Last update time of this resource.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + if (updateTimeBuilder_ == null) { + updateTime_ = null; + onChanged(); + } else { + updateTime_ = null; + updateTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. Last update time of this resource.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Last update time of this resource.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + /** + * + * + *
+     * Output only. Last update time of this resource.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private com.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService internetAccess_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService, + com.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.Builder, + com.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkServiceOrBuilder> + internetAccessBuilder_; + /** + * + * + *
+     * Network service that allows VMware workloads to access the internet.
+     * 
+ * + * .google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService internet_access = 6; + * + * @return Whether the internetAccess field is set. + */ + public boolean hasInternetAccess() { + return internetAccessBuilder_ != null || internetAccess_ != null; + } + /** + * + * + *
+     * Network service that allows VMware workloads to access the internet.
+     * 
+ * + * .google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService internet_access = 6; + * + * @return The internetAccess. + */ + public com.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService getInternetAccess() { + if (internetAccessBuilder_ == null) { + return internetAccess_ == null + ? com.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.getDefaultInstance() + : internetAccess_; + } else { + return internetAccessBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Network service that allows VMware workloads to access the internet.
+     * 
+ * + * .google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService internet_access = 6; + */ + public Builder setInternetAccess( + com.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService value) { + if (internetAccessBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + internetAccess_ = value; + onChanged(); + } else { + internetAccessBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Network service that allows VMware workloads to access the internet.
+     * 
+ * + * .google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService internet_access = 6; + */ + public Builder setInternetAccess( + com.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.Builder builderForValue) { + if (internetAccessBuilder_ == null) { + internetAccess_ = builderForValue.build(); + onChanged(); + } else { + internetAccessBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Network service that allows VMware workloads to access the internet.
+     * 
+ * + * .google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService internet_access = 6; + */ + public Builder mergeInternetAccess( + com.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService value) { + if (internetAccessBuilder_ == null) { + if (internetAccess_ != null) { + internetAccess_ = + com.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.newBuilder( + internetAccess_) + .mergeFrom(value) + .buildPartial(); + } else { + internetAccess_ = value; + } + onChanged(); + } else { + internetAccessBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Network service that allows VMware workloads to access the internet.
+     * 
+ * + * .google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService internet_access = 6; + */ + public Builder clearInternetAccess() { + if (internetAccessBuilder_ == null) { + internetAccess_ = null; + onChanged(); + } else { + internetAccess_ = null; + internetAccessBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Network service that allows VMware workloads to access the internet.
+     * 
+ * + * .google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService internet_access = 6; + */ + public com.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.Builder + getInternetAccessBuilder() { + + onChanged(); + return getInternetAccessFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Network service that allows VMware workloads to access the internet.
+     * 
+ * + * .google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService internet_access = 6; + */ + public com.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkServiceOrBuilder + getInternetAccessOrBuilder() { + if (internetAccessBuilder_ != null) { + return internetAccessBuilder_.getMessageOrBuilder(); + } else { + return internetAccess_ == null + ? com.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.getDefaultInstance() + : internetAccess_; + } + } + /** + * + * + *
+     * Network service that allows VMware workloads to access the internet.
+     * 
+ * + * .google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService internet_access = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService, + com.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.Builder, + com.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkServiceOrBuilder> + getInternetAccessFieldBuilder() { + if (internetAccessBuilder_ == null) { + internetAccessBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService, + com.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.Builder, + com.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkServiceOrBuilder>( + getInternetAccess(), getParentForChildren(), isClean()); + internetAccess_ = null; + } + return internetAccessBuilder_; + } + + private com.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService externalIp_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService, + com.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.Builder, + com.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkServiceOrBuilder> + externalIpBuilder_; + /** + * + * + *
+     * Network service that allows External IP addresses to be assigned to VMware
+     * workloads. This service can only be enabled when `internet_access` is also
+     * enabled.
+     * 
+ * + * .google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService external_ip = 7; + * + * @return Whether the externalIp field is set. + */ + public boolean hasExternalIp() { + return externalIpBuilder_ != null || externalIp_ != null; + } + /** + * + * + *
+     * Network service that allows External IP addresses to be assigned to VMware
+     * workloads. This service can only be enabled when `internet_access` is also
+     * enabled.
+     * 
+ * + * .google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService external_ip = 7; + * + * @return The externalIp. + */ + public com.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService getExternalIp() { + if (externalIpBuilder_ == null) { + return externalIp_ == null + ? com.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.getDefaultInstance() + : externalIp_; + } else { + return externalIpBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Network service that allows External IP addresses to be assigned to VMware
+     * workloads. This service can only be enabled when `internet_access` is also
+     * enabled.
+     * 
+ * + * .google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService external_ip = 7; + */ + public Builder setExternalIp( + com.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService value) { + if (externalIpBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + externalIp_ = value; + onChanged(); + } else { + externalIpBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Network service that allows External IP addresses to be assigned to VMware
+     * workloads. This service can only be enabled when `internet_access` is also
+     * enabled.
+     * 
+ * + * .google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService external_ip = 7; + */ + public Builder setExternalIp( + com.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.Builder builderForValue) { + if (externalIpBuilder_ == null) { + externalIp_ = builderForValue.build(); + onChanged(); + } else { + externalIpBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Network service that allows External IP addresses to be assigned to VMware
+     * workloads. This service can only be enabled when `internet_access` is also
+     * enabled.
+     * 
+ * + * .google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService external_ip = 7; + */ + public Builder mergeExternalIp( + com.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService value) { + if (externalIpBuilder_ == null) { + if (externalIp_ != null) { + externalIp_ = + com.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.newBuilder(externalIp_) + .mergeFrom(value) + .buildPartial(); + } else { + externalIp_ = value; + } + onChanged(); + } else { + externalIpBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Network service that allows External IP addresses to be assigned to VMware
+     * workloads. This service can only be enabled when `internet_access` is also
+     * enabled.
+     * 
+ * + * .google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService external_ip = 7; + */ + public Builder clearExternalIp() { + if (externalIpBuilder_ == null) { + externalIp_ = null; + onChanged(); + } else { + externalIp_ = null; + externalIpBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Network service that allows External IP addresses to be assigned to VMware
+     * workloads. This service can only be enabled when `internet_access` is also
+     * enabled.
+     * 
+ * + * .google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService external_ip = 7; + */ + public com.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.Builder + getExternalIpBuilder() { + + onChanged(); + return getExternalIpFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Network service that allows External IP addresses to be assigned to VMware
+     * workloads. This service can only be enabled when `internet_access` is also
+     * enabled.
+     * 
+ * + * .google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService external_ip = 7; + */ + public com.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkServiceOrBuilder + getExternalIpOrBuilder() { + if (externalIpBuilder_ != null) { + return externalIpBuilder_.getMessageOrBuilder(); + } else { + return externalIp_ == null + ? com.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.getDefaultInstance() + : externalIp_; + } + } + /** + * + * + *
+     * Network service that allows External IP addresses to be assigned to VMware
+     * workloads. This service can only be enabled when `internet_access` is also
+     * enabled.
+     * 
+ * + * .google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService external_ip = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService, + com.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.Builder, + com.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkServiceOrBuilder> + getExternalIpFieldBuilder() { + if (externalIpBuilder_ == null) { + externalIpBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService, + com.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.Builder, + com.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkServiceOrBuilder>( + getExternalIp(), getParentForChildren(), isClean()); + externalIp_ = null; + } + return externalIpBuilder_; + } + + private java.lang.Object edgeServicesCidr_ = ""; + /** + * + * + *
+     * Required. IP address range in CIDR notation used to create internet access
+     * and external IP access. An RFC 1918 CIDR block, with a "/26" prefix, is
+     * required. The range cannot overlap with any prefixes either in the consumer
+     * VPC network or in use by the private clouds attached to that VPC network.
+     * 
+ * + * string edge_services_cidr = 9 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The edgeServicesCidr. + */ + public java.lang.String getEdgeServicesCidr() { + java.lang.Object ref = edgeServicesCidr_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + edgeServicesCidr_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. IP address range in CIDR notation used to create internet access
+     * and external IP access. An RFC 1918 CIDR block, with a "/26" prefix, is
+     * required. The range cannot overlap with any prefixes either in the consumer
+     * VPC network or in use by the private clouds attached to that VPC network.
+     * 
+ * + * string edge_services_cidr = 9 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for edgeServicesCidr. + */ + public com.google.protobuf.ByteString getEdgeServicesCidrBytes() { + java.lang.Object ref = edgeServicesCidr_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + edgeServicesCidr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. IP address range in CIDR notation used to create internet access
+     * and external IP access. An RFC 1918 CIDR block, with a "/26" prefix, is
+     * required. The range cannot overlap with any prefixes either in the consumer
+     * VPC network or in use by the private clouds attached to that VPC network.
+     * 
+ * + * string edge_services_cidr = 9 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The edgeServicesCidr to set. + * @return This builder for chaining. + */ + public Builder setEdgeServicesCidr(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + edgeServicesCidr_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. IP address range in CIDR notation used to create internet access
+     * and external IP access. An RFC 1918 CIDR block, with a "/26" prefix, is
+     * required. The range cannot overlap with any prefixes either in the consumer
+     * VPC network or in use by the private clouds attached to that VPC network.
+     * 
+ * + * string edge_services_cidr = 9 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearEdgeServicesCidr() { + + edgeServicesCidr_ = getDefaultInstance().getEdgeServicesCidr(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. IP address range in CIDR notation used to create internet access
+     * and external IP access. An RFC 1918 CIDR block, with a "/26" prefix, is
+     * required. The range cannot overlap with any prefixes either in the consumer
+     * VPC network or in use by the private clouds attached to that VPC network.
+     * 
+ * + * string edge_services_cidr = 9 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for edgeServicesCidr to set. + * @return This builder for chaining. + */ + public Builder setEdgeServicesCidrBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + edgeServicesCidr_ = value; + onChanged(); + return this; + } + + private java.lang.Object uid_ = ""; + /** + * + * + *
+     * Output only. System-generated unique identifier for the resource.
+     * 
+ * + * string uid = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The uid. + */ + public java.lang.String getUid() { + java.lang.Object ref = uid_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. System-generated unique identifier for the resource.
+     * 
+ * + * string uid = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for uid. + */ + public com.google.protobuf.ByteString getUidBytes() { + java.lang.Object ref = uid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. System-generated unique identifier for the resource.
+     * 
+ * + * string uid = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The uid to set. + * @return This builder for chaining. + */ + public Builder setUid(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + uid_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. System-generated unique identifier for the resource.
+     * 
+ * + * string uid = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearUid() { + + uid_ = getDefaultInstance().getUid(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. System-generated unique identifier for the resource.
+     * 
+ * + * string uid = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for uid to set. + * @return This builder for chaining. + */ + public Builder setUidBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + uid_ = value; + onChanged(); + return this; + } + + private java.lang.Object vmwareEngineNetwork_ = ""; + /** + * + * + *
+     * Optional. The relative resource name of the VMware Engine network.
+     * Specify the name in the following form:
+     * `projects/{project}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}`
+     * where `{project}` can either be a project number or a project ID.
+     * 
+ * + * + * string vmware_engine_network = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The vmwareEngineNetwork. + */ + public java.lang.String getVmwareEngineNetwork() { + java.lang.Object ref = vmwareEngineNetwork_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + vmwareEngineNetwork_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. The relative resource name of the VMware Engine network.
+     * Specify the name in the following form:
+     * `projects/{project}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}`
+     * where `{project}` can either be a project number or a project ID.
+     * 
+ * + * + * string vmware_engine_network = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for vmwareEngineNetwork. + */ + public com.google.protobuf.ByteString getVmwareEngineNetworkBytes() { + java.lang.Object ref = vmwareEngineNetwork_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + vmwareEngineNetwork_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. The relative resource name of the VMware Engine network.
+     * Specify the name in the following form:
+     * `projects/{project}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}`
+     * where `{project}` can either be a project number or a project ID.
+     * 
+ * + * + * string vmware_engine_network = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The vmwareEngineNetwork to set. + * @return This builder for chaining. + */ + public Builder setVmwareEngineNetwork(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + vmwareEngineNetwork_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The relative resource name of the VMware Engine network.
+     * Specify the name in the following form:
+     * `projects/{project}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}`
+     * where `{project}` can either be a project number or a project ID.
+     * 
+ * + * + * string vmware_engine_network = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearVmwareEngineNetwork() { + + vmwareEngineNetwork_ = getDefaultInstance().getVmwareEngineNetwork(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The relative resource name of the VMware Engine network.
+     * Specify the name in the following form:
+     * `projects/{project}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}`
+     * where `{project}` can either be a project number or a project ID.
+     * 
+ * + * + * string vmware_engine_network = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for vmwareEngineNetwork to set. + * @return This builder for chaining. + */ + public Builder setVmwareEngineNetworkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + vmwareEngineNetwork_ = value; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + /** + * + * + *
+     * Optional. User-provided description for this network policy.
+     * 
+ * + * string description = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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. User-provided description for this network policy.
+     * 
+ * + * string description = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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. User-provided description for this network policy.
+     * 
+ * + * string description = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. User-provided description for this network policy.
+     * 
+ * + * string description = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + + description_ = getDefaultInstance().getDescription(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. User-provided description for this network policy.
+     * 
+ * + * string description = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + onChanged(); + return this; + } + + private java.lang.Object vmwareEngineNetworkCanonical_ = ""; + /** + * + * + *
+     * Output only. The canonical name of the VMware Engine network in the form:
+     * `projects/{project_number}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}`
+     * 
+ * + * + * string vmware_engine_network_canonical = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The vmwareEngineNetworkCanonical. + */ + public java.lang.String getVmwareEngineNetworkCanonical() { + java.lang.Object ref = vmwareEngineNetworkCanonical_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + vmwareEngineNetworkCanonical_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The canonical name of the VMware Engine network in the form:
+     * `projects/{project_number}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}`
+     * 
+ * + * + * string vmware_engine_network_canonical = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for vmwareEngineNetworkCanonical. + */ + public com.google.protobuf.ByteString getVmwareEngineNetworkCanonicalBytes() { + java.lang.Object ref = vmwareEngineNetworkCanonical_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + vmwareEngineNetworkCanonical_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The canonical name of the VMware Engine network in the form:
+     * `projects/{project_number}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}`
+     * 
+ * + * + * string vmware_engine_network_canonical = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The vmwareEngineNetworkCanonical to set. + * @return This builder for chaining. + */ + public Builder setVmwareEngineNetworkCanonical(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + vmwareEngineNetworkCanonical_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The canonical name of the VMware Engine network in the form:
+     * `projects/{project_number}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}`
+     * 
+ * + * + * string vmware_engine_network_canonical = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearVmwareEngineNetworkCanonical() { + + vmwareEngineNetworkCanonical_ = getDefaultInstance().getVmwareEngineNetworkCanonical(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The canonical name of the VMware Engine network in the form:
+     * `projects/{project_number}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}`
+     * 
+ * + * + * string vmware_engine_network_canonical = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for vmwareEngineNetworkCanonical to set. + * @return This builder for chaining. + */ + public Builder setVmwareEngineNetworkCanonicalBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + vmwareEngineNetworkCanonical_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.vmwareengine.v1.NetworkPolicy) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmwareengine.v1.NetworkPolicy) + private static final com.google.cloud.vmwareengine.v1.NetworkPolicy DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmwareengine.v1.NetworkPolicy(); + } + + public static com.google.cloud.vmwareengine.v1.NetworkPolicy getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NetworkPolicy 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.vmwareengine.v1.NetworkPolicy getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/NetworkPolicyName.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/NetworkPolicyName.java new file mode 100644 index 000000000000..3632e1170fa2 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/NetworkPolicyName.java @@ -0,0 +1,227 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.vmwareengine.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class NetworkPolicyName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_NETWORK_POLICY = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/networkPolicies/{network_policy}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String networkPolicy; + + @Deprecated + protected NetworkPolicyName() { + project = null; + location = null; + networkPolicy = null; + } + + private NetworkPolicyName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + networkPolicy = Preconditions.checkNotNull(builder.getNetworkPolicy()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getNetworkPolicy() { + return networkPolicy; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static NetworkPolicyName of(String project, String location, String networkPolicy) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setNetworkPolicy(networkPolicy) + .build(); + } + + public static String format(String project, String location, String networkPolicy) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setNetworkPolicy(networkPolicy) + .build() + .toString(); + } + + public static NetworkPolicyName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_NETWORK_POLICY.validatedMatch( + formattedString, "NetworkPolicyName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("network_policy")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (NetworkPolicyName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_NETWORK_POLICY.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (networkPolicy != null) { + fieldMapBuilder.put("network_policy", networkPolicy); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_NETWORK_POLICY.instantiate( + "project", project, "location", location, "network_policy", networkPolicy); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null || getClass() == o.getClass()) { + NetworkPolicyName that = ((NetworkPolicyName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.networkPolicy, that.networkPolicy); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(networkPolicy); + return h; + } + + /** Builder for projects/{project}/locations/{location}/networkPolicies/{network_policy}. */ + public static class Builder { + private String project; + private String location; + private String networkPolicy; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getNetworkPolicy() { + return networkPolicy; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setNetworkPolicy(String networkPolicy) { + this.networkPolicy = networkPolicy; + return this; + } + + private Builder(NetworkPolicyName networkPolicyName) { + this.project = networkPolicyName.project; + this.location = networkPolicyName.location; + this.networkPolicy = networkPolicyName.networkPolicy; + } + + public NetworkPolicyName build() { + return new NetworkPolicyName(this); + } + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/NetworkPolicyOrBuilder.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/NetworkPolicyOrBuilder.java new file mode 100644 index 000000000000..b7b2cb79d2e6 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/NetworkPolicyOrBuilder.java @@ -0,0 +1,358 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmwareengine/v1/vmwareengine.proto + +package com.google.cloud.vmwareengine.v1; + +public interface NetworkPolicyOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmwareengine.v1.NetworkPolicy) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. The resource name of this network policy.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-project/locations/us-central1/networkPolicies/my-network-policy`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Output only. The resource name of this network policy.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-project/locations/us-central1/networkPolicies/my-network-policy`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Output only. Creation time of this resource.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + * + * + *
+   * Output only. Creation time of this resource.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + * + * + *
+   * Output only. Creation time of this resource.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. Last update time of this resource.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + /** + * + * + *
+   * Output only. Last update time of this resource.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + /** + * + * + *
+   * Output only. Last update time of this resource.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
+   * Network service that allows VMware workloads to access the internet.
+   * 
+ * + * .google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService internet_access = 6; + * + * @return Whether the internetAccess field is set. + */ + boolean hasInternetAccess(); + /** + * + * + *
+   * Network service that allows VMware workloads to access the internet.
+   * 
+ * + * .google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService internet_access = 6; + * + * @return The internetAccess. + */ + com.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService getInternetAccess(); + /** + * + * + *
+   * Network service that allows VMware workloads to access the internet.
+   * 
+ * + * .google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService internet_access = 6; + */ + com.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkServiceOrBuilder + getInternetAccessOrBuilder(); + + /** + * + * + *
+   * Network service that allows External IP addresses to be assigned to VMware
+   * workloads. This service can only be enabled when `internet_access` is also
+   * enabled.
+   * 
+ * + * .google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService external_ip = 7; + * + * @return Whether the externalIp field is set. + */ + boolean hasExternalIp(); + /** + * + * + *
+   * Network service that allows External IP addresses to be assigned to VMware
+   * workloads. This service can only be enabled when `internet_access` is also
+   * enabled.
+   * 
+ * + * .google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService external_ip = 7; + * + * @return The externalIp. + */ + com.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService getExternalIp(); + /** + * + * + *
+   * Network service that allows External IP addresses to be assigned to VMware
+   * workloads. This service can only be enabled when `internet_access` is also
+   * enabled.
+   * 
+ * + * .google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService external_ip = 7; + */ + com.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkServiceOrBuilder getExternalIpOrBuilder(); + + /** + * + * + *
+   * Required. IP address range in CIDR notation used to create internet access
+   * and external IP access. An RFC 1918 CIDR block, with a "/26" prefix, is
+   * required. The range cannot overlap with any prefixes either in the consumer
+   * VPC network or in use by the private clouds attached to that VPC network.
+   * 
+ * + * string edge_services_cidr = 9 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The edgeServicesCidr. + */ + java.lang.String getEdgeServicesCidr(); + /** + * + * + *
+   * Required. IP address range in CIDR notation used to create internet access
+   * and external IP access. An RFC 1918 CIDR block, with a "/26" prefix, is
+   * required. The range cannot overlap with any prefixes either in the consumer
+   * VPC network or in use by the private clouds attached to that VPC network.
+   * 
+ * + * string edge_services_cidr = 9 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for edgeServicesCidr. + */ + com.google.protobuf.ByteString getEdgeServicesCidrBytes(); + + /** + * + * + *
+   * Output only. System-generated unique identifier for the resource.
+   * 
+ * + * string uid = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The uid. + */ + java.lang.String getUid(); + /** + * + * + *
+   * Output only. System-generated unique identifier for the resource.
+   * 
+ * + * string uid = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for uid. + */ + com.google.protobuf.ByteString getUidBytes(); + + /** + * + * + *
+   * Optional. The relative resource name of the VMware Engine network.
+   * Specify the name in the following form:
+   * `projects/{project}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}`
+   * where `{project}` can either be a project number or a project ID.
+   * 
+ * + * + * string vmware_engine_network = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The vmwareEngineNetwork. + */ + java.lang.String getVmwareEngineNetwork(); + /** + * + * + *
+   * Optional. The relative resource name of the VMware Engine network.
+   * Specify the name in the following form:
+   * `projects/{project}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}`
+   * where `{project}` can either be a project number or a project ID.
+   * 
+ * + * + * string vmware_engine_network = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for vmwareEngineNetwork. + */ + com.google.protobuf.ByteString getVmwareEngineNetworkBytes(); + + /** + * + * + *
+   * Optional. User-provided description for this network policy.
+   * 
+ * + * string description = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + java.lang.String getDescription(); + /** + * + * + *
+   * Optional. User-provided description for this network policy.
+   * 
+ * + * string description = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
+   * Output only. The canonical name of the VMware Engine network in the form:
+   * `projects/{project_number}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}`
+   * 
+ * + * + * string vmware_engine_network_canonical = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The vmwareEngineNetworkCanonical. + */ + java.lang.String getVmwareEngineNetworkCanonical(); + /** + * + * + *
+   * Output only. The canonical name of the VMware Engine network in the form:
+   * `projects/{project_number}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}`
+   * 
+ * + * + * string vmware_engine_network_canonical = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for vmwareEngineNetworkCanonical. + */ + com.google.protobuf.ByteString getVmwareEngineNetworkCanonicalBytes(); +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/NodeType.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/NodeType.java new file mode 100644 index 000000000000..75c0b418471d --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/NodeType.java @@ -0,0 +1,1639 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmwareengine/v1/vmwareengine.proto + +package com.google.cloud.vmwareengine.v1; + +/** + * + * + *
+ * Describes node type.
+ * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.NodeType} + */ +public final class NodeType extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmwareengine.v1.NodeType) + NodeTypeOrBuilder { + private static final long serialVersionUID = 0L; + // Use NodeType.newBuilder() to construct. + private NodeType(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private NodeType() { + name_ = ""; + nodeTypeId_ = ""; + displayName_ = ""; + availableCustomCoreCounts_ = emptyIntList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new NodeType(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_NodeType_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_NodeType_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.NodeType.class, + com.google.cloud.vmwareengine.v1.NodeType.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Output only. The resource name of this node type.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-proj/locations/us-west1-a/nodeTypes/standard-72`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The resource name of this node type.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-proj/locations/us-west1-a/nodeTypes/standard-72`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NODE_TYPE_ID_FIELD_NUMBER = 2; + private volatile java.lang.Object nodeTypeId_; + /** + * + * + *
+   * Output only. The canonical identifier of the node type
+   * (corresponds to the `NodeType`). For example: standard-72.
+   * 
+ * + * string node_type_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The nodeTypeId. + */ + @java.lang.Override + public java.lang.String getNodeTypeId() { + java.lang.Object ref = nodeTypeId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nodeTypeId_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The canonical identifier of the node type
+   * (corresponds to the `NodeType`). For example: standard-72.
+   * 
+ * + * string node_type_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for nodeTypeId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNodeTypeIdBytes() { + java.lang.Object ref = nodeTypeId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nodeTypeId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 3; + private volatile java.lang.Object displayName_; + /** + * + * + *
+   * Output only. The friendly name for this node type.
+   * For example: ve1-standard-72
+   * 
+ * + * string display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The friendly name for this node type.
+   * For example: ve1-standard-72
+   * 
+ * + * string display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VIRTUAL_CPU_COUNT_FIELD_NUMBER = 4; + private int virtualCpuCount_; + /** + * + * + *
+   * Output only. The total number of virtual CPUs in a single node.
+   * 
+ * + * int32 virtual_cpu_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The virtualCpuCount. + */ + @java.lang.Override + public int getVirtualCpuCount() { + return virtualCpuCount_; + } + + public static final int TOTAL_CORE_COUNT_FIELD_NUMBER = 5; + private int totalCoreCount_; + /** + * + * + *
+   * Output only. The total number of CPU cores in a single node.
+   * 
+ * + * int32 total_core_count = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The totalCoreCount. + */ + @java.lang.Override + public int getTotalCoreCount() { + return totalCoreCount_; + } + + public static final int MEMORY_GB_FIELD_NUMBER = 7; + private int memoryGb_; + /** + * + * + *
+   * Output only. The amount of physical memory available, defined in GB.
+   * 
+ * + * int32 memory_gb = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The memoryGb. + */ + @java.lang.Override + public int getMemoryGb() { + return memoryGb_; + } + + public static final int DISK_SIZE_GB_FIELD_NUMBER = 8; + private int diskSizeGb_; + /** + * + * + *
+   * Output only. The amount of storage available, defined in GB.
+   * 
+ * + * int32 disk_size_gb = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The diskSizeGb. + */ + @java.lang.Override + public int getDiskSizeGb() { + return diskSizeGb_; + } + + public static final int AVAILABLE_CUSTOM_CORE_COUNTS_FIELD_NUMBER = 11; + private com.google.protobuf.Internal.IntList availableCustomCoreCounts_; + /** + * + * + *
+   * Output only. List of possible values of custom core count.
+   * 
+ * + * + * repeated int32 available_custom_core_counts = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the availableCustomCoreCounts. + */ + @java.lang.Override + public java.util.List getAvailableCustomCoreCountsList() { + return availableCustomCoreCounts_; + } + /** + * + * + *
+   * Output only. List of possible values of custom core count.
+   * 
+ * + * + * repeated int32 available_custom_core_counts = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of availableCustomCoreCounts. + */ + public int getAvailableCustomCoreCountsCount() { + return availableCustomCoreCounts_.size(); + } + /** + * + * + *
+   * Output only. List of possible values of custom core count.
+   * 
+ * + * + * repeated int32 available_custom_core_counts = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The availableCustomCoreCounts at the given index. + */ + public int getAvailableCustomCoreCounts(int index) { + return availableCustomCoreCounts_.getInt(index); + } + + private int availableCustomCoreCountsMemoizedSerializedSize = -1; + + 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 { + getSerializedSize(); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodeTypeId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nodeTypeId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, displayName_); + } + if (virtualCpuCount_ != 0) { + output.writeInt32(4, virtualCpuCount_); + } + if (totalCoreCount_ != 0) { + output.writeInt32(5, totalCoreCount_); + } + if (memoryGb_ != 0) { + output.writeInt32(7, memoryGb_); + } + if (diskSizeGb_ != 0) { + output.writeInt32(8, diskSizeGb_); + } + if (getAvailableCustomCoreCountsList().size() > 0) { + output.writeUInt32NoTag(90); + output.writeUInt32NoTag(availableCustomCoreCountsMemoizedSerializedSize); + } + for (int i = 0; i < availableCustomCoreCounts_.size(); i++) { + output.writeInt32NoTag(availableCustomCoreCounts_.getInt(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodeTypeId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nodeTypeId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, displayName_); + } + if (virtualCpuCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, virtualCpuCount_); + } + if (totalCoreCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, totalCoreCount_); + } + if (memoryGb_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(7, memoryGb_); + } + if (diskSizeGb_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(8, diskSizeGb_); + } + { + int dataSize = 0; + for (int i = 0; i < availableCustomCoreCounts_.size(); i++) { + dataSize += + com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag( + availableCustomCoreCounts_.getInt(i)); + } + size += dataSize; + if (!getAvailableCustomCoreCountsList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); + } + availableCustomCoreCountsMemoizedSerializedSize = dataSize; + } + 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.vmwareengine.v1.NodeType)) { + return super.equals(obj); + } + com.google.cloud.vmwareengine.v1.NodeType other = + (com.google.cloud.vmwareengine.v1.NodeType) obj; + + if (!getName().equals(other.getName())) return false; + if (!getNodeTypeId().equals(other.getNodeTypeId())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (getVirtualCpuCount() != other.getVirtualCpuCount()) return false; + if (getTotalCoreCount() != other.getTotalCoreCount()) return false; + if (getMemoryGb() != other.getMemoryGb()) return false; + if (getDiskSizeGb() != other.getDiskSizeGb()) return false; + if (!getAvailableCustomCoreCountsList().equals(other.getAvailableCustomCoreCountsList())) + return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + NODE_TYPE_ID_FIELD_NUMBER; + hash = (53 * hash) + getNodeTypeId().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + VIRTUAL_CPU_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getVirtualCpuCount(); + hash = (37 * hash) + TOTAL_CORE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getTotalCoreCount(); + hash = (37 * hash) + MEMORY_GB_FIELD_NUMBER; + hash = (53 * hash) + getMemoryGb(); + hash = (37 * hash) + DISK_SIZE_GB_FIELD_NUMBER; + hash = (53 * hash) + getDiskSizeGb(); + if (getAvailableCustomCoreCountsCount() > 0) { + hash = (37 * hash) + AVAILABLE_CUSTOM_CORE_COUNTS_FIELD_NUMBER; + hash = (53 * hash) + getAvailableCustomCoreCountsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmwareengine.v1.NodeType parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.NodeType 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.vmwareengine.v1.NodeType parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.NodeType parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.NodeType parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.NodeType parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.NodeType parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.NodeType parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.NodeType parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.NodeType parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.NodeType parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.NodeType parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.vmwareengine.v1.NodeType prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Describes node type.
+   * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.NodeType} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmwareengine.v1.NodeType) + com.google.cloud.vmwareengine.v1.NodeTypeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_NodeType_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_NodeType_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.NodeType.class, + com.google.cloud.vmwareengine.v1.NodeType.Builder.class); + } + + // Construct using com.google.cloud.vmwareengine.v1.NodeType.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + nodeTypeId_ = ""; + + displayName_ = ""; + + virtualCpuCount_ = 0; + + totalCoreCount_ = 0; + + memoryGb_ = 0; + + diskSizeGb_ = 0; + + availableCustomCoreCounts_ = emptyIntList(); + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_NodeType_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.NodeType getDefaultInstanceForType() { + return com.google.cloud.vmwareengine.v1.NodeType.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.NodeType build() { + com.google.cloud.vmwareengine.v1.NodeType result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.NodeType buildPartial() { + com.google.cloud.vmwareengine.v1.NodeType result = + new com.google.cloud.vmwareengine.v1.NodeType(this); + int from_bitField0_ = bitField0_; + result.name_ = name_; + result.nodeTypeId_ = nodeTypeId_; + result.displayName_ = displayName_; + result.virtualCpuCount_ = virtualCpuCount_; + result.totalCoreCount_ = totalCoreCount_; + result.memoryGb_ = memoryGb_; + result.diskSizeGb_ = diskSizeGb_; + if (((bitField0_ & 0x00000001) != 0)) { + availableCustomCoreCounts_.makeImmutable(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.availableCustomCoreCounts_ = availableCustomCoreCounts_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.vmwareengine.v1.NodeType) { + return mergeFrom((com.google.cloud.vmwareengine.v1.NodeType) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmwareengine.v1.NodeType other) { + if (other == com.google.cloud.vmwareengine.v1.NodeType.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getNodeTypeId().isEmpty()) { + nodeTypeId_ = other.nodeTypeId_; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + onChanged(); + } + if (other.getVirtualCpuCount() != 0) { + setVirtualCpuCount(other.getVirtualCpuCount()); + } + if (other.getTotalCoreCount() != 0) { + setTotalCoreCount(other.getTotalCoreCount()); + } + if (other.getMemoryGb() != 0) { + setMemoryGb(other.getMemoryGb()); + } + if (other.getDiskSizeGb() != 0) { + setDiskSizeGb(other.getDiskSizeGb()); + } + if (!other.availableCustomCoreCounts_.isEmpty()) { + if (availableCustomCoreCounts_.isEmpty()) { + availableCustomCoreCounts_ = other.availableCustomCoreCounts_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAvailableCustomCoreCountsIsMutable(); + availableCustomCoreCounts_.addAll(other.availableCustomCoreCounts_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + nodeTypeId_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + displayName_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 32: + { + virtualCpuCount_ = input.readInt32(); + + break; + } // case 32 + case 40: + { + totalCoreCount_ = input.readInt32(); + + break; + } // case 40 + case 56: + { + memoryGb_ = input.readInt32(); + + break; + } // case 56 + case 64: + { + diskSizeGb_ = input.readInt32(); + + break; + } // case 64 + case 88: + { + int v = input.readInt32(); + ensureAvailableCustomCoreCountsIsMutable(); + availableCustomCoreCounts_.addInt(v); + break; + } // case 88 + case 90: + { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureAvailableCustomCoreCountsIsMutable(); + while (input.getBytesUntilLimit() > 0) { + availableCustomCoreCounts_.addInt(input.readInt32()); + } + input.popLimit(limit); + break; + } // case 90 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Output only. The resource name of this node type.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-proj/locations/us-west1-a/nodeTypes/standard-72`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The resource name of this node type.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-proj/locations/us-west1-a/nodeTypes/standard-72`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The resource name of this node type.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-proj/locations/us-west1-a/nodeTypes/standard-72`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The resource name of this node type.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-proj/locations/us-west1-a/nodeTypes/standard-72`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The resource name of this node type.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-proj/locations/us-west1-a/nodeTypes/standard-72`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.lang.Object nodeTypeId_ = ""; + /** + * + * + *
+     * Output only. The canonical identifier of the node type
+     * (corresponds to the `NodeType`). For example: standard-72.
+     * 
+ * + * string node_type_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The nodeTypeId. + */ + public java.lang.String getNodeTypeId() { + java.lang.Object ref = nodeTypeId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nodeTypeId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The canonical identifier of the node type
+     * (corresponds to the `NodeType`). For example: standard-72.
+     * 
+ * + * string node_type_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for nodeTypeId. + */ + public com.google.protobuf.ByteString getNodeTypeIdBytes() { + java.lang.Object ref = nodeTypeId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nodeTypeId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The canonical identifier of the node type
+     * (corresponds to the `NodeType`). For example: standard-72.
+     * 
+ * + * string node_type_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The nodeTypeId to set. + * @return This builder for chaining. + */ + public Builder setNodeTypeId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nodeTypeId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The canonical identifier of the node type
+     * (corresponds to the `NodeType`). For example: standard-72.
+     * 
+ * + * string node_type_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearNodeTypeId() { + + nodeTypeId_ = getDefaultInstance().getNodeTypeId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The canonical identifier of the node type
+     * (corresponds to the `NodeType`). For example: standard-72.
+     * 
+ * + * string node_type_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for nodeTypeId to set. + * @return This builder for chaining. + */ + public Builder setNodeTypeIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nodeTypeId_ = value; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + /** + * + * + *
+     * Output only. The friendly name for this node type.
+     * For example: ve1-standard-72
+     * 
+ * + * string display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The friendly name for this node type.
+     * For example: ve1-standard-72
+     * 
+ * + * string display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The friendly name for this node type.
+     * For example: ve1-standard-72
+     * 
+ * + * string display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + displayName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The friendly name for this node type.
+     * For example: ve1-standard-72
+     * 
+ * + * string display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + + displayName_ = getDefaultInstance().getDisplayName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The friendly name for this node type.
+     * For example: ve1-standard-72
+     * 
+ * + * string display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + displayName_ = value; + onChanged(); + return this; + } + + private int virtualCpuCount_; + /** + * + * + *
+     * Output only. The total number of virtual CPUs in a single node.
+     * 
+ * + * int32 virtual_cpu_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The virtualCpuCount. + */ + @java.lang.Override + public int getVirtualCpuCount() { + return virtualCpuCount_; + } + /** + * + * + *
+     * Output only. The total number of virtual CPUs in a single node.
+     * 
+ * + * int32 virtual_cpu_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The virtualCpuCount to set. + * @return This builder for chaining. + */ + public Builder setVirtualCpuCount(int value) { + + virtualCpuCount_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The total number of virtual CPUs in a single node.
+     * 
+ * + * int32 virtual_cpu_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearVirtualCpuCount() { + + virtualCpuCount_ = 0; + onChanged(); + return this; + } + + private int totalCoreCount_; + /** + * + * + *
+     * Output only. The total number of CPU cores in a single node.
+     * 
+ * + * int32 total_core_count = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The totalCoreCount. + */ + @java.lang.Override + public int getTotalCoreCount() { + return totalCoreCount_; + } + /** + * + * + *
+     * Output only. The total number of CPU cores in a single node.
+     * 
+ * + * int32 total_core_count = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The totalCoreCount to set. + * @return This builder for chaining. + */ + public Builder setTotalCoreCount(int value) { + + totalCoreCount_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The total number of CPU cores in a single node.
+     * 
+ * + * int32 total_core_count = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearTotalCoreCount() { + + totalCoreCount_ = 0; + onChanged(); + return this; + } + + private int memoryGb_; + /** + * + * + *
+     * Output only. The amount of physical memory available, defined in GB.
+     * 
+ * + * int32 memory_gb = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The memoryGb. + */ + @java.lang.Override + public int getMemoryGb() { + return memoryGb_; + } + /** + * + * + *
+     * Output only. The amount of physical memory available, defined in GB.
+     * 
+ * + * int32 memory_gb = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The memoryGb to set. + * @return This builder for chaining. + */ + public Builder setMemoryGb(int value) { + + memoryGb_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The amount of physical memory available, defined in GB.
+     * 
+ * + * int32 memory_gb = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearMemoryGb() { + + memoryGb_ = 0; + onChanged(); + return this; + } + + private int diskSizeGb_; + /** + * + * + *
+     * Output only. The amount of storage available, defined in GB.
+     * 
+ * + * int32 disk_size_gb = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The diskSizeGb. + */ + @java.lang.Override + public int getDiskSizeGb() { + return diskSizeGb_; + } + /** + * + * + *
+     * Output only. The amount of storage available, defined in GB.
+     * 
+ * + * int32 disk_size_gb = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The diskSizeGb to set. + * @return This builder for chaining. + */ + public Builder setDiskSizeGb(int value) { + + diskSizeGb_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The amount of storage available, defined in GB.
+     * 
+ * + * int32 disk_size_gb = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearDiskSizeGb() { + + diskSizeGb_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.Internal.IntList availableCustomCoreCounts_ = emptyIntList(); + + private void ensureAvailableCustomCoreCountsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + availableCustomCoreCounts_ = mutableCopy(availableCustomCoreCounts_); + bitField0_ |= 0x00000001; + } + } + /** + * + * + *
+     * Output only. List of possible values of custom core count.
+     * 
+ * + * + * repeated int32 available_custom_core_counts = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the availableCustomCoreCounts. + */ + public java.util.List getAvailableCustomCoreCountsList() { + return ((bitField0_ & 0x00000001) != 0) + ? java.util.Collections.unmodifiableList(availableCustomCoreCounts_) + : availableCustomCoreCounts_; + } + /** + * + * + *
+     * Output only. List of possible values of custom core count.
+     * 
+ * + * + * repeated int32 available_custom_core_counts = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of availableCustomCoreCounts. + */ + public int getAvailableCustomCoreCountsCount() { + return availableCustomCoreCounts_.size(); + } + /** + * + * + *
+     * Output only. List of possible values of custom core count.
+     * 
+ * + * + * repeated int32 available_custom_core_counts = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The availableCustomCoreCounts at the given index. + */ + public int getAvailableCustomCoreCounts(int index) { + return availableCustomCoreCounts_.getInt(index); + } + /** + * + * + *
+     * Output only. List of possible values of custom core count.
+     * 
+ * + * + * repeated int32 available_custom_core_counts = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index to set the value at. + * @param value The availableCustomCoreCounts to set. + * @return This builder for chaining. + */ + public Builder setAvailableCustomCoreCounts(int index, int value) { + ensureAvailableCustomCoreCountsIsMutable(); + availableCustomCoreCounts_.setInt(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. List of possible values of custom core count.
+     * 
+ * + * + * repeated int32 available_custom_core_counts = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The availableCustomCoreCounts to add. + * @return This builder for chaining. + */ + public Builder addAvailableCustomCoreCounts(int value) { + ensureAvailableCustomCoreCountsIsMutable(); + availableCustomCoreCounts_.addInt(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. List of possible values of custom core count.
+     * 
+ * + * + * repeated int32 available_custom_core_counts = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param values The availableCustomCoreCounts to add. + * @return This builder for chaining. + */ + public Builder addAllAvailableCustomCoreCounts( + java.lang.Iterable values) { + ensureAvailableCustomCoreCountsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, availableCustomCoreCounts_); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. List of possible values of custom core count.
+     * 
+ * + * + * repeated int32 available_custom_core_counts = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearAvailableCustomCoreCounts() { + availableCustomCoreCounts_ = emptyIntList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.vmwareengine.v1.NodeType) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmwareengine.v1.NodeType) + private static final com.google.cloud.vmwareengine.v1.NodeType DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmwareengine.v1.NodeType(); + } + + public static com.google.cloud.vmwareengine.v1.NodeType getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NodeType 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.vmwareengine.v1.NodeType getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/NodeTypeConfig.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/NodeTypeConfig.java new file mode 100644 index 000000000000..4bd14b56e463 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/NodeTypeConfig.java @@ -0,0 +1,630 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmwareengine/v1/vmwareengine.proto + +package com.google.cloud.vmwareengine.v1; + +/** + * + * + *
+ * Information about the type and number of nodes associated with the cluster.
+ * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.NodeTypeConfig} + */ +public final class NodeTypeConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmwareengine.v1.NodeTypeConfig) + NodeTypeConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use NodeTypeConfig.newBuilder() to construct. + private NodeTypeConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private NodeTypeConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new NodeTypeConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_NodeTypeConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_NodeTypeConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.NodeTypeConfig.class, + com.google.cloud.vmwareengine.v1.NodeTypeConfig.Builder.class); + } + + public static final int NODE_COUNT_FIELD_NUMBER = 1; + private int nodeCount_; + /** + * + * + *
+   * Required. The number of nodes of this type in the cluster
+   * 
+ * + * int32 node_count = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The nodeCount. + */ + @java.lang.Override + public int getNodeCount() { + return nodeCount_; + } + + public static final int CUSTOM_CORE_COUNT_FIELD_NUMBER = 2; + private int customCoreCount_; + /** + * + * + *
+   * Optional. Customized number of cores available to each node of the type.
+   * This number must always be one of `nodeType.availableCustomCoreCounts`.
+   * If zero is provided max value from `nodeType.availableCustomCoreCounts`
+   * will be used.
+   * 
+ * + * int32 custom_core_count = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The customCoreCount. + */ + @java.lang.Override + public int getCustomCoreCount() { + return customCoreCount_; + } + + 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 (nodeCount_ != 0) { + output.writeInt32(1, nodeCount_); + } + if (customCoreCount_ != 0) { + output.writeInt32(2, customCoreCount_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (nodeCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, nodeCount_); + } + if (customCoreCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, customCoreCount_); + } + 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.vmwareengine.v1.NodeTypeConfig)) { + return super.equals(obj); + } + com.google.cloud.vmwareengine.v1.NodeTypeConfig other = + (com.google.cloud.vmwareengine.v1.NodeTypeConfig) obj; + + if (getNodeCount() != other.getNodeCount()) return false; + if (getCustomCoreCount() != other.getCustomCoreCount()) 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) + NODE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getNodeCount(); + hash = (37 * hash) + CUSTOM_CORE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getCustomCoreCount(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmwareengine.v1.NodeTypeConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.NodeTypeConfig 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.vmwareengine.v1.NodeTypeConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.NodeTypeConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.NodeTypeConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.NodeTypeConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.NodeTypeConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.NodeTypeConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.NodeTypeConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.NodeTypeConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.NodeTypeConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.NodeTypeConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.vmwareengine.v1.NodeTypeConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Information about the type and number of nodes associated with the cluster.
+   * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.NodeTypeConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmwareengine.v1.NodeTypeConfig) + com.google.cloud.vmwareengine.v1.NodeTypeConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_NodeTypeConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_NodeTypeConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.NodeTypeConfig.class, + com.google.cloud.vmwareengine.v1.NodeTypeConfig.Builder.class); + } + + // Construct using com.google.cloud.vmwareengine.v1.NodeTypeConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + nodeCount_ = 0; + + customCoreCount_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_NodeTypeConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.NodeTypeConfig getDefaultInstanceForType() { + return com.google.cloud.vmwareengine.v1.NodeTypeConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.NodeTypeConfig build() { + com.google.cloud.vmwareengine.v1.NodeTypeConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.NodeTypeConfig buildPartial() { + com.google.cloud.vmwareengine.v1.NodeTypeConfig result = + new com.google.cloud.vmwareengine.v1.NodeTypeConfig(this); + result.nodeCount_ = nodeCount_; + result.customCoreCount_ = customCoreCount_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.vmwareengine.v1.NodeTypeConfig) { + return mergeFrom((com.google.cloud.vmwareengine.v1.NodeTypeConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmwareengine.v1.NodeTypeConfig other) { + if (other == com.google.cloud.vmwareengine.v1.NodeTypeConfig.getDefaultInstance()) + return this; + if (other.getNodeCount() != 0) { + setNodeCount(other.getNodeCount()); + } + if (other.getCustomCoreCount() != 0) { + setCustomCoreCount(other.getCustomCoreCount()); + } + 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: + { + nodeCount_ = input.readInt32(); + + break; + } // case 8 + case 16: + { + customCoreCount_ = input.readInt32(); + + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int nodeCount_; + /** + * + * + *
+     * Required. The number of nodes of this type in the cluster
+     * 
+ * + * int32 node_count = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The nodeCount. + */ + @java.lang.Override + public int getNodeCount() { + return nodeCount_; + } + /** + * + * + *
+     * Required. The number of nodes of this type in the cluster
+     * 
+ * + * int32 node_count = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The nodeCount to set. + * @return This builder for chaining. + */ + public Builder setNodeCount(int value) { + + nodeCount_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The number of nodes of this type in the cluster
+     * 
+ * + * int32 node_count = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearNodeCount() { + + nodeCount_ = 0; + onChanged(); + return this; + } + + private int customCoreCount_; + /** + * + * + *
+     * Optional. Customized number of cores available to each node of the type.
+     * This number must always be one of `nodeType.availableCustomCoreCounts`.
+     * If zero is provided max value from `nodeType.availableCustomCoreCounts`
+     * will be used.
+     * 
+ * + * int32 custom_core_count = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The customCoreCount. + */ + @java.lang.Override + public int getCustomCoreCount() { + return customCoreCount_; + } + /** + * + * + *
+     * Optional. Customized number of cores available to each node of the type.
+     * This number must always be one of `nodeType.availableCustomCoreCounts`.
+     * If zero is provided max value from `nodeType.availableCustomCoreCounts`
+     * will be used.
+     * 
+ * + * int32 custom_core_count = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The customCoreCount to set. + * @return This builder for chaining. + */ + public Builder setCustomCoreCount(int value) { + + customCoreCount_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Customized number of cores available to each node of the type.
+     * This number must always be one of `nodeType.availableCustomCoreCounts`.
+     * If zero is provided max value from `nodeType.availableCustomCoreCounts`
+     * will be used.
+     * 
+ * + * int32 custom_core_count = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearCustomCoreCount() { + + customCoreCount_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.vmwareengine.v1.NodeTypeConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmwareengine.v1.NodeTypeConfig) + private static final com.google.cloud.vmwareengine.v1.NodeTypeConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmwareengine.v1.NodeTypeConfig(); + } + + public static com.google.cloud.vmwareengine.v1.NodeTypeConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NodeTypeConfig 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.vmwareengine.v1.NodeTypeConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/NodeTypeConfigOrBuilder.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/NodeTypeConfigOrBuilder.java new file mode 100644 index 000000000000..6ae22c9308ac --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/NodeTypeConfigOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmwareengine/v1/vmwareengine.proto + +package com.google.cloud.vmwareengine.v1; + +public interface NodeTypeConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmwareengine.v1.NodeTypeConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The number of nodes of this type in the cluster
+   * 
+ * + * int32 node_count = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The nodeCount. + */ + int getNodeCount(); + + /** + * + * + *
+   * Optional. Customized number of cores available to each node of the type.
+   * This number must always be one of `nodeType.availableCustomCoreCounts`.
+   * If zero is provided max value from `nodeType.availableCustomCoreCounts`
+   * will be used.
+   * 
+ * + * int32 custom_core_count = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The customCoreCount. + */ + int getCustomCoreCount(); +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/NodeTypeName.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/NodeTypeName.java new file mode 100644 index 000000000000..479efa21fdf2 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/NodeTypeName.java @@ -0,0 +1,223 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.vmwareengine.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class NodeTypeName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_NODE_TYPE = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/nodeTypes/{node_type}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String nodeType; + + @Deprecated + protected NodeTypeName() { + project = null; + location = null; + nodeType = null; + } + + private NodeTypeName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + nodeType = Preconditions.checkNotNull(builder.getNodeType()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getNodeType() { + return nodeType; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static NodeTypeName of(String project, String location, String nodeType) { + return newBuilder().setProject(project).setLocation(location).setNodeType(nodeType).build(); + } + + public static String format(String project, String location, String nodeType) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setNodeType(nodeType) + .build() + .toString(); + } + + public static NodeTypeName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_NODE_TYPE.validatedMatch( + formattedString, "NodeTypeName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("node_type")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (NodeTypeName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_NODE_TYPE.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (nodeType != null) { + fieldMapBuilder.put("node_type", nodeType); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_NODE_TYPE.instantiate( + "project", project, "location", location, "node_type", nodeType); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null || getClass() == o.getClass()) { + NodeTypeName that = ((NodeTypeName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.nodeType, that.nodeType); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(nodeType); + return h; + } + + /** Builder for projects/{project}/locations/{location}/nodeTypes/{node_type}. */ + public static class Builder { + private String project; + private String location; + private String nodeType; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getNodeType() { + return nodeType; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setNodeType(String nodeType) { + this.nodeType = nodeType; + return this; + } + + private Builder(NodeTypeName nodeTypeName) { + this.project = nodeTypeName.project; + this.location = nodeTypeName.location; + this.nodeType = nodeTypeName.nodeType; + } + + public NodeTypeName build() { + return new NodeTypeName(this); + } + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/NodeTypeOrBuilder.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/NodeTypeOrBuilder.java new file mode 100644 index 000000000000..5dce04483040 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/NodeTypeOrBuilder.java @@ -0,0 +1,208 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmwareengine/v1/vmwareengine.proto + +package com.google.cloud.vmwareengine.v1; + +public interface NodeTypeOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmwareengine.v1.NodeType) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. The resource name of this node type.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-proj/locations/us-west1-a/nodeTypes/standard-72`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Output only. The resource name of this node type.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-proj/locations/us-west1-a/nodeTypes/standard-72`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Output only. The canonical identifier of the node type
+   * (corresponds to the `NodeType`). For example: standard-72.
+   * 
+ * + * string node_type_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The nodeTypeId. + */ + java.lang.String getNodeTypeId(); + /** + * + * + *
+   * Output only. The canonical identifier of the node type
+   * (corresponds to the `NodeType`). For example: standard-72.
+   * 
+ * + * string node_type_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for nodeTypeId. + */ + com.google.protobuf.ByteString getNodeTypeIdBytes(); + + /** + * + * + *
+   * Output only. The friendly name for this node type.
+   * For example: ve1-standard-72
+   * 
+ * + * string display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + /** + * + * + *
+   * Output only. The friendly name for this node type.
+   * For example: ve1-standard-72
+   * 
+ * + * string display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * Output only. The total number of virtual CPUs in a single node.
+   * 
+ * + * int32 virtual_cpu_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The virtualCpuCount. + */ + int getVirtualCpuCount(); + + /** + * + * + *
+   * Output only. The total number of CPU cores in a single node.
+   * 
+ * + * int32 total_core_count = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The totalCoreCount. + */ + int getTotalCoreCount(); + + /** + * + * + *
+   * Output only. The amount of physical memory available, defined in GB.
+   * 
+ * + * int32 memory_gb = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The memoryGb. + */ + int getMemoryGb(); + + /** + * + * + *
+   * Output only. The amount of storage available, defined in GB.
+   * 
+ * + * int32 disk_size_gb = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The diskSizeGb. + */ + int getDiskSizeGb(); + + /** + * + * + *
+   * Output only. List of possible values of custom core count.
+   * 
+ * + * + * repeated int32 available_custom_core_counts = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the availableCustomCoreCounts. + */ + java.util.List getAvailableCustomCoreCountsList(); + /** + * + * + *
+   * Output only. List of possible values of custom core count.
+   * 
+ * + * + * repeated int32 available_custom_core_counts = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of availableCustomCoreCounts. + */ + int getAvailableCustomCoreCountsCount(); + /** + * + * + *
+   * Output only. List of possible values of custom core count.
+   * 
+ * + * + * repeated int32 available_custom_core_counts = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The availableCustomCoreCounts at the given index. + */ + int getAvailableCustomCoreCounts(int index); +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/Nsx.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/Nsx.java new file mode 100644 index 000000000000..9c31304e0832 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/Nsx.java @@ -0,0 +1,1287 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmwareengine/v1/vmwareengine.proto + +package com.google.cloud.vmwareengine.v1; + +/** + * + * + *
+ * Details about a NSX Manager appliance.
+ * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.Nsx} + */ +public final class Nsx extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmwareengine.v1.Nsx) + NsxOrBuilder { + private static final long serialVersionUID = 0L; + // Use Nsx.newBuilder() to construct. + private Nsx(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Nsx() { + internalIp_ = ""; + version_ = ""; + state_ = 0; + fqdn_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Nsx(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_Nsx_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_Nsx_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.Nsx.class, + com.google.cloud.vmwareengine.v1.Nsx.Builder.class); + } + + /** + * + * + *
+   * State of the appliance
+   * 
+ * + * Protobuf enum {@code google.cloud.vmwareengine.v1.Nsx.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Unspecified appliance state. This is the default value.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
+     * The appliance is operational and can be used.
+     * 
+ * + * ACTIVE = 1; + */ + ACTIVE(1), + /** + * + * + *
+     * The appliance is being deployed.
+     * 
+ * + * CREATING = 2; + */ + CREATING(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Unspecified appliance state. This is the default value.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * The appliance is operational and can be used.
+     * 
+ * + * ACTIVE = 1; + */ + public static final int ACTIVE_VALUE = 1; + /** + * + * + *
+     * The appliance is being deployed.
+     * 
+ * + * CREATING = 2; + */ + public static final int CREATING_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 State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return ACTIVE; + case 2: + return CREATING; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.Nsx.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.vmwareengine.v1.Nsx.State) + } + + public static final int INTERNAL_IP_FIELD_NUMBER = 2; + private volatile java.lang.Object internalIp_; + /** + * + * + *
+   * Internal IP address of the appliance.
+   * 
+ * + * string internal_ip = 2; + * + * @return The internalIp. + */ + @java.lang.Override + public java.lang.String getInternalIp() { + java.lang.Object ref = internalIp_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + internalIp_ = s; + return s; + } + } + /** + * + * + *
+   * Internal IP address of the appliance.
+   * 
+ * + * string internal_ip = 2; + * + * @return The bytes for internalIp. + */ + @java.lang.Override + public com.google.protobuf.ByteString getInternalIpBytes() { + java.lang.Object ref = internalIp_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + internalIp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VERSION_FIELD_NUMBER = 4; + private volatile java.lang.Object version_; + /** + * + * + *
+   * Version of the appliance.
+   * 
+ * + * string version = 4; + * + * @return The version. + */ + @java.lang.Override + public java.lang.String getVersion() { + java.lang.Object ref = version_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + version_ = s; + return s; + } + } + /** + * + * + *
+   * Version of the appliance.
+   * 
+ * + * string version = 4; + * + * @return The bytes for version. + */ + @java.lang.Override + public com.google.protobuf.ByteString getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + version_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATE_FIELD_NUMBER = 5; + private int state_; + /** + * + * + *
+   * Output only. The state of the appliance.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.Nsx.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
+   * Output only. The state of the appliance.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.Nsx.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.Nsx.State getState() { + @SuppressWarnings("deprecation") + com.google.cloud.vmwareengine.v1.Nsx.State result = + com.google.cloud.vmwareengine.v1.Nsx.State.valueOf(state_); + return result == null ? com.google.cloud.vmwareengine.v1.Nsx.State.UNRECOGNIZED : result; + } + + public static final int FQDN_FIELD_NUMBER = 6; + private volatile java.lang.Object fqdn_; + /** + * + * + *
+   * Fully qualified domain name of the appliance.
+   * 
+ * + * string fqdn = 6; + * + * @return The fqdn. + */ + @java.lang.Override + public java.lang.String getFqdn() { + java.lang.Object ref = fqdn_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fqdn_ = s; + return s; + } + } + /** + * + * + *
+   * Fully qualified domain name of the appliance.
+   * 
+ * + * string fqdn = 6; + * + * @return The bytes for fqdn. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFqdnBytes() { + java.lang.Object ref = fqdn_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + fqdn_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(internalIp_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, internalIp_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, version_); + } + if (state_ != com.google.cloud.vmwareengine.v1.Nsx.State.STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(5, state_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fqdn_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, fqdn_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(internalIp_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, internalIp_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, version_); + } + if (state_ != com.google.cloud.vmwareengine.v1.Nsx.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, state_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fqdn_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, fqdn_); + } + 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.vmwareengine.v1.Nsx)) { + return super.equals(obj); + } + com.google.cloud.vmwareengine.v1.Nsx other = (com.google.cloud.vmwareengine.v1.Nsx) obj; + + if (!getInternalIp().equals(other.getInternalIp())) return false; + if (!getVersion().equals(other.getVersion())) return false; + if (state_ != other.state_) return false; + if (!getFqdn().equals(other.getFqdn())) 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) + INTERNAL_IP_FIELD_NUMBER; + hash = (53 * hash) + getInternalIp().hashCode(); + hash = (37 * hash) + VERSION_FIELD_NUMBER; + hash = (53 * hash) + getVersion().hashCode(); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (37 * hash) + FQDN_FIELD_NUMBER; + hash = (53 * hash) + getFqdn().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmwareengine.v1.Nsx parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.Nsx 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.vmwareengine.v1.Nsx parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.Nsx parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.Nsx parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.Nsx parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.Nsx parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.Nsx parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.Nsx parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.Nsx parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.Nsx parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.Nsx parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.vmwareengine.v1.Nsx prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Details about a NSX Manager appliance.
+   * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.Nsx} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmwareengine.v1.Nsx) + com.google.cloud.vmwareengine.v1.NsxOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_Nsx_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_Nsx_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.Nsx.class, + com.google.cloud.vmwareengine.v1.Nsx.Builder.class); + } + + // Construct using com.google.cloud.vmwareengine.v1.Nsx.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + internalIp_ = ""; + + version_ = ""; + + state_ = 0; + + fqdn_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_Nsx_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.Nsx getDefaultInstanceForType() { + return com.google.cloud.vmwareengine.v1.Nsx.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.Nsx build() { + com.google.cloud.vmwareengine.v1.Nsx result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.Nsx buildPartial() { + com.google.cloud.vmwareengine.v1.Nsx result = new com.google.cloud.vmwareengine.v1.Nsx(this); + result.internalIp_ = internalIp_; + result.version_ = version_; + result.state_ = state_; + result.fqdn_ = fqdn_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.vmwareengine.v1.Nsx) { + return mergeFrom((com.google.cloud.vmwareengine.v1.Nsx) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmwareengine.v1.Nsx other) { + if (other == com.google.cloud.vmwareengine.v1.Nsx.getDefaultInstance()) return this; + if (!other.getInternalIp().isEmpty()) { + internalIp_ = other.internalIp_; + onChanged(); + } + if (!other.getVersion().isEmpty()) { + version_ = other.version_; + onChanged(); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (!other.getFqdn().isEmpty()) { + fqdn_ = other.fqdn_; + 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 18: + { + internalIp_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 34: + { + version_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 40: + { + state_ = input.readEnum(); + + break; + } // case 40 + case 50: + { + fqdn_ = input.readStringRequireUtf8(); + + break; + } // case 50 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private java.lang.Object internalIp_ = ""; + /** + * + * + *
+     * Internal IP address of the appliance.
+     * 
+ * + * string internal_ip = 2; + * + * @return The internalIp. + */ + public java.lang.String getInternalIp() { + java.lang.Object ref = internalIp_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + internalIp_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Internal IP address of the appliance.
+     * 
+ * + * string internal_ip = 2; + * + * @return The bytes for internalIp. + */ + public com.google.protobuf.ByteString getInternalIpBytes() { + java.lang.Object ref = internalIp_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + internalIp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Internal IP address of the appliance.
+     * 
+ * + * string internal_ip = 2; + * + * @param value The internalIp to set. + * @return This builder for chaining. + */ + public Builder setInternalIp(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + internalIp_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Internal IP address of the appliance.
+     * 
+ * + * string internal_ip = 2; + * + * @return This builder for chaining. + */ + public Builder clearInternalIp() { + + internalIp_ = getDefaultInstance().getInternalIp(); + onChanged(); + return this; + } + /** + * + * + *
+     * Internal IP address of the appliance.
+     * 
+ * + * string internal_ip = 2; + * + * @param value The bytes for internalIp to set. + * @return This builder for chaining. + */ + public Builder setInternalIpBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + internalIp_ = value; + onChanged(); + return this; + } + + private java.lang.Object version_ = ""; + /** + * + * + *
+     * Version of the appliance.
+     * 
+ * + * string version = 4; + * + * @return The version. + */ + public java.lang.String getVersion() { + java.lang.Object ref = version_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + version_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Version of the appliance.
+     * 
+ * + * string version = 4; + * + * @return The bytes for version. + */ + public com.google.protobuf.ByteString getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + version_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Version of the appliance.
+     * 
+ * + * string version = 4; + * + * @param value The version to set. + * @return This builder for chaining. + */ + public Builder setVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + version_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Version of the appliance.
+     * 
+ * + * string version = 4; + * + * @return This builder for chaining. + */ + public Builder clearVersion() { + + version_ = getDefaultInstance().getVersion(); + onChanged(); + return this; + } + /** + * + * + *
+     * Version of the appliance.
+     * 
+ * + * string version = 4; + * + * @param value The bytes for version to set. + * @return This builder for chaining. + */ + public Builder setVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + version_ = value; + onChanged(); + return this; + } + + private int state_ = 0; + /** + * + * + *
+     * Output only. The state of the appliance.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.Nsx.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
+     * Output only. The state of the appliance.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.Nsx.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + + state_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The state of the appliance.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.Nsx.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.Nsx.State getState() { + @SuppressWarnings("deprecation") + com.google.cloud.vmwareengine.v1.Nsx.State result = + com.google.cloud.vmwareengine.v1.Nsx.State.valueOf(state_); + return result == null ? com.google.cloud.vmwareengine.v1.Nsx.State.UNRECOGNIZED : result; + } + /** + * + * + *
+     * Output only. The state of the appliance.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.Nsx.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.vmwareengine.v1.Nsx.State value) { + if (value == null) { + throw new NullPointerException(); + } + + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The state of the appliance.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.Nsx.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + + state_ = 0; + onChanged(); + return this; + } + + private java.lang.Object fqdn_ = ""; + /** + * + * + *
+     * Fully qualified domain name of the appliance.
+     * 
+ * + * string fqdn = 6; + * + * @return The fqdn. + */ + public java.lang.String getFqdn() { + java.lang.Object ref = fqdn_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fqdn_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Fully qualified domain name of the appliance.
+     * 
+ * + * string fqdn = 6; + * + * @return The bytes for fqdn. + */ + public com.google.protobuf.ByteString getFqdnBytes() { + java.lang.Object ref = fqdn_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + fqdn_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Fully qualified domain name of the appliance.
+     * 
+ * + * string fqdn = 6; + * + * @param value The fqdn to set. + * @return This builder for chaining. + */ + public Builder setFqdn(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + fqdn_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Fully qualified domain name of the appliance.
+     * 
+ * + * string fqdn = 6; + * + * @return This builder for chaining. + */ + public Builder clearFqdn() { + + fqdn_ = getDefaultInstance().getFqdn(); + onChanged(); + return this; + } + /** + * + * + *
+     * Fully qualified domain name of the appliance.
+     * 
+ * + * string fqdn = 6; + * + * @param value The bytes for fqdn to set. + * @return This builder for chaining. + */ + public Builder setFqdnBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + fqdn_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.vmwareengine.v1.Nsx) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmwareengine.v1.Nsx) + private static final com.google.cloud.vmwareengine.v1.Nsx DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmwareengine.v1.Nsx(); + } + + public static com.google.cloud.vmwareengine.v1.Nsx getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Nsx 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.vmwareengine.v1.Nsx getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/NsxOrBuilder.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/NsxOrBuilder.java new file mode 100644 index 000000000000..4d5bf29e89b3 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/NsxOrBuilder.java @@ -0,0 +1,129 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmwareengine/v1/vmwareengine.proto + +package com.google.cloud.vmwareengine.v1; + +public interface NsxOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmwareengine.v1.Nsx) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Internal IP address of the appliance.
+   * 
+ * + * string internal_ip = 2; + * + * @return The internalIp. + */ + java.lang.String getInternalIp(); + /** + * + * + *
+   * Internal IP address of the appliance.
+   * 
+ * + * string internal_ip = 2; + * + * @return The bytes for internalIp. + */ + com.google.protobuf.ByteString getInternalIpBytes(); + + /** + * + * + *
+   * Version of the appliance.
+   * 
+ * + * string version = 4; + * + * @return The version. + */ + java.lang.String getVersion(); + /** + * + * + *
+   * Version of the appliance.
+   * 
+ * + * string version = 4; + * + * @return The bytes for version. + */ + com.google.protobuf.ByteString getVersionBytes(); + + /** + * + * + *
+   * Output only. The state of the appliance.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.Nsx.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + /** + * + * + *
+   * Output only. The state of the appliance.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.Nsx.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.vmwareengine.v1.Nsx.State getState(); + + /** + * + * + *
+   * Fully qualified domain name of the appliance.
+   * 
+ * + * string fqdn = 6; + * + * @return The fqdn. + */ + java.lang.String getFqdn(); + /** + * + * + *
+   * Fully qualified domain name of the appliance.
+   * 
+ * + * string fqdn = 6; + * + * @return The bytes for fqdn. + */ + com.google.protobuf.ByteString getFqdnBytes(); +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/OperationMetadata.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/OperationMetadata.java new file mode 100644 index 000000000000..c67b5aff38d8 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/OperationMetadata.java @@ -0,0 +1,1811 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmwareengine/v1/vmwareengine.proto + +package com.google.cloud.vmwareengine.v1; + +/** + * + * + *
+ * Represents the metadata of the long-running operation.
+ * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.OperationMetadata} + */ +public final class OperationMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmwareengine.v1.OperationMetadata) + OperationMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use OperationMetadata.newBuilder() to construct. + private OperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private OperationMetadata() { + target_ = ""; + verb_ = ""; + statusMessage_ = ""; + apiVersion_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new OperationMetadata(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_OperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_OperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.OperationMetadata.class, + com.google.cloud.vmwareengine.v1.OperationMetadata.Builder.class); + } + + public static final int CREATE_TIME_FIELD_NUMBER = 1; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
+   * Output only. The time the operation was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return createTime_ != null; + } + /** + * + * + *
+   * Output only. The time the operation was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + /** + * + * + *
+   * Output only. The time the operation was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return getCreateTime(); + } + + public static final int END_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp endTime_; + /** + * + * + *
+   * Output only. The time the operation finished running.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + @java.lang.Override + public boolean hasEndTime() { + return endTime_ != null; + } + /** + * + * + *
+   * Output only. The time the operation finished running.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The endTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getEndTime() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + /** + * + * + *
+   * Output only. The time the operation finished running.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + return getEndTime(); + } + + public static final int TARGET_FIELD_NUMBER = 3; + private volatile java.lang.Object target_; + /** + * + * + *
+   * Output only. Server-defined resource path for the target of the operation.
+   * 
+ * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The target. + */ + @java.lang.Override + public java.lang.String getTarget() { + java.lang.Object ref = target_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + target_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Server-defined resource path for the target of the operation.
+   * 
+ * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for target. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTargetBytes() { + java.lang.Object ref = target_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + target_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VERB_FIELD_NUMBER = 4; + private volatile java.lang.Object verb_; + /** + * + * + *
+   * Output only. Name of the verb executed by the operation.
+   * 
+ * + * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The verb. + */ + @java.lang.Override + public java.lang.String getVerb() { + java.lang.Object ref = verb_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + verb_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Name of the verb executed by the operation.
+   * 
+ * + * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for verb. + */ + @java.lang.Override + public com.google.protobuf.ByteString getVerbBytes() { + java.lang.Object ref = verb_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + verb_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATUS_MESSAGE_FIELD_NUMBER = 5; + private volatile java.lang.Object statusMessage_; + /** + * + * + *
+   * Output only. Human-readable status of the operation, if any.
+   * 
+ * + * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The statusMessage. + */ + @java.lang.Override + public java.lang.String getStatusMessage() { + java.lang.Object ref = statusMessage_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + statusMessage_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Human-readable status of the operation, if any.
+   * 
+ * + * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for statusMessage. + */ + @java.lang.Override + public com.google.protobuf.ByteString getStatusMessageBytes() { + java.lang.Object ref = statusMessage_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + statusMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REQUESTED_CANCELLATION_FIELD_NUMBER = 6; + private boolean requestedCancellation_; + /** + * + * + *
+   * Output only. True if the user has requested cancellation
+   * of the operation; false otherwise.
+   * Operations that have successfully been cancelled
+   * have [Operation.error][] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
+   * corresponding to `Code.CANCELLED`.
+   * 
+ * + * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The requestedCancellation. + */ + @java.lang.Override + public boolean getRequestedCancellation() { + return requestedCancellation_; + } + + public static final int API_VERSION_FIELD_NUMBER = 7; + private volatile java.lang.Object apiVersion_; + /** + * + * + *
+   * Output only. API version used to start the operation.
+   * 
+ * + * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The apiVersion. + */ + @java.lang.Override + public java.lang.String getApiVersion() { + java.lang.Object ref = apiVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + apiVersion_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. API version used to start the operation.
+   * 
+ * + * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for apiVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getApiVersionBytes() { + java.lang.Object ref = apiVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + apiVersion_ = 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 (createTime_ != null) { + output.writeMessage(1, getCreateTime()); + } + if (endTime_ != null) { + output.writeMessage(2, getEndTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, target_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(verb_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, verb_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(statusMessage_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, statusMessage_); + } + if (requestedCancellation_ != false) { + output.writeBool(6, requestedCancellation_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(apiVersion_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, apiVersion_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (createTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime()); + } + if (endTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, target_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(verb_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, verb_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(statusMessage_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, statusMessage_); + } + if (requestedCancellation_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, requestedCancellation_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(apiVersion_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, apiVersion_); + } + 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.vmwareengine.v1.OperationMetadata)) { + return super.equals(obj); + } + com.google.cloud.vmwareengine.v1.OperationMetadata other = + (com.google.cloud.vmwareengine.v1.OperationMetadata) obj; + + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasEndTime() != other.hasEndTime()) return false; + if (hasEndTime()) { + if (!getEndTime().equals(other.getEndTime())) return false; + } + if (!getTarget().equals(other.getTarget())) return false; + if (!getVerb().equals(other.getVerb())) return false; + if (!getStatusMessage().equals(other.getStatusMessage())) return false; + if (getRequestedCancellation() != other.getRequestedCancellation()) return false; + if (!getApiVersion().equals(other.getApiVersion())) 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 (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasEndTime()) { + hash = (37 * hash) + END_TIME_FIELD_NUMBER; + hash = (53 * hash) + getEndTime().hashCode(); + } + hash = (37 * hash) + TARGET_FIELD_NUMBER; + hash = (53 * hash) + getTarget().hashCode(); + hash = (37 * hash) + VERB_FIELD_NUMBER; + hash = (53 * hash) + getVerb().hashCode(); + hash = (37 * hash) + STATUS_MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getStatusMessage().hashCode(); + hash = (37 * hash) + REQUESTED_CANCELLATION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRequestedCancellation()); + hash = (37 * hash) + API_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getApiVersion().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmwareengine.v1.OperationMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.OperationMetadata 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.vmwareengine.v1.OperationMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.OperationMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.OperationMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.OperationMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.OperationMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.OperationMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.OperationMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.OperationMetadata parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.OperationMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.OperationMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.vmwareengine.v1.OperationMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Represents the metadata of the long-running operation.
+   * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.OperationMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmwareengine.v1.OperationMetadata) + com.google.cloud.vmwareengine.v1.OperationMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_OperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_OperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.OperationMetadata.class, + com.google.cloud.vmwareengine.v1.OperationMetadata.Builder.class); + } + + // Construct using com.google.cloud.vmwareengine.v1.OperationMetadata.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (createTimeBuilder_ == null) { + createTime_ = null; + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + if (endTimeBuilder_ == null) { + endTime_ = null; + } else { + endTime_ = null; + endTimeBuilder_ = null; + } + target_ = ""; + + verb_ = ""; + + statusMessage_ = ""; + + requestedCancellation_ = false; + + apiVersion_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_OperationMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.OperationMetadata getDefaultInstanceForType() { + return com.google.cloud.vmwareengine.v1.OperationMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.OperationMetadata build() { + com.google.cloud.vmwareengine.v1.OperationMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.OperationMetadata buildPartial() { + com.google.cloud.vmwareengine.v1.OperationMetadata result = + new com.google.cloud.vmwareengine.v1.OperationMetadata(this); + if (createTimeBuilder_ == null) { + result.createTime_ = createTime_; + } else { + result.createTime_ = createTimeBuilder_.build(); + } + if (endTimeBuilder_ == null) { + result.endTime_ = endTime_; + } else { + result.endTime_ = endTimeBuilder_.build(); + } + result.target_ = target_; + result.verb_ = verb_; + result.statusMessage_ = statusMessage_; + result.requestedCancellation_ = requestedCancellation_; + result.apiVersion_ = apiVersion_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.vmwareengine.v1.OperationMetadata) { + return mergeFrom((com.google.cloud.vmwareengine.v1.OperationMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmwareengine.v1.OperationMetadata other) { + if (other == com.google.cloud.vmwareengine.v1.OperationMetadata.getDefaultInstance()) + return this; + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasEndTime()) { + mergeEndTime(other.getEndTime()); + } + if (!other.getTarget().isEmpty()) { + target_ = other.target_; + onChanged(); + } + if (!other.getVerb().isEmpty()) { + verb_ = other.verb_; + onChanged(); + } + if (!other.getStatusMessage().isEmpty()) { + statusMessage_ = other.statusMessage_; + onChanged(); + } + if (other.getRequestedCancellation() != false) { + setRequestedCancellation(other.getRequestedCancellation()); + } + if (!other.getApiVersion().isEmpty()) { + apiVersion_ = other.apiVersion_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 10 + case 18: + { + input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + case 26: + { + target_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: + { + verb_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 42: + { + statusMessage_ = input.readStringRequireUtf8(); + + break; + } // case 42 + case 48: + { + requestedCancellation_ = input.readBool(); + + break; + } // case 48 + case 58: + { + apiVersion_ = input.readStringRequireUtf8(); + + break; + } // case 58 + 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 com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + /** + * + * + *
+     * Output only. The time the operation was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return createTimeBuilder_ != null || createTime_ != null; + } + /** + * + * + *
+     * Output only. The time the operation was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. The time the operation was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + onChanged(); + } else { + createTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. The time the operation was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + onChanged(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. The time the operation was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (createTime_ != null) { + createTime_ = + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + } else { + createTime_ = value; + } + onChanged(); + } else { + createTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. The time the operation was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + if (createTimeBuilder_ == null) { + createTime_ = null; + onChanged(); + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. The time the operation was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. The time the operation was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + /** + * + * + *
+     * Output only. The time the operation was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp endTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; + /** + * + * + *
+     * Output only. The time the operation finished running.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + public boolean hasEndTime() { + return endTimeBuilder_ != null || endTime_ != null; + } + /** + * + * + *
+     * Output only. The time the operation finished running.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The endTime. + */ + public com.google.protobuf.Timestamp getEndTime() { + if (endTimeBuilder_ == null) { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } else { + return endTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. The time the operation finished running.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endTime_ = value; + onChanged(); + } else { + endTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. The time the operation finished running.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (endTimeBuilder_ == null) { + endTime_ = builderForValue.build(); + onChanged(); + } else { + endTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. The time the operation finished running.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (endTime_ != null) { + endTime_ = + com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); + } else { + endTime_ = value; + } + onChanged(); + } else { + endTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. The time the operation finished running.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearEndTime() { + if (endTimeBuilder_ == null) { + endTime_ = null; + onChanged(); + } else { + endTime_ = null; + endTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. The time the operation finished running.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { + + onChanged(); + return getEndTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. The time the operation finished running.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + if (endTimeBuilder_ != null) { + return endTimeBuilder_.getMessageOrBuilder(); + } else { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + } + /** + * + * + *
+     * Output only. The time the operation finished running.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getEndTimeFieldBuilder() { + if (endTimeBuilder_ == null) { + endTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEndTime(), getParentForChildren(), isClean()); + endTime_ = null; + } + return endTimeBuilder_; + } + + private java.lang.Object target_ = ""; + /** + * + * + *
+     * Output only. Server-defined resource path for the target of the operation.
+     * 
+ * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The target. + */ + public java.lang.String getTarget() { + java.lang.Object ref = target_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + target_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Server-defined resource path for the target of the operation.
+     * 
+ * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for target. + */ + public com.google.protobuf.ByteString getTargetBytes() { + java.lang.Object ref = target_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + target_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Server-defined resource path for the target of the operation.
+     * 
+ * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The target to set. + * @return This builder for chaining. + */ + public Builder setTarget(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + target_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Server-defined resource path for the target of the operation.
+     * 
+ * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearTarget() { + + target_ = getDefaultInstance().getTarget(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Server-defined resource path for the target of the operation.
+     * 
+ * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for target to set. + * @return This builder for chaining. + */ + public Builder setTargetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + target_ = value; + onChanged(); + return this; + } + + private java.lang.Object verb_ = ""; + /** + * + * + *
+     * Output only. Name of the verb executed by the operation.
+     * 
+ * + * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The verb. + */ + public java.lang.String getVerb() { + java.lang.Object ref = verb_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + verb_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Name of the verb executed by the operation.
+     * 
+ * + * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for verb. + */ + public com.google.protobuf.ByteString getVerbBytes() { + java.lang.Object ref = verb_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + verb_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Name of the verb executed by the operation.
+     * 
+ * + * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The verb to set. + * @return This builder for chaining. + */ + public Builder setVerb(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + verb_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Name of the verb executed by the operation.
+     * 
+ * + * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearVerb() { + + verb_ = getDefaultInstance().getVerb(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Name of the verb executed by the operation.
+     * 
+ * + * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for verb to set. + * @return This builder for chaining. + */ + public Builder setVerbBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + verb_ = value; + onChanged(); + return this; + } + + private java.lang.Object statusMessage_ = ""; + /** + * + * + *
+     * Output only. Human-readable status of the operation, if any.
+     * 
+ * + * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The statusMessage. + */ + public java.lang.String getStatusMessage() { + java.lang.Object ref = statusMessage_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + statusMessage_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Human-readable status of the operation, if any.
+     * 
+ * + * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for statusMessage. + */ + public com.google.protobuf.ByteString getStatusMessageBytes() { + java.lang.Object ref = statusMessage_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + statusMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Human-readable status of the operation, if any.
+     * 
+ * + * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The statusMessage to set. + * @return This builder for chaining. + */ + public Builder setStatusMessage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + statusMessage_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Human-readable status of the operation, if any.
+     * 
+ * + * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearStatusMessage() { + + statusMessage_ = getDefaultInstance().getStatusMessage(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Human-readable status of the operation, if any.
+     * 
+ * + * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for statusMessage to set. + * @return This builder for chaining. + */ + public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + statusMessage_ = value; + onChanged(); + return this; + } + + private boolean requestedCancellation_; + /** + * + * + *
+     * Output only. True if the user has requested cancellation
+     * of the operation; false otherwise.
+     * Operations that have successfully been cancelled
+     * have [Operation.error][] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
+     * corresponding to `Code.CANCELLED`.
+     * 
+ * + * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The requestedCancellation. + */ + @java.lang.Override + public boolean getRequestedCancellation() { + return requestedCancellation_; + } + /** + * + * + *
+     * Output only. True if the user has requested cancellation
+     * of the operation; false otherwise.
+     * Operations that have successfully been cancelled
+     * have [Operation.error][] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
+     * corresponding to `Code.CANCELLED`.
+     * 
+ * + * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The requestedCancellation to set. + * @return This builder for chaining. + */ + public Builder setRequestedCancellation(boolean value) { + + requestedCancellation_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. True if the user has requested cancellation
+     * of the operation; false otherwise.
+     * Operations that have successfully been cancelled
+     * have [Operation.error][] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
+     * corresponding to `Code.CANCELLED`.
+     * 
+ * + * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearRequestedCancellation() { + + requestedCancellation_ = false; + onChanged(); + return this; + } + + private java.lang.Object apiVersion_ = ""; + /** + * + * + *
+     * Output only. API version used to start the operation.
+     * 
+ * + * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The apiVersion. + */ + public java.lang.String getApiVersion() { + java.lang.Object ref = apiVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + apiVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. API version used to start the operation.
+     * 
+ * + * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for apiVersion. + */ + public com.google.protobuf.ByteString getApiVersionBytes() { + java.lang.Object ref = apiVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + apiVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. API version used to start the operation.
+     * 
+ * + * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The apiVersion to set. + * @return This builder for chaining. + */ + public Builder setApiVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + apiVersion_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. API version used to start the operation.
+     * 
+ * + * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearApiVersion() { + + apiVersion_ = getDefaultInstance().getApiVersion(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. API version used to start the operation.
+     * 
+ * + * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for apiVersion to set. + * @return This builder for chaining. + */ + public Builder setApiVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + apiVersion_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.vmwareengine.v1.OperationMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmwareengine.v1.OperationMetadata) + private static final com.google.cloud.vmwareengine.v1.OperationMetadata DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmwareengine.v1.OperationMetadata(); + } + + public static com.google.cloud.vmwareengine.v1.OperationMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OperationMetadata 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.vmwareengine.v1.OperationMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/OperationMetadataOrBuilder.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/OperationMetadataOrBuilder.java new file mode 100644 index 000000000000..a59415ab9ec5 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/OperationMetadataOrBuilder.java @@ -0,0 +1,218 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmwareengine/v1/vmwareengine.proto + +package com.google.cloud.vmwareengine.v1; + +public interface OperationMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmwareengine.v1.OperationMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. The time the operation was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + * + * + *
+   * Output only. The time the operation was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + * + * + *
+   * Output only. The time the operation was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. The time the operation finished running.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + boolean hasEndTime(); + /** + * + * + *
+   * Output only. The time the operation finished running.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The endTime. + */ + com.google.protobuf.Timestamp getEndTime(); + /** + * + * + *
+   * Output only. The time the operation finished running.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); + + /** + * + * + *
+   * Output only. Server-defined resource path for the target of the operation.
+   * 
+ * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The target. + */ + java.lang.String getTarget(); + /** + * + * + *
+   * Output only. Server-defined resource path for the target of the operation.
+   * 
+ * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for target. + */ + com.google.protobuf.ByteString getTargetBytes(); + + /** + * + * + *
+   * Output only. Name of the verb executed by the operation.
+   * 
+ * + * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The verb. + */ + java.lang.String getVerb(); + /** + * + * + *
+   * Output only. Name of the verb executed by the operation.
+   * 
+ * + * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for verb. + */ + com.google.protobuf.ByteString getVerbBytes(); + + /** + * + * + *
+   * Output only. Human-readable status of the operation, if any.
+   * 
+ * + * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The statusMessage. + */ + java.lang.String getStatusMessage(); + /** + * + * + *
+   * Output only. Human-readable status of the operation, if any.
+   * 
+ * + * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for statusMessage. + */ + com.google.protobuf.ByteString getStatusMessageBytes(); + + /** + * + * + *
+   * Output only. True if the user has requested cancellation
+   * of the operation; false otherwise.
+   * Operations that have successfully been cancelled
+   * have [Operation.error][] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
+   * corresponding to `Code.CANCELLED`.
+   * 
+ * + * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The requestedCancellation. + */ + boolean getRequestedCancellation(); + + /** + * + * + *
+   * Output only. API version used to start the operation.
+   * 
+ * + * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The apiVersion. + */ + java.lang.String getApiVersion(); + /** + * + * + *
+   * Output only. API version used to start the operation.
+   * 
+ * + * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for apiVersion. + */ + com.google.protobuf.ByteString getApiVersionBytes(); +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/PrivateCloud.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/PrivateCloud.java new file mode 100644 index 000000000000..5a3ede1867c7 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/PrivateCloud.java @@ -0,0 +1,5219 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmwareengine/v1/vmwareengine.proto + +package com.google.cloud.vmwareengine.v1; + +/** + * + * + *
+ * Represents a private cloud resource. Private clouds are zonal resources.
+ * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.PrivateCloud} + */ +public final class PrivateCloud extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmwareengine.v1.PrivateCloud) + PrivateCloudOrBuilder { + private static final long serialVersionUID = 0L; + // Use PrivateCloud.newBuilder() to construct. + private PrivateCloud(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PrivateCloud() { + name_ = ""; + state_ = 0; + description_ = ""; + uid_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PrivateCloud(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_PrivateCloud_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_PrivateCloud_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.PrivateCloud.class, + com.google.cloud.vmwareengine.v1.PrivateCloud.Builder.class); + } + + /** + * + * + *
+   * Enum State defines possible states of private clouds.
+   * 
+ * + * Protobuf enum {@code google.cloud.vmwareengine.v1.PrivateCloud.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * The default value. This value should never be used.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
+     * The private cloud is ready.
+     * 
+ * + * ACTIVE = 1; + */ + ACTIVE(1), + /** + * + * + *
+     * The private cloud is being created.
+     * 
+ * + * CREATING = 2; + */ + CREATING(2), + /** + * + * + *
+     * The private cloud is being updated.
+     * 
+ * + * UPDATING = 3; + */ + UPDATING(3), + /** + * + * + *
+     * The private cloud is in failed state.
+     * 
+ * + * FAILED = 5; + */ + FAILED(5), + /** + * + * + *
+     * The private cloud is scheduled for deletion. The deletion process can be
+     * cancelled by using the corresponding undelete method.
+     * 
+ * + * DELETED = 6; + */ + DELETED(6), + /** + * + * + *
+     * The private cloud is irreversibly deleted and is being removed from the
+     * system.
+     * 
+ * + * PURGING = 7; + */ + PURGING(7), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * The default value. This value should never be used.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * The private cloud is ready.
+     * 
+ * + * ACTIVE = 1; + */ + public static final int ACTIVE_VALUE = 1; + /** + * + * + *
+     * The private cloud is being created.
+     * 
+ * + * CREATING = 2; + */ + public static final int CREATING_VALUE = 2; + /** + * + * + *
+     * The private cloud is being updated.
+     * 
+ * + * UPDATING = 3; + */ + public static final int UPDATING_VALUE = 3; + /** + * + * + *
+     * The private cloud is in failed state.
+     * 
+ * + * FAILED = 5; + */ + public static final int FAILED_VALUE = 5; + /** + * + * + *
+     * The private cloud is scheduled for deletion. The deletion process can be
+     * cancelled by using the corresponding undelete method.
+     * 
+ * + * DELETED = 6; + */ + public static final int DELETED_VALUE = 6; + /** + * + * + *
+     * The private cloud is irreversibly deleted and is being removed from the
+     * system.
+     * 
+ * + * PURGING = 7; + */ + public static final int PURGING_VALUE = 7; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return ACTIVE; + case 2: + return CREATING; + case 3: + return UPDATING; + case 5: + return FAILED; + case 6: + return DELETED; + case 7: + return PURGING; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.PrivateCloud.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.vmwareengine.v1.PrivateCloud.State) + } + + public interface ManagementClusterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Required. The user-provided identifier of the new `Cluster`.
+     * The identifier must meet the following requirements:
+     * * Only contains 1-63 alphanumeric characters and hyphens
+     * * Begins with an alphabetical character
+     * * Ends with a non-hyphen character
+     * * Not formatted as a UUID
+     * * Complies with [RFC
+     * 1034](https://datatracker.ietf.org/doc/html/rfc1034) (section 3.5)
+     * 
+ * + * string cluster_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The clusterId. + */ + java.lang.String getClusterId(); + /** + * + * + *
+     * Required. The user-provided identifier of the new `Cluster`.
+     * The identifier must meet the following requirements:
+     * * Only contains 1-63 alphanumeric characters and hyphens
+     * * Begins with an alphabetical character
+     * * Ends with a non-hyphen character
+     * * Not formatted as a UUID
+     * * Complies with [RFC
+     * 1034](https://datatracker.ietf.org/doc/html/rfc1034) (section 3.5)
+     * 
+ * + * string cluster_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for clusterId. + */ + com.google.protobuf.ByteString getClusterIdBytes(); + + /** + * + * + *
+     * Required. The map of cluster node types in this cluster, where the key is canonical
+     * identifier of the node type (corresponds to the `NodeType`).
+     * 
+ * + * + * map<string, .google.cloud.vmwareengine.v1.NodeTypeConfig> node_type_configs = 7 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getNodeTypeConfigsCount(); + /** + * + * + *
+     * Required. The map of cluster node types in this cluster, where the key is canonical
+     * identifier of the node type (corresponds to the `NodeType`).
+     * 
+ * + * + * map<string, .google.cloud.vmwareengine.v1.NodeTypeConfig> node_type_configs = 7 [(.google.api.field_behavior) = REQUIRED]; + * + */ + boolean containsNodeTypeConfigs(java.lang.String key); + /** Use {@link #getNodeTypeConfigsMap()} instead. */ + @java.lang.Deprecated + java.util.Map + getNodeTypeConfigs(); + /** + * + * + *
+     * Required. The map of cluster node types in this cluster, where the key is canonical
+     * identifier of the node type (corresponds to the `NodeType`).
+     * 
+ * + * + * map<string, .google.cloud.vmwareengine.v1.NodeTypeConfig> node_type_configs = 7 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.Map + getNodeTypeConfigsMap(); + /** + * + * + *
+     * Required. The map of cluster node types in this cluster, where the key is canonical
+     * identifier of the node type (corresponds to the `NodeType`).
+     * 
+ * + * + * map<string, .google.cloud.vmwareengine.v1.NodeTypeConfig> node_type_configs = 7 [(.google.api.field_behavior) = REQUIRED]; + * + */ + + /* nullable */ + com.google.cloud.vmwareengine.v1.NodeTypeConfig getNodeTypeConfigsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.vmwareengine.v1.NodeTypeConfig defaultValue); + /** + * + * + *
+     * Required. The map of cluster node types in this cluster, where the key is canonical
+     * identifier of the node type (corresponds to the `NodeType`).
+     * 
+ * + * + * map<string, .google.cloud.vmwareengine.v1.NodeTypeConfig> node_type_configs = 7 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.vmwareengine.v1.NodeTypeConfig getNodeTypeConfigsOrThrow(java.lang.String key); + } + /** + * + * + *
+   * Management cluster configuration.
+   * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster} + */ + public static final class ManagementCluster extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster) + ManagementClusterOrBuilder { + private static final long serialVersionUID = 0L; + // Use ManagementCluster.newBuilder() to construct. + private ManagementCluster(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ManagementCluster() { + clusterId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ManagementCluster(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_PrivateCloud_ManagementCluster_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 7: + return internalGetNodeTypeConfigs(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_PrivateCloud_ManagementCluster_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster.class, + com.google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster.Builder.class); + } + + public static final int CLUSTER_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object clusterId_; + /** + * + * + *
+     * Required. The user-provided identifier of the new `Cluster`.
+     * The identifier must meet the following requirements:
+     * * Only contains 1-63 alphanumeric characters and hyphens
+     * * Begins with an alphabetical character
+     * * Ends with a non-hyphen character
+     * * Not formatted as a UUID
+     * * Complies with [RFC
+     * 1034](https://datatracker.ietf.org/doc/html/rfc1034) (section 3.5)
+     * 
+ * + * string cluster_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The clusterId. + */ + @java.lang.Override + public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } + } + /** + * + * + *
+     * Required. The user-provided identifier of the new `Cluster`.
+     * The identifier must meet the following requirements:
+     * * Only contains 1-63 alphanumeric characters and hyphens
+     * * Begins with an alphabetical character
+     * * Ends with a non-hyphen character
+     * * Not formatted as a UUID
+     * * Complies with [RFC
+     * 1034](https://datatracker.ietf.org/doc/html/rfc1034) (section 3.5)
+     * 
+ * + * string cluster_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for clusterId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NODE_TYPE_CONFIGS_FIELD_NUMBER = 7; + + private static final class NodeTypeConfigsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.vmwareengine.v1.NodeTypeConfig> + defaultEntry = + com.google.protobuf.MapEntry + . + newDefaultInstance( + com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_PrivateCloud_ManagementCluster_NodeTypeConfigsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.vmwareengine.v1.NodeTypeConfig.getDefaultInstance()); + } + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.vmwareengine.v1.NodeTypeConfig> + nodeTypeConfigs_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.vmwareengine.v1.NodeTypeConfig> + internalGetNodeTypeConfigs() { + if (nodeTypeConfigs_ == null) { + return com.google.protobuf.MapField.emptyMapField( + NodeTypeConfigsDefaultEntryHolder.defaultEntry); + } + return nodeTypeConfigs_; + } + + public int getNodeTypeConfigsCount() { + return internalGetNodeTypeConfigs().getMap().size(); + } + /** + * + * + *
+     * Required. The map of cluster node types in this cluster, where the key is canonical
+     * identifier of the node type (corresponds to the `NodeType`).
+     * 
+ * + * + * map<string, .google.cloud.vmwareengine.v1.NodeTypeConfig> node_type_configs = 7 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public boolean containsNodeTypeConfigs(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetNodeTypeConfigs().getMap().containsKey(key); + } + /** Use {@link #getNodeTypeConfigsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map + getNodeTypeConfigs() { + return getNodeTypeConfigsMap(); + } + /** + * + * + *
+     * Required. The map of cluster node types in this cluster, where the key is canonical
+     * identifier of the node type (corresponds to the `NodeType`).
+     * 
+ * + * + * map<string, .google.cloud.vmwareengine.v1.NodeTypeConfig> node_type_configs = 7 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.Map + getNodeTypeConfigsMap() { + return internalGetNodeTypeConfigs().getMap(); + } + /** + * + * + *
+     * Required. The map of cluster node types in this cluster, where the key is canonical
+     * identifier of the node type (corresponds to the `NodeType`).
+     * 
+ * + * + * map<string, .google.cloud.vmwareengine.v1.NodeTypeConfig> node_type_configs = 7 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.NodeTypeConfig getNodeTypeConfigsOrDefault( + java.lang.String key, com.google.cloud.vmwareengine.v1.NodeTypeConfig defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetNodeTypeConfigs().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+     * Required. The map of cluster node types in this cluster, where the key is canonical
+     * identifier of the node type (corresponds to the `NodeType`).
+     * 
+ * + * + * map<string, .google.cloud.vmwareengine.v1.NodeTypeConfig> node_type_configs = 7 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.NodeTypeConfig getNodeTypeConfigsOrThrow( + java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetNodeTypeConfigs().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, clusterId_); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetNodeTypeConfigs(), NodeTypeConfigsDefaultEntryHolder.defaultEntry, 7); + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, clusterId_); + } + for (java.util.Map.Entry + entry : internalGetNodeTypeConfigs().getMap().entrySet()) { + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.vmwareengine.v1.NodeTypeConfig> + nodeTypeConfigs__ = + NodeTypeConfigsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, nodeTypeConfigs__); + } + 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.vmwareengine.v1.PrivateCloud.ManagementCluster)) { + return super.equals(obj); + } + com.google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster other = + (com.google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster) obj; + + if (!getClusterId().equals(other.getClusterId())) return false; + if (!internalGetNodeTypeConfigs().equals(other.internalGetNodeTypeConfigs())) 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) + CLUSTER_ID_FIELD_NUMBER; + hash = (53 * hash) + getClusterId().hashCode(); + if (!internalGetNodeTypeConfigs().getMap().isEmpty()) { + hash = (37 * hash) + NODE_TYPE_CONFIGS_FIELD_NUMBER; + hash = (53 * hash) + internalGetNodeTypeConfigs().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster 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.vmwareengine.v1.PrivateCloud.ManagementCluster parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Management cluster configuration.
+     * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster) + com.google.cloud.vmwareengine.v1.PrivateCloud.ManagementClusterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_PrivateCloud_ManagementCluster_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 7: + return internalGetNodeTypeConfigs(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + switch (number) { + case 7: + return internalGetMutableNodeTypeConfigs(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_PrivateCloud_ManagementCluster_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster.class, + com.google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster.Builder.class); + } + + // Construct using + // com.google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + clusterId_ = ""; + + internalGetMutableNodeTypeConfigs().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_PrivateCloud_ManagementCluster_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster + getDefaultInstanceForType() { + return com.google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster build() { + com.google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster buildPartial() { + com.google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster result = + new com.google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster(this); + int from_bitField0_ = bitField0_; + result.clusterId_ = clusterId_; + result.nodeTypeConfigs_ = internalGetNodeTypeConfigs(); + result.nodeTypeConfigs_.makeImmutable(); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster) { + return mergeFrom((com.google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster other) { + if (other + == com.google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster.getDefaultInstance()) + return this; + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + onChanged(); + } + internalGetMutableNodeTypeConfigs().mergeFrom(other.internalGetNodeTypeConfigs()); + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + clusterId_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 58: + { + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.vmwareengine.v1.NodeTypeConfig> + nodeTypeConfigs__ = + input.readMessage( + NodeTypeConfigsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableNodeTypeConfigs() + .getMutableMap() + .put(nodeTypeConfigs__.getKey(), nodeTypeConfigs__.getValue()); + break; + } // case 58 + 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 clusterId_ = ""; + /** + * + * + *
+       * Required. The user-provided identifier of the new `Cluster`.
+       * The identifier must meet the following requirements:
+       * * Only contains 1-63 alphanumeric characters and hyphens
+       * * Begins with an alphabetical character
+       * * Ends with a non-hyphen character
+       * * Not formatted as a UUID
+       * * Complies with [RFC
+       * 1034](https://datatracker.ietf.org/doc/html/rfc1034) (section 3.5)
+       * 
+ * + * string cluster_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The clusterId. + */ + public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Required. The user-provided identifier of the new `Cluster`.
+       * The identifier must meet the following requirements:
+       * * Only contains 1-63 alphanumeric characters and hyphens
+       * * Begins with an alphabetical character
+       * * Ends with a non-hyphen character
+       * * Not formatted as a UUID
+       * * Complies with [RFC
+       * 1034](https://datatracker.ietf.org/doc/html/rfc1034) (section 3.5)
+       * 
+ * + * string cluster_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for clusterId. + */ + public com.google.protobuf.ByteString getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Required. The user-provided identifier of the new `Cluster`.
+       * The identifier must meet the following requirements:
+       * * Only contains 1-63 alphanumeric characters and hyphens
+       * * Begins with an alphabetical character
+       * * Ends with a non-hyphen character
+       * * Not formatted as a UUID
+       * * Complies with [RFC
+       * 1034](https://datatracker.ietf.org/doc/html/rfc1034) (section 3.5)
+       * 
+ * + * string cluster_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The clusterId to set. + * @return This builder for chaining. + */ + public Builder setClusterId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The user-provided identifier of the new `Cluster`.
+       * The identifier must meet the following requirements:
+       * * Only contains 1-63 alphanumeric characters and hyphens
+       * * Begins with an alphabetical character
+       * * Ends with a non-hyphen character
+       * * Not formatted as a UUID
+       * * Complies with [RFC
+       * 1034](https://datatracker.ietf.org/doc/html/rfc1034) (section 3.5)
+       * 
+ * + * string cluster_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearClusterId() { + + clusterId_ = getDefaultInstance().getClusterId(); + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The user-provided identifier of the new `Cluster`.
+       * The identifier must meet the following requirements:
+       * * Only contains 1-63 alphanumeric characters and hyphens
+       * * Begins with an alphabetical character
+       * * Ends with a non-hyphen character
+       * * Not formatted as a UUID
+       * * Complies with [RFC
+       * 1034](https://datatracker.ietf.org/doc/html/rfc1034) (section 3.5)
+       * 
+ * + * string cluster_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for clusterId to set. + * @return This builder for chaining. + */ + public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterId_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.vmwareengine.v1.NodeTypeConfig> + nodeTypeConfigs_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.vmwareengine.v1.NodeTypeConfig> + internalGetNodeTypeConfigs() { + if (nodeTypeConfigs_ == null) { + return com.google.protobuf.MapField.emptyMapField( + NodeTypeConfigsDefaultEntryHolder.defaultEntry); + } + return nodeTypeConfigs_; + } + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.vmwareengine.v1.NodeTypeConfig> + internalGetMutableNodeTypeConfigs() { + onChanged(); + ; + if (nodeTypeConfigs_ == null) { + nodeTypeConfigs_ = + com.google.protobuf.MapField.newMapField( + NodeTypeConfigsDefaultEntryHolder.defaultEntry); + } + if (!nodeTypeConfigs_.isMutable()) { + nodeTypeConfigs_ = nodeTypeConfigs_.copy(); + } + return nodeTypeConfigs_; + } + + public int getNodeTypeConfigsCount() { + return internalGetNodeTypeConfigs().getMap().size(); + } + /** + * + * + *
+       * Required. The map of cluster node types in this cluster, where the key is canonical
+       * identifier of the node type (corresponds to the `NodeType`).
+       * 
+ * + * + * map<string, .google.cloud.vmwareengine.v1.NodeTypeConfig> node_type_configs = 7 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public boolean containsNodeTypeConfigs(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetNodeTypeConfigs().getMap().containsKey(key); + } + /** Use {@link #getNodeTypeConfigsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map + getNodeTypeConfigs() { + return getNodeTypeConfigsMap(); + } + /** + * + * + *
+       * Required. The map of cluster node types in this cluster, where the key is canonical
+       * identifier of the node type (corresponds to the `NodeType`).
+       * 
+ * + * + * map<string, .google.cloud.vmwareengine.v1.NodeTypeConfig> node_type_configs = 7 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.Map + getNodeTypeConfigsMap() { + return internalGetNodeTypeConfigs().getMap(); + } + /** + * + * + *
+       * Required. The map of cluster node types in this cluster, where the key is canonical
+       * identifier of the node type (corresponds to the `NodeType`).
+       * 
+ * + * + * map<string, .google.cloud.vmwareengine.v1.NodeTypeConfig> node_type_configs = 7 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.NodeTypeConfig getNodeTypeConfigsOrDefault( + java.lang.String key, com.google.cloud.vmwareengine.v1.NodeTypeConfig defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetNodeTypeConfigs().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+       * Required. The map of cluster node types in this cluster, where the key is canonical
+       * identifier of the node type (corresponds to the `NodeType`).
+       * 
+ * + * + * map<string, .google.cloud.vmwareengine.v1.NodeTypeConfig> node_type_configs = 7 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.NodeTypeConfig getNodeTypeConfigsOrThrow( + java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetNodeTypeConfigs().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearNodeTypeConfigs() { + internalGetMutableNodeTypeConfigs().getMutableMap().clear(); + return this; + } + /** + * + * + *
+       * Required. The map of cluster node types in this cluster, where the key is canonical
+       * identifier of the node type (corresponds to the `NodeType`).
+       * 
+ * + * + * map<string, .google.cloud.vmwareengine.v1.NodeTypeConfig> node_type_configs = 7 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeNodeTypeConfigs(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableNodeTypeConfigs().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map + getMutableNodeTypeConfigs() { + return internalGetMutableNodeTypeConfigs().getMutableMap(); + } + /** + * + * + *
+       * Required. The map of cluster node types in this cluster, where the key is canonical
+       * identifier of the node type (corresponds to the `NodeType`).
+       * 
+ * + * + * map<string, .google.cloud.vmwareengine.v1.NodeTypeConfig> node_type_configs = 7 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder putNodeTypeConfigs( + java.lang.String key, com.google.cloud.vmwareengine.v1.NodeTypeConfig value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + + internalGetMutableNodeTypeConfigs().getMutableMap().put(key, value); + return this; + } + /** + * + * + *
+       * Required. The map of cluster node types in this cluster, where the key is canonical
+       * identifier of the node type (corresponds to the `NodeType`).
+       * 
+ * + * + * map<string, .google.cloud.vmwareengine.v1.NodeTypeConfig> node_type_configs = 7 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder putAllNodeTypeConfigs( + java.util.Map values) { + internalGetMutableNodeTypeConfigs().getMutableMap().putAll(values); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster) + private static final com.google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster(); + } + + public static com.google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ManagementCluster 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.vmwareengine.v1.PrivateCloud.ManagementCluster + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Output only. The resource name of this private cloud.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The resource name of this private cloud.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
+   * Output only. Creation time of this resource.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return createTime_ != null; + } + /** + * + * + *
+   * Output only. Creation time of this resource.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + /** + * + * + *
+   * Output only. Creation time of this resource.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return getCreateTime(); + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp updateTime_; + /** + * + * + *
+   * Output only. Last update time of this resource.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return updateTime_ != null; + } + /** + * + * + *
+   * Output only. Last update time of this resource.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + /** + * + * + *
+   * Output only. Last update time of this resource.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return getUpdateTime(); + } + + public static final int DELETE_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp deleteTime_; + /** + * + * + *
+   * Output only. Time when the resource was scheduled for deletion.
+   * 
+ * + * .google.protobuf.Timestamp delete_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the deleteTime field is set. + */ + @java.lang.Override + public boolean hasDeleteTime() { + return deleteTime_ != null; + } + /** + * + * + *
+   * Output only. Time when the resource was scheduled for deletion.
+   * 
+ * + * .google.protobuf.Timestamp delete_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The deleteTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getDeleteTime() { + return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; + } + /** + * + * + *
+   * Output only. Time when the resource was scheduled for deletion.
+   * 
+ * + * .google.protobuf.Timestamp delete_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { + return getDeleteTime(); + } + + public static final int EXPIRE_TIME_FIELD_NUMBER = 5; + private com.google.protobuf.Timestamp expireTime_; + /** + * + * + *
+   * Output only. Time when the resource will be irreversibly deleted.
+   * 
+ * + * .google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the expireTime field is set. + */ + @java.lang.Override + public boolean hasExpireTime() { + return expireTime_ != null; + } + /** + * + * + *
+   * Output only. Time when the resource will be irreversibly deleted.
+   * 
+ * + * .google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The expireTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getExpireTime() { + return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; + } + /** + * + * + *
+   * Output only. Time when the resource will be irreversibly deleted.
+   * 
+ * + * .google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { + return getExpireTime(); + } + + public static final int STATE_FIELD_NUMBER = 8; + private int state_; + /** + * + * + *
+   * Output only. State of the resource. New values may be added to this enum
+   * when appropriate.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.PrivateCloud.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
+   * Output only. State of the resource. New values may be added to this enum
+   * when appropriate.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.PrivateCloud.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.PrivateCloud.State getState() { + @SuppressWarnings("deprecation") + com.google.cloud.vmwareengine.v1.PrivateCloud.State result = + com.google.cloud.vmwareengine.v1.PrivateCloud.State.valueOf(state_); + return result == null + ? com.google.cloud.vmwareengine.v1.PrivateCloud.State.UNRECOGNIZED + : result; + } + + public static final int NETWORK_CONFIG_FIELD_NUMBER = 9; + private com.google.cloud.vmwareengine.v1.NetworkConfig networkConfig_; + /** + * + * + *
+   * Required. Network configuration of the private cloud.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.NetworkConfig network_config = 9 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the networkConfig field is set. + */ + @java.lang.Override + public boolean hasNetworkConfig() { + return networkConfig_ != null; + } + /** + * + * + *
+   * Required. Network configuration of the private cloud.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.NetworkConfig network_config = 9 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The networkConfig. + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.NetworkConfig getNetworkConfig() { + return networkConfig_ == null + ? com.google.cloud.vmwareengine.v1.NetworkConfig.getDefaultInstance() + : networkConfig_; + } + /** + * + * + *
+   * Required. Network configuration of the private cloud.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.NetworkConfig network_config = 9 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.NetworkConfigOrBuilder getNetworkConfigOrBuilder() { + return getNetworkConfig(); + } + + public static final int MANAGEMENT_CLUSTER_FIELD_NUMBER = 10; + private com.google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster managementCluster_; + /** + * + * + *
+   * Input only. The management cluster for this private cloud.
+   * This field is required during creation of the private cloud to provide
+   * details for the default cluster.
+   * The following fields can't be changed after private cloud creation:
+   * `ManagementCluster.clusterId`, `ManagementCluster.nodeTypeId`.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster management_cluster = 10 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @return Whether the managementCluster field is set. + */ + @java.lang.Override + public boolean hasManagementCluster() { + return managementCluster_ != null; + } + /** + * + * + *
+   * Input only. The management cluster for this private cloud.
+   * This field is required during creation of the private cloud to provide
+   * details for the default cluster.
+   * The following fields can't be changed after private cloud creation:
+   * `ManagementCluster.clusterId`, `ManagementCluster.nodeTypeId`.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster management_cluster = 10 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @return The managementCluster. + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster getManagementCluster() { + return managementCluster_ == null + ? com.google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster.getDefaultInstance() + : managementCluster_; + } + /** + * + * + *
+   * Input only. The management cluster for this private cloud.
+   * This field is required during creation of the private cloud to provide
+   * details for the default cluster.
+   * The following fields can't be changed after private cloud creation:
+   * `ManagementCluster.clusterId`, `ManagementCluster.nodeTypeId`.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster management_cluster = 10 [(.google.api.field_behavior) = INPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.PrivateCloud.ManagementClusterOrBuilder + getManagementClusterOrBuilder() { + return getManagementCluster(); + } + + public static final int DESCRIPTION_FIELD_NUMBER = 11; + private volatile java.lang.Object description_; + /** + * + * + *
+   * User-provided description for this private cloud.
+   * 
+ * + * string description = 11; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + /** + * + * + *
+   * User-provided description for this private cloud.
+   * 
+ * + * string description = 11; + * + * @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 HCX_FIELD_NUMBER = 17; + private com.google.cloud.vmwareengine.v1.Hcx hcx_; + /** + * + * + *
+   * Output only. HCX appliance.
+   * 
+ * + * .google.cloud.vmwareengine.v1.Hcx hcx = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the hcx field is set. + */ + @java.lang.Override + public boolean hasHcx() { + return hcx_ != null; + } + /** + * + * + *
+   * Output only. HCX appliance.
+   * 
+ * + * .google.cloud.vmwareengine.v1.Hcx hcx = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The hcx. + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.Hcx getHcx() { + return hcx_ == null ? com.google.cloud.vmwareengine.v1.Hcx.getDefaultInstance() : hcx_; + } + /** + * + * + *
+   * Output only. HCX appliance.
+   * 
+ * + * .google.cloud.vmwareengine.v1.Hcx hcx = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.HcxOrBuilder getHcxOrBuilder() { + return getHcx(); + } + + public static final int NSX_FIELD_NUMBER = 18; + private com.google.cloud.vmwareengine.v1.Nsx nsx_; + /** + * + * + *
+   * Output only. NSX appliance.
+   * 
+ * + * .google.cloud.vmwareengine.v1.Nsx nsx = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the nsx field is set. + */ + @java.lang.Override + public boolean hasNsx() { + return nsx_ != null; + } + /** + * + * + *
+   * Output only. NSX appliance.
+   * 
+ * + * .google.cloud.vmwareengine.v1.Nsx nsx = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The nsx. + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.Nsx getNsx() { + return nsx_ == null ? com.google.cloud.vmwareengine.v1.Nsx.getDefaultInstance() : nsx_; + } + /** + * + * + *
+   * Output only. NSX appliance.
+   * 
+ * + * .google.cloud.vmwareengine.v1.Nsx nsx = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.NsxOrBuilder getNsxOrBuilder() { + return getNsx(); + } + + public static final int VCENTER_FIELD_NUMBER = 19; + private com.google.cloud.vmwareengine.v1.Vcenter vcenter_; + /** + * + * + *
+   * Output only. Vcenter appliance.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.Vcenter vcenter = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the vcenter field is set. + */ + @java.lang.Override + public boolean hasVcenter() { + return vcenter_ != null; + } + /** + * + * + *
+   * Output only. Vcenter appliance.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.Vcenter vcenter = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The vcenter. + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.Vcenter getVcenter() { + return vcenter_ == null + ? com.google.cloud.vmwareengine.v1.Vcenter.getDefaultInstance() + : vcenter_; + } + /** + * + * + *
+   * Output only. Vcenter appliance.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.Vcenter vcenter = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.VcenterOrBuilder getVcenterOrBuilder() { + return getVcenter(); + } + + public static final int UID_FIELD_NUMBER = 20; + private volatile java.lang.Object uid_; + /** + * + * + *
+   * Output only. System-generated unique identifier for the resource.
+   * 
+ * + * string uid = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The uid. + */ + @java.lang.Override + public java.lang.String getUid() { + java.lang.Object ref = uid_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uid_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. System-generated unique identifier for the resource.
+   * 
+ * + * string uid = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for uid. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUidBytes() { + java.lang.Object ref = uid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (createTime_ != null) { + output.writeMessage(2, getCreateTime()); + } + if (updateTime_ != null) { + output.writeMessage(3, getUpdateTime()); + } + if (deleteTime_ != null) { + output.writeMessage(4, getDeleteTime()); + } + if (expireTime_ != null) { + output.writeMessage(5, getExpireTime()); + } + if (state_ + != com.google.cloud.vmwareengine.v1.PrivateCloud.State.STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(8, state_); + } + if (networkConfig_ != null) { + output.writeMessage(9, getNetworkConfig()); + } + if (managementCluster_ != null) { + output.writeMessage(10, getManagementCluster()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, description_); + } + if (hcx_ != null) { + output.writeMessage(17, getHcx()); + } + if (nsx_ != null) { + output.writeMessage(18, getNsx()); + } + if (vcenter_ != null) { + output.writeMessage(19, getVcenter()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 20, uid_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (createTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); + } + if (updateTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime()); + } + if (deleteTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getDeleteTime()); + } + if (expireTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getExpireTime()); + } + if (state_ + != com.google.cloud.vmwareengine.v1.PrivateCloud.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, state_); + } + if (networkConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getNetworkConfig()); + } + if (managementCluster_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getManagementCluster()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, description_); + } + if (hcx_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(17, getHcx()); + } + if (nsx_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(18, getNsx()); + } + if (vcenter_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(19, getVcenter()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(20, uid_); + } + 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.vmwareengine.v1.PrivateCloud)) { + return super.equals(obj); + } + com.google.cloud.vmwareengine.v1.PrivateCloud other = + (com.google.cloud.vmwareengine.v1.PrivateCloud) obj; + + if (!getName().equals(other.getName())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (hasDeleteTime() != other.hasDeleteTime()) return false; + if (hasDeleteTime()) { + if (!getDeleteTime().equals(other.getDeleteTime())) return false; + } + if (hasExpireTime() != other.hasExpireTime()) return false; + if (hasExpireTime()) { + if (!getExpireTime().equals(other.getExpireTime())) return false; + } + if (state_ != other.state_) return false; + if (hasNetworkConfig() != other.hasNetworkConfig()) return false; + if (hasNetworkConfig()) { + if (!getNetworkConfig().equals(other.getNetworkConfig())) return false; + } + if (hasManagementCluster() != other.hasManagementCluster()) return false; + if (hasManagementCluster()) { + if (!getManagementCluster().equals(other.getManagementCluster())) return false; + } + if (!getDescription().equals(other.getDescription())) return false; + if (hasHcx() != other.hasHcx()) return false; + if (hasHcx()) { + if (!getHcx().equals(other.getHcx())) return false; + } + if (hasNsx() != other.hasNsx()) return false; + if (hasNsx()) { + if (!getNsx().equals(other.getNsx())) return false; + } + if (hasVcenter() != other.hasVcenter()) return false; + if (hasVcenter()) { + if (!getVcenter().equals(other.getVcenter())) return false; + } + if (!getUid().equals(other.getUid())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + if (hasDeleteTime()) { + hash = (37 * hash) + DELETE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getDeleteTime().hashCode(); + } + if (hasExpireTime()) { + hash = (37 * hash) + EXPIRE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getExpireTime().hashCode(); + } + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + if (hasNetworkConfig()) { + hash = (37 * hash) + NETWORK_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getNetworkConfig().hashCode(); + } + if (hasManagementCluster()) { + hash = (37 * hash) + MANAGEMENT_CLUSTER_FIELD_NUMBER; + hash = (53 * hash) + getManagementCluster().hashCode(); + } + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + if (hasHcx()) { + hash = (37 * hash) + HCX_FIELD_NUMBER; + hash = (53 * hash) + getHcx().hashCode(); + } + if (hasNsx()) { + hash = (37 * hash) + NSX_FIELD_NUMBER; + hash = (53 * hash) + getNsx().hashCode(); + } + if (hasVcenter()) { + hash = (37 * hash) + VCENTER_FIELD_NUMBER; + hash = (53 * hash) + getVcenter().hashCode(); + } + hash = (37 * hash) + UID_FIELD_NUMBER; + hash = (53 * hash) + getUid().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmwareengine.v1.PrivateCloud parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.PrivateCloud 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.vmwareengine.v1.PrivateCloud parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.PrivateCloud parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.PrivateCloud parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.PrivateCloud parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.PrivateCloud parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.PrivateCloud parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.PrivateCloud parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.PrivateCloud parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.PrivateCloud parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.PrivateCloud parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.vmwareengine.v1.PrivateCloud prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Represents a private cloud resource. Private clouds are zonal resources.
+   * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.PrivateCloud} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmwareengine.v1.PrivateCloud) + com.google.cloud.vmwareengine.v1.PrivateCloudOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_PrivateCloud_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_PrivateCloud_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.PrivateCloud.class, + com.google.cloud.vmwareengine.v1.PrivateCloud.Builder.class); + } + + // Construct using com.google.cloud.vmwareengine.v1.PrivateCloud.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + if (createTimeBuilder_ == null) { + createTime_ = null; + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + if (updateTimeBuilder_ == null) { + updateTime_ = null; + } else { + updateTime_ = null; + updateTimeBuilder_ = null; + } + if (deleteTimeBuilder_ == null) { + deleteTime_ = null; + } else { + deleteTime_ = null; + deleteTimeBuilder_ = null; + } + if (expireTimeBuilder_ == null) { + expireTime_ = null; + } else { + expireTime_ = null; + expireTimeBuilder_ = null; + } + state_ = 0; + + if (networkConfigBuilder_ == null) { + networkConfig_ = null; + } else { + networkConfig_ = null; + networkConfigBuilder_ = null; + } + if (managementClusterBuilder_ == null) { + managementCluster_ = null; + } else { + managementCluster_ = null; + managementClusterBuilder_ = null; + } + description_ = ""; + + if (hcxBuilder_ == null) { + hcx_ = null; + } else { + hcx_ = null; + hcxBuilder_ = null; + } + if (nsxBuilder_ == null) { + nsx_ = null; + } else { + nsx_ = null; + nsxBuilder_ = null; + } + if (vcenterBuilder_ == null) { + vcenter_ = null; + } else { + vcenter_ = null; + vcenterBuilder_ = null; + } + uid_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_PrivateCloud_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.PrivateCloud getDefaultInstanceForType() { + return com.google.cloud.vmwareengine.v1.PrivateCloud.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.PrivateCloud build() { + com.google.cloud.vmwareengine.v1.PrivateCloud result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.PrivateCloud buildPartial() { + com.google.cloud.vmwareengine.v1.PrivateCloud result = + new com.google.cloud.vmwareengine.v1.PrivateCloud(this); + result.name_ = name_; + if (createTimeBuilder_ == null) { + result.createTime_ = createTime_; + } else { + result.createTime_ = createTimeBuilder_.build(); + } + if (updateTimeBuilder_ == null) { + result.updateTime_ = updateTime_; + } else { + result.updateTime_ = updateTimeBuilder_.build(); + } + if (deleteTimeBuilder_ == null) { + result.deleteTime_ = deleteTime_; + } else { + result.deleteTime_ = deleteTimeBuilder_.build(); + } + if (expireTimeBuilder_ == null) { + result.expireTime_ = expireTime_; + } else { + result.expireTime_ = expireTimeBuilder_.build(); + } + result.state_ = state_; + if (networkConfigBuilder_ == null) { + result.networkConfig_ = networkConfig_; + } else { + result.networkConfig_ = networkConfigBuilder_.build(); + } + if (managementClusterBuilder_ == null) { + result.managementCluster_ = managementCluster_; + } else { + result.managementCluster_ = managementClusterBuilder_.build(); + } + result.description_ = description_; + if (hcxBuilder_ == null) { + result.hcx_ = hcx_; + } else { + result.hcx_ = hcxBuilder_.build(); + } + if (nsxBuilder_ == null) { + result.nsx_ = nsx_; + } else { + result.nsx_ = nsxBuilder_.build(); + } + if (vcenterBuilder_ == null) { + result.vcenter_ = vcenter_; + } else { + result.vcenter_ = vcenterBuilder_.build(); + } + result.uid_ = uid_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.vmwareengine.v1.PrivateCloud) { + return mergeFrom((com.google.cloud.vmwareengine.v1.PrivateCloud) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmwareengine.v1.PrivateCloud other) { + if (other == com.google.cloud.vmwareengine.v1.PrivateCloud.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (other.hasDeleteTime()) { + mergeDeleteTime(other.getDeleteTime()); + } + if (other.hasExpireTime()) { + mergeExpireTime(other.getExpireTime()); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (other.hasNetworkConfig()) { + mergeNetworkConfig(other.getNetworkConfig()); + } + if (other.hasManagementCluster()) { + mergeManagementCluster(other.getManagementCluster()); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + onChanged(); + } + if (other.hasHcx()) { + mergeHcx(other.getHcx()); + } + if (other.hasNsx()) { + mergeNsx(other.getNsx()); + } + if (other.hasVcenter()) { + mergeVcenter(other.getVcenter()); + } + if (!other.getUid().isEmpty()) { + uid_ = other.uid_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + case 26: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 26 + case 34: + { + input.readMessage(getDeleteTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 34 + case 42: + { + input.readMessage(getExpireTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 42 + case 64: + { + state_ = input.readEnum(); + + break; + } // case 64 + case 74: + { + input.readMessage(getNetworkConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 74 + case 82: + { + input.readMessage( + getManagementClusterFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 82 + case 90: + { + description_ = input.readStringRequireUtf8(); + + break; + } // case 90 + case 138: + { + input.readMessage(getHcxFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 138 + case 146: + { + input.readMessage(getNsxFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 146 + case 154: + { + input.readMessage(getVcenterFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 154 + case 162: + { + uid_ = input.readStringRequireUtf8(); + + break; + } // case 162 + 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 java.lang.Object name_ = ""; + /** + * + * + *
+     * Output only. The resource name of this private cloud.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The resource name of this private cloud.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The resource name of this private cloud.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The resource name of this private cloud.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The resource name of this private cloud.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + /** + * + * + *
+     * Output only. Creation time of this resource.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return createTimeBuilder_ != null || createTime_ != null; + } + /** + * + * + *
+     * Output only. Creation time of this resource.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Creation time of this resource.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + onChanged(); + } else { + createTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Creation time of this resource.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + onChanged(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. Creation time of this resource.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (createTime_ != null) { + createTime_ = + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + } else { + createTime_ = value; + } + onChanged(); + } else { + createTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Creation time of this resource.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + if (createTimeBuilder_ == null) { + createTime_ = null; + onChanged(); + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. Creation time of this resource.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Creation time of this resource.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + /** + * + * + *
+     * Output only. Creation time of this resource.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + /** + * + * + *
+     * Output only. Last update time of this resource.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return updateTimeBuilder_ != null || updateTime_ != null; + } + /** + * + * + *
+     * Output only. Last update time of this resource.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Last update time of this resource.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + onChanged(); + } else { + updateTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Last update time of this resource.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + onChanged(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. Last update time of this resource.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (updateTime_ != null) { + updateTime_ = + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + } else { + updateTime_ = value; + } + onChanged(); + } else { + updateTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Last update time of this resource.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + if (updateTimeBuilder_ == null) { + updateTime_ = null; + onChanged(); + } else { + updateTime_ = null; + updateTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. Last update time of this resource.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Last update time of this resource.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + /** + * + * + *
+     * Output only. Last update time of this resource.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private com.google.protobuf.Timestamp deleteTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + deleteTimeBuilder_; + /** + * + * + *
+     * Output only. Time when the resource was scheduled for deletion.
+     * 
+ * + * + * .google.protobuf.Timestamp delete_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the deleteTime field is set. + */ + public boolean hasDeleteTime() { + return deleteTimeBuilder_ != null || deleteTime_ != null; + } + /** + * + * + *
+     * Output only. Time when the resource was scheduled for deletion.
+     * 
+ * + * + * .google.protobuf.Timestamp delete_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The deleteTime. + */ + public com.google.protobuf.Timestamp getDeleteTime() { + if (deleteTimeBuilder_ == null) { + return deleteTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : deleteTime_; + } else { + return deleteTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Time when the resource was scheduled for deletion.
+     * 
+ * + * + * .google.protobuf.Timestamp delete_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDeleteTime(com.google.protobuf.Timestamp value) { + if (deleteTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + deleteTime_ = value; + onChanged(); + } else { + deleteTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Time when the resource was scheduled for deletion.
+     * 
+ * + * + * .google.protobuf.Timestamp delete_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (deleteTimeBuilder_ == null) { + deleteTime_ = builderForValue.build(); + onChanged(); + } else { + deleteTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. Time when the resource was scheduled for deletion.
+     * 
+ * + * + * .google.protobuf.Timestamp delete_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { + if (deleteTimeBuilder_ == null) { + if (deleteTime_ != null) { + deleteTime_ = + com.google.protobuf.Timestamp.newBuilder(deleteTime_).mergeFrom(value).buildPartial(); + } else { + deleteTime_ = value; + } + onChanged(); + } else { + deleteTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Time when the resource was scheduled for deletion.
+     * 
+ * + * + * .google.protobuf.Timestamp delete_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearDeleteTime() { + if (deleteTimeBuilder_ == null) { + deleteTime_ = null; + onChanged(); + } else { + deleteTime_ = null; + deleteTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. Time when the resource was scheduled for deletion.
+     * 
+ * + * + * .google.protobuf.Timestamp delete_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { + + onChanged(); + return getDeleteTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Time when the resource was scheduled for deletion.
+     * 
+ * + * + * .google.protobuf.Timestamp delete_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { + if (deleteTimeBuilder_ != null) { + return deleteTimeBuilder_.getMessageOrBuilder(); + } else { + return deleteTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : deleteTime_; + } + } + /** + * + * + *
+     * Output only. Time when the resource was scheduled for deletion.
+     * 
+ * + * + * .google.protobuf.Timestamp delete_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getDeleteTimeFieldBuilder() { + if (deleteTimeBuilder_ == null) { + deleteTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getDeleteTime(), getParentForChildren(), isClean()); + deleteTime_ = null; + } + return deleteTimeBuilder_; + } + + private com.google.protobuf.Timestamp expireTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + expireTimeBuilder_; + /** + * + * + *
+     * Output only. Time when the resource will be irreversibly deleted.
+     * 
+ * + * + * .google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the expireTime field is set. + */ + public boolean hasExpireTime() { + return expireTimeBuilder_ != null || expireTime_ != null; + } + /** + * + * + *
+     * Output only. Time when the resource will be irreversibly deleted.
+     * 
+ * + * + * .google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The expireTime. + */ + public com.google.protobuf.Timestamp getExpireTime() { + if (expireTimeBuilder_ == null) { + return expireTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : expireTime_; + } else { + return expireTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Time when the resource will be irreversibly deleted.
+     * 
+ * + * + * .google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setExpireTime(com.google.protobuf.Timestamp value) { + if (expireTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expireTime_ = value; + onChanged(); + } else { + expireTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Time when the resource will be irreversibly deleted.
+     * 
+ * + * + * .google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (expireTimeBuilder_ == null) { + expireTime_ = builderForValue.build(); + onChanged(); + } else { + expireTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. Time when the resource will be irreversibly deleted.
+     * 
+ * + * + * .google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { + if (expireTimeBuilder_ == null) { + if (expireTime_ != null) { + expireTime_ = + com.google.protobuf.Timestamp.newBuilder(expireTime_).mergeFrom(value).buildPartial(); + } else { + expireTime_ = value; + } + onChanged(); + } else { + expireTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Time when the resource will be irreversibly deleted.
+     * 
+ * + * + * .google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearExpireTime() { + if (expireTimeBuilder_ == null) { + expireTime_ = null; + onChanged(); + } else { + expireTime_ = null; + expireTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. Time when the resource will be irreversibly deleted.
+     * 
+ * + * + * .google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() { + + onChanged(); + return getExpireTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Time when the resource will be irreversibly deleted.
+     * 
+ * + * + * .google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { + if (expireTimeBuilder_ != null) { + return expireTimeBuilder_.getMessageOrBuilder(); + } else { + return expireTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : expireTime_; + } + } + /** + * + * + *
+     * Output only. Time when the resource will be irreversibly deleted.
+     * 
+ * + * + * .google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getExpireTimeFieldBuilder() { + if (expireTimeBuilder_ == null) { + expireTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getExpireTime(), getParentForChildren(), isClean()); + expireTime_ = null; + } + return expireTimeBuilder_; + } + + private int state_ = 0; + /** + * + * + *
+     * Output only. State of the resource. New values may be added to this enum
+     * when appropriate.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.PrivateCloud.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
+     * Output only. State of the resource. New values may be added to this enum
+     * when appropriate.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.PrivateCloud.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + + state_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. State of the resource. New values may be added to this enum
+     * when appropriate.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.PrivateCloud.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.PrivateCloud.State getState() { + @SuppressWarnings("deprecation") + com.google.cloud.vmwareengine.v1.PrivateCloud.State result = + com.google.cloud.vmwareengine.v1.PrivateCloud.State.valueOf(state_); + return result == null + ? com.google.cloud.vmwareengine.v1.PrivateCloud.State.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Output only. State of the resource. New values may be added to this enum
+     * when appropriate.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.PrivateCloud.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.vmwareengine.v1.PrivateCloud.State value) { + if (value == null) { + throw new NullPointerException(); + } + + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. State of the resource. New values may be added to this enum
+     * when appropriate.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.PrivateCloud.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + + state_ = 0; + onChanged(); + return this; + } + + private com.google.cloud.vmwareengine.v1.NetworkConfig networkConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmwareengine.v1.NetworkConfig, + com.google.cloud.vmwareengine.v1.NetworkConfig.Builder, + com.google.cloud.vmwareengine.v1.NetworkConfigOrBuilder> + networkConfigBuilder_; + /** + * + * + *
+     * Required. Network configuration of the private cloud.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.NetworkConfig network_config = 9 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the networkConfig field is set. + */ + public boolean hasNetworkConfig() { + return networkConfigBuilder_ != null || networkConfig_ != null; + } + /** + * + * + *
+     * Required. Network configuration of the private cloud.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.NetworkConfig network_config = 9 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The networkConfig. + */ + public com.google.cloud.vmwareengine.v1.NetworkConfig getNetworkConfig() { + if (networkConfigBuilder_ == null) { + return networkConfig_ == null + ? com.google.cloud.vmwareengine.v1.NetworkConfig.getDefaultInstance() + : networkConfig_; + } else { + return networkConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. Network configuration of the private cloud.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.NetworkConfig network_config = 9 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setNetworkConfig(com.google.cloud.vmwareengine.v1.NetworkConfig value) { + if (networkConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + networkConfig_ = value; + onChanged(); + } else { + networkConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. Network configuration of the private cloud.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.NetworkConfig network_config = 9 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setNetworkConfig( + com.google.cloud.vmwareengine.v1.NetworkConfig.Builder builderForValue) { + if (networkConfigBuilder_ == null) { + networkConfig_ = builderForValue.build(); + onChanged(); + } else { + networkConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. Network configuration of the private cloud.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.NetworkConfig network_config = 9 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeNetworkConfig(com.google.cloud.vmwareengine.v1.NetworkConfig value) { + if (networkConfigBuilder_ == null) { + if (networkConfig_ != null) { + networkConfig_ = + com.google.cloud.vmwareengine.v1.NetworkConfig.newBuilder(networkConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + networkConfig_ = value; + } + onChanged(); + } else { + networkConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. Network configuration of the private cloud.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.NetworkConfig network_config = 9 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearNetworkConfig() { + if (networkConfigBuilder_ == null) { + networkConfig_ = null; + onChanged(); + } else { + networkConfig_ = null; + networkConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. Network configuration of the private cloud.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.NetworkConfig network_config = 9 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.vmwareengine.v1.NetworkConfig.Builder getNetworkConfigBuilder() { + + onChanged(); + return getNetworkConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. Network configuration of the private cloud.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.NetworkConfig network_config = 9 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.vmwareengine.v1.NetworkConfigOrBuilder getNetworkConfigOrBuilder() { + if (networkConfigBuilder_ != null) { + return networkConfigBuilder_.getMessageOrBuilder(); + } else { + return networkConfig_ == null + ? com.google.cloud.vmwareengine.v1.NetworkConfig.getDefaultInstance() + : networkConfig_; + } + } + /** + * + * + *
+     * Required. Network configuration of the private cloud.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.NetworkConfig network_config = 9 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmwareengine.v1.NetworkConfig, + com.google.cloud.vmwareengine.v1.NetworkConfig.Builder, + com.google.cloud.vmwareengine.v1.NetworkConfigOrBuilder> + getNetworkConfigFieldBuilder() { + if (networkConfigBuilder_ == null) { + networkConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmwareengine.v1.NetworkConfig, + com.google.cloud.vmwareengine.v1.NetworkConfig.Builder, + com.google.cloud.vmwareengine.v1.NetworkConfigOrBuilder>( + getNetworkConfig(), getParentForChildren(), isClean()); + networkConfig_ = null; + } + return networkConfigBuilder_; + } + + private com.google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster managementCluster_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster, + com.google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster.Builder, + com.google.cloud.vmwareengine.v1.PrivateCloud.ManagementClusterOrBuilder> + managementClusterBuilder_; + /** + * + * + *
+     * Input only. The management cluster for this private cloud.
+     * This field is required during creation of the private cloud to provide
+     * details for the default cluster.
+     * The following fields can't be changed after private cloud creation:
+     * `ManagementCluster.clusterId`, `ManagementCluster.nodeTypeId`.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster management_cluster = 10 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @return Whether the managementCluster field is set. + */ + public boolean hasManagementCluster() { + return managementClusterBuilder_ != null || managementCluster_ != null; + } + /** + * + * + *
+     * Input only. The management cluster for this private cloud.
+     * This field is required during creation of the private cloud to provide
+     * details for the default cluster.
+     * The following fields can't be changed after private cloud creation:
+     * `ManagementCluster.clusterId`, `ManagementCluster.nodeTypeId`.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster management_cluster = 10 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @return The managementCluster. + */ + public com.google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster getManagementCluster() { + if (managementClusterBuilder_ == null) { + return managementCluster_ == null + ? com.google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster.getDefaultInstance() + : managementCluster_; + } else { + return managementClusterBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Input only. The management cluster for this private cloud.
+     * This field is required during creation of the private cloud to provide
+     * details for the default cluster.
+     * The following fields can't be changed after private cloud creation:
+     * `ManagementCluster.clusterId`, `ManagementCluster.nodeTypeId`.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster management_cluster = 10 [(.google.api.field_behavior) = INPUT_ONLY]; + * + */ + public Builder setManagementCluster( + com.google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster value) { + if (managementClusterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + managementCluster_ = value; + onChanged(); + } else { + managementClusterBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Input only. The management cluster for this private cloud.
+     * This field is required during creation of the private cloud to provide
+     * details for the default cluster.
+     * The following fields can't be changed after private cloud creation:
+     * `ManagementCluster.clusterId`, `ManagementCluster.nodeTypeId`.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster management_cluster = 10 [(.google.api.field_behavior) = INPUT_ONLY]; + * + */ + public Builder setManagementCluster( + com.google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster.Builder builderForValue) { + if (managementClusterBuilder_ == null) { + managementCluster_ = builderForValue.build(); + onChanged(); + } else { + managementClusterBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Input only. The management cluster for this private cloud.
+     * This field is required during creation of the private cloud to provide
+     * details for the default cluster.
+     * The following fields can't be changed after private cloud creation:
+     * `ManagementCluster.clusterId`, `ManagementCluster.nodeTypeId`.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster management_cluster = 10 [(.google.api.field_behavior) = INPUT_ONLY]; + * + */ + public Builder mergeManagementCluster( + com.google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster value) { + if (managementClusterBuilder_ == null) { + if (managementCluster_ != null) { + managementCluster_ = + com.google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster.newBuilder( + managementCluster_) + .mergeFrom(value) + .buildPartial(); + } else { + managementCluster_ = value; + } + onChanged(); + } else { + managementClusterBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Input only. The management cluster for this private cloud.
+     * This field is required during creation of the private cloud to provide
+     * details for the default cluster.
+     * The following fields can't be changed after private cloud creation:
+     * `ManagementCluster.clusterId`, `ManagementCluster.nodeTypeId`.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster management_cluster = 10 [(.google.api.field_behavior) = INPUT_ONLY]; + * + */ + public Builder clearManagementCluster() { + if (managementClusterBuilder_ == null) { + managementCluster_ = null; + onChanged(); + } else { + managementCluster_ = null; + managementClusterBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Input only. The management cluster for this private cloud.
+     * This field is required during creation of the private cloud to provide
+     * details for the default cluster.
+     * The following fields can't be changed after private cloud creation:
+     * `ManagementCluster.clusterId`, `ManagementCluster.nodeTypeId`.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster management_cluster = 10 [(.google.api.field_behavior) = INPUT_ONLY]; + * + */ + public com.google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster.Builder + getManagementClusterBuilder() { + + onChanged(); + return getManagementClusterFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Input only. The management cluster for this private cloud.
+     * This field is required during creation of the private cloud to provide
+     * details for the default cluster.
+     * The following fields can't be changed after private cloud creation:
+     * `ManagementCluster.clusterId`, `ManagementCluster.nodeTypeId`.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster management_cluster = 10 [(.google.api.field_behavior) = INPUT_ONLY]; + * + */ + public com.google.cloud.vmwareengine.v1.PrivateCloud.ManagementClusterOrBuilder + getManagementClusterOrBuilder() { + if (managementClusterBuilder_ != null) { + return managementClusterBuilder_.getMessageOrBuilder(); + } else { + return managementCluster_ == null + ? com.google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster.getDefaultInstance() + : managementCluster_; + } + } + /** + * + * + *
+     * Input only. The management cluster for this private cloud.
+     * This field is required during creation of the private cloud to provide
+     * details for the default cluster.
+     * The following fields can't be changed after private cloud creation:
+     * `ManagementCluster.clusterId`, `ManagementCluster.nodeTypeId`.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster management_cluster = 10 [(.google.api.field_behavior) = INPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster, + com.google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster.Builder, + com.google.cloud.vmwareengine.v1.PrivateCloud.ManagementClusterOrBuilder> + getManagementClusterFieldBuilder() { + if (managementClusterBuilder_ == null) { + managementClusterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster, + com.google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster.Builder, + com.google.cloud.vmwareengine.v1.PrivateCloud.ManagementClusterOrBuilder>( + getManagementCluster(), getParentForChildren(), isClean()); + managementCluster_ = null; + } + return managementClusterBuilder_; + } + + private java.lang.Object description_ = ""; + /** + * + * + *
+     * User-provided description for this private cloud.
+     * 
+ * + * string description = 11; + * + * @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; + } + } + /** + * + * + *
+     * User-provided description for this private cloud.
+     * 
+ * + * string description = 11; + * + * @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; + } + } + /** + * + * + *
+     * User-provided description for this private cloud.
+     * 
+ * + * string description = 11; + * + * @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; + onChanged(); + return this; + } + /** + * + * + *
+     * User-provided description for this private cloud.
+     * 
+ * + * string description = 11; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + + description_ = getDefaultInstance().getDescription(); + onChanged(); + return this; + } + /** + * + * + *
+     * User-provided description for this private cloud.
+     * 
+ * + * string description = 11; + * + * @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; + onChanged(); + return this; + } + + private com.google.cloud.vmwareengine.v1.Hcx hcx_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmwareengine.v1.Hcx, + com.google.cloud.vmwareengine.v1.Hcx.Builder, + com.google.cloud.vmwareengine.v1.HcxOrBuilder> + hcxBuilder_; + /** + * + * + *
+     * Output only. HCX appliance.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.Hcx hcx = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the hcx field is set. + */ + public boolean hasHcx() { + return hcxBuilder_ != null || hcx_ != null; + } + /** + * + * + *
+     * Output only. HCX appliance.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.Hcx hcx = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The hcx. + */ + public com.google.cloud.vmwareengine.v1.Hcx getHcx() { + if (hcxBuilder_ == null) { + return hcx_ == null ? com.google.cloud.vmwareengine.v1.Hcx.getDefaultInstance() : hcx_; + } else { + return hcxBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. HCX appliance.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.Hcx hcx = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setHcx(com.google.cloud.vmwareengine.v1.Hcx value) { + if (hcxBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + hcx_ = value; + onChanged(); + } else { + hcxBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. HCX appliance.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.Hcx hcx = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setHcx(com.google.cloud.vmwareengine.v1.Hcx.Builder builderForValue) { + if (hcxBuilder_ == null) { + hcx_ = builderForValue.build(); + onChanged(); + } else { + hcxBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. HCX appliance.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.Hcx hcx = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeHcx(com.google.cloud.vmwareengine.v1.Hcx value) { + if (hcxBuilder_ == null) { + if (hcx_ != null) { + hcx_ = + com.google.cloud.vmwareengine.v1.Hcx.newBuilder(hcx_).mergeFrom(value).buildPartial(); + } else { + hcx_ = value; + } + onChanged(); + } else { + hcxBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. HCX appliance.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.Hcx hcx = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearHcx() { + if (hcxBuilder_ == null) { + hcx_ = null; + onChanged(); + } else { + hcx_ = null; + hcxBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. HCX appliance.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.Hcx hcx = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.vmwareengine.v1.Hcx.Builder getHcxBuilder() { + + onChanged(); + return getHcxFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. HCX appliance.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.Hcx hcx = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.vmwareengine.v1.HcxOrBuilder getHcxOrBuilder() { + if (hcxBuilder_ != null) { + return hcxBuilder_.getMessageOrBuilder(); + } else { + return hcx_ == null ? com.google.cloud.vmwareengine.v1.Hcx.getDefaultInstance() : hcx_; + } + } + /** + * + * + *
+     * Output only. HCX appliance.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.Hcx hcx = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmwareengine.v1.Hcx, + com.google.cloud.vmwareengine.v1.Hcx.Builder, + com.google.cloud.vmwareengine.v1.HcxOrBuilder> + getHcxFieldBuilder() { + if (hcxBuilder_ == null) { + hcxBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmwareengine.v1.Hcx, + com.google.cloud.vmwareengine.v1.Hcx.Builder, + com.google.cloud.vmwareengine.v1.HcxOrBuilder>( + getHcx(), getParentForChildren(), isClean()); + hcx_ = null; + } + return hcxBuilder_; + } + + private com.google.cloud.vmwareengine.v1.Nsx nsx_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmwareengine.v1.Nsx, + com.google.cloud.vmwareengine.v1.Nsx.Builder, + com.google.cloud.vmwareengine.v1.NsxOrBuilder> + nsxBuilder_; + /** + * + * + *
+     * Output only. NSX appliance.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.Nsx nsx = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the nsx field is set. + */ + public boolean hasNsx() { + return nsxBuilder_ != null || nsx_ != null; + } + /** + * + * + *
+     * Output only. NSX appliance.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.Nsx nsx = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The nsx. + */ + public com.google.cloud.vmwareengine.v1.Nsx getNsx() { + if (nsxBuilder_ == null) { + return nsx_ == null ? com.google.cloud.vmwareengine.v1.Nsx.getDefaultInstance() : nsx_; + } else { + return nsxBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. NSX appliance.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.Nsx nsx = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setNsx(com.google.cloud.vmwareengine.v1.Nsx value) { + if (nsxBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + nsx_ = value; + onChanged(); + } else { + nsxBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. NSX appliance.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.Nsx nsx = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setNsx(com.google.cloud.vmwareengine.v1.Nsx.Builder builderForValue) { + if (nsxBuilder_ == null) { + nsx_ = builderForValue.build(); + onChanged(); + } else { + nsxBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. NSX appliance.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.Nsx nsx = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeNsx(com.google.cloud.vmwareengine.v1.Nsx value) { + if (nsxBuilder_ == null) { + if (nsx_ != null) { + nsx_ = + com.google.cloud.vmwareengine.v1.Nsx.newBuilder(nsx_).mergeFrom(value).buildPartial(); + } else { + nsx_ = value; + } + onChanged(); + } else { + nsxBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. NSX appliance.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.Nsx nsx = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearNsx() { + if (nsxBuilder_ == null) { + nsx_ = null; + onChanged(); + } else { + nsx_ = null; + nsxBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. NSX appliance.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.Nsx nsx = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.vmwareengine.v1.Nsx.Builder getNsxBuilder() { + + onChanged(); + return getNsxFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. NSX appliance.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.Nsx nsx = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.vmwareengine.v1.NsxOrBuilder getNsxOrBuilder() { + if (nsxBuilder_ != null) { + return nsxBuilder_.getMessageOrBuilder(); + } else { + return nsx_ == null ? com.google.cloud.vmwareengine.v1.Nsx.getDefaultInstance() : nsx_; + } + } + /** + * + * + *
+     * Output only. NSX appliance.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.Nsx nsx = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmwareengine.v1.Nsx, + com.google.cloud.vmwareengine.v1.Nsx.Builder, + com.google.cloud.vmwareengine.v1.NsxOrBuilder> + getNsxFieldBuilder() { + if (nsxBuilder_ == null) { + nsxBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmwareengine.v1.Nsx, + com.google.cloud.vmwareengine.v1.Nsx.Builder, + com.google.cloud.vmwareengine.v1.NsxOrBuilder>( + getNsx(), getParentForChildren(), isClean()); + nsx_ = null; + } + return nsxBuilder_; + } + + private com.google.cloud.vmwareengine.v1.Vcenter vcenter_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmwareengine.v1.Vcenter, + com.google.cloud.vmwareengine.v1.Vcenter.Builder, + com.google.cloud.vmwareengine.v1.VcenterOrBuilder> + vcenterBuilder_; + /** + * + * + *
+     * Output only. Vcenter appliance.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.Vcenter vcenter = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the vcenter field is set. + */ + public boolean hasVcenter() { + return vcenterBuilder_ != null || vcenter_ != null; + } + /** + * + * + *
+     * Output only. Vcenter appliance.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.Vcenter vcenter = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The vcenter. + */ + public com.google.cloud.vmwareengine.v1.Vcenter getVcenter() { + if (vcenterBuilder_ == null) { + return vcenter_ == null + ? com.google.cloud.vmwareengine.v1.Vcenter.getDefaultInstance() + : vcenter_; + } else { + return vcenterBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Vcenter appliance.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.Vcenter vcenter = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setVcenter(com.google.cloud.vmwareengine.v1.Vcenter value) { + if (vcenterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + vcenter_ = value; + onChanged(); + } else { + vcenterBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Vcenter appliance.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.Vcenter vcenter = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setVcenter(com.google.cloud.vmwareengine.v1.Vcenter.Builder builderForValue) { + if (vcenterBuilder_ == null) { + vcenter_ = builderForValue.build(); + onChanged(); + } else { + vcenterBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. Vcenter appliance.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.Vcenter vcenter = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeVcenter(com.google.cloud.vmwareengine.v1.Vcenter value) { + if (vcenterBuilder_ == null) { + if (vcenter_ != null) { + vcenter_ = + com.google.cloud.vmwareengine.v1.Vcenter.newBuilder(vcenter_) + .mergeFrom(value) + .buildPartial(); + } else { + vcenter_ = value; + } + onChanged(); + } else { + vcenterBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Vcenter appliance.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.Vcenter vcenter = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearVcenter() { + if (vcenterBuilder_ == null) { + vcenter_ = null; + onChanged(); + } else { + vcenter_ = null; + vcenterBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. Vcenter appliance.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.Vcenter vcenter = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.vmwareengine.v1.Vcenter.Builder getVcenterBuilder() { + + onChanged(); + return getVcenterFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Vcenter appliance.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.Vcenter vcenter = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.vmwareengine.v1.VcenterOrBuilder getVcenterOrBuilder() { + if (vcenterBuilder_ != null) { + return vcenterBuilder_.getMessageOrBuilder(); + } else { + return vcenter_ == null + ? com.google.cloud.vmwareengine.v1.Vcenter.getDefaultInstance() + : vcenter_; + } + } + /** + * + * + *
+     * Output only. Vcenter appliance.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.Vcenter vcenter = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmwareengine.v1.Vcenter, + com.google.cloud.vmwareengine.v1.Vcenter.Builder, + com.google.cloud.vmwareengine.v1.VcenterOrBuilder> + getVcenterFieldBuilder() { + if (vcenterBuilder_ == null) { + vcenterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmwareengine.v1.Vcenter, + com.google.cloud.vmwareengine.v1.Vcenter.Builder, + com.google.cloud.vmwareengine.v1.VcenterOrBuilder>( + getVcenter(), getParentForChildren(), isClean()); + vcenter_ = null; + } + return vcenterBuilder_; + } + + private java.lang.Object uid_ = ""; + /** + * + * + *
+     * Output only. System-generated unique identifier for the resource.
+     * 
+ * + * string uid = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The uid. + */ + public java.lang.String getUid() { + java.lang.Object ref = uid_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. System-generated unique identifier for the resource.
+     * 
+ * + * string uid = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for uid. + */ + public com.google.protobuf.ByteString getUidBytes() { + java.lang.Object ref = uid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. System-generated unique identifier for the resource.
+     * 
+ * + * string uid = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The uid to set. + * @return This builder for chaining. + */ + public Builder setUid(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + uid_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. System-generated unique identifier for the resource.
+     * 
+ * + * string uid = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearUid() { + + uid_ = getDefaultInstance().getUid(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. System-generated unique identifier for the resource.
+     * 
+ * + * string uid = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for uid to set. + * @return This builder for chaining. + */ + public Builder setUidBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + uid_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.vmwareengine.v1.PrivateCloud) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmwareengine.v1.PrivateCloud) + private static final com.google.cloud.vmwareengine.v1.PrivateCloud DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmwareengine.v1.PrivateCloud(); + } + + public static com.google.cloud.vmwareengine.v1.PrivateCloud getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PrivateCloud 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.vmwareengine.v1.PrivateCloud getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/PrivateCloudName.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/PrivateCloudName.java new file mode 100644 index 000000000000..501ccbcd94bf --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/PrivateCloudName.java @@ -0,0 +1,227 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.vmwareengine.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class PrivateCloudName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_PRIVATE_CLOUD = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/privateClouds/{private_cloud}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String privateCloud; + + @Deprecated + protected PrivateCloudName() { + project = null; + location = null; + privateCloud = null; + } + + private PrivateCloudName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + privateCloud = Preconditions.checkNotNull(builder.getPrivateCloud()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getPrivateCloud() { + return privateCloud; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static PrivateCloudName of(String project, String location, String privateCloud) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setPrivateCloud(privateCloud) + .build(); + } + + public static String format(String project, String location, String privateCloud) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setPrivateCloud(privateCloud) + .build() + .toString(); + } + + public static PrivateCloudName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_PRIVATE_CLOUD.validatedMatch( + formattedString, "PrivateCloudName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("private_cloud")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (PrivateCloudName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_PRIVATE_CLOUD.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (privateCloud != null) { + fieldMapBuilder.put("private_cloud", privateCloud); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_PRIVATE_CLOUD.instantiate( + "project", project, "location", location, "private_cloud", privateCloud); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null || getClass() == o.getClass()) { + PrivateCloudName that = ((PrivateCloudName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.privateCloud, that.privateCloud); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(privateCloud); + return h; + } + + /** Builder for projects/{project}/locations/{location}/privateClouds/{private_cloud}. */ + public static class Builder { + private String project; + private String location; + private String privateCloud; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getPrivateCloud() { + return privateCloud; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setPrivateCloud(String privateCloud) { + this.privateCloud = privateCloud; + return this; + } + + private Builder(PrivateCloudName privateCloudName) { + this.project = privateCloudName.project; + this.location = privateCloudName.location; + this.privateCloud = privateCloudName.privateCloud; + } + + public PrivateCloudName build() { + return new PrivateCloudName(this); + } + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/PrivateCloudOrBuilder.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/PrivateCloudOrBuilder.java new file mode 100644 index 000000000000..58342c136ddb --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/PrivateCloudOrBuilder.java @@ -0,0 +1,503 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmwareengine/v1/vmwareengine.proto + +package com.google.cloud.vmwareengine.v1; + +public interface PrivateCloudOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmwareengine.v1.PrivateCloud) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. The resource name of this private cloud.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Output only. The resource name of this private cloud.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Output only. Creation time of this resource.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + * + * + *
+   * Output only. Creation time of this resource.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + * + * + *
+   * Output only. Creation time of this resource.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. Last update time of this resource.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + /** + * + * + *
+   * Output only. Last update time of this resource.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + /** + * + * + *
+   * Output only. Last update time of this resource.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. Time when the resource was scheduled for deletion.
+   * 
+ * + * .google.protobuf.Timestamp delete_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the deleteTime field is set. + */ + boolean hasDeleteTime(); + /** + * + * + *
+   * Output only. Time when the resource was scheduled for deletion.
+   * 
+ * + * .google.protobuf.Timestamp delete_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The deleteTime. + */ + com.google.protobuf.Timestamp getDeleteTime(); + /** + * + * + *
+   * Output only. Time when the resource was scheduled for deletion.
+   * 
+ * + * .google.protobuf.Timestamp delete_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder(); + + /** + * + * + *
+   * Output only. Time when the resource will be irreversibly deleted.
+   * 
+ * + * .google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the expireTime field is set. + */ + boolean hasExpireTime(); + /** + * + * + *
+   * Output only. Time when the resource will be irreversibly deleted.
+   * 
+ * + * .google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The expireTime. + */ + com.google.protobuf.Timestamp getExpireTime(); + /** + * + * + *
+   * Output only. Time when the resource will be irreversibly deleted.
+   * 
+ * + * .google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder(); + + /** + * + * + *
+   * Output only. State of the resource. New values may be added to this enum
+   * when appropriate.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.PrivateCloud.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + /** + * + * + *
+   * Output only. State of the resource. New values may be added to this enum
+   * when appropriate.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.PrivateCloud.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.vmwareengine.v1.PrivateCloud.State getState(); + + /** + * + * + *
+   * Required. Network configuration of the private cloud.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.NetworkConfig network_config = 9 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the networkConfig field is set. + */ + boolean hasNetworkConfig(); + /** + * + * + *
+   * Required. Network configuration of the private cloud.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.NetworkConfig network_config = 9 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The networkConfig. + */ + com.google.cloud.vmwareengine.v1.NetworkConfig getNetworkConfig(); + /** + * + * + *
+   * Required. Network configuration of the private cloud.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.NetworkConfig network_config = 9 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.vmwareengine.v1.NetworkConfigOrBuilder getNetworkConfigOrBuilder(); + + /** + * + * + *
+   * Input only. The management cluster for this private cloud.
+   * This field is required during creation of the private cloud to provide
+   * details for the default cluster.
+   * The following fields can't be changed after private cloud creation:
+   * `ManagementCluster.clusterId`, `ManagementCluster.nodeTypeId`.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster management_cluster = 10 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @return Whether the managementCluster field is set. + */ + boolean hasManagementCluster(); + /** + * + * + *
+   * Input only. The management cluster for this private cloud.
+   * This field is required during creation of the private cloud to provide
+   * details for the default cluster.
+   * The following fields can't be changed after private cloud creation:
+   * `ManagementCluster.clusterId`, `ManagementCluster.nodeTypeId`.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster management_cluster = 10 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @return The managementCluster. + */ + com.google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster getManagementCluster(); + /** + * + * + *
+   * Input only. The management cluster for this private cloud.
+   * This field is required during creation of the private cloud to provide
+   * details for the default cluster.
+   * The following fields can't be changed after private cloud creation:
+   * `ManagementCluster.clusterId`, `ManagementCluster.nodeTypeId`.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster management_cluster = 10 [(.google.api.field_behavior) = INPUT_ONLY]; + * + */ + com.google.cloud.vmwareengine.v1.PrivateCloud.ManagementClusterOrBuilder + getManagementClusterOrBuilder(); + + /** + * + * + *
+   * User-provided description for this private cloud.
+   * 
+ * + * string description = 11; + * + * @return The description. + */ + java.lang.String getDescription(); + /** + * + * + *
+   * User-provided description for this private cloud.
+   * 
+ * + * string description = 11; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
+   * Output only. HCX appliance.
+   * 
+ * + * .google.cloud.vmwareengine.v1.Hcx hcx = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the hcx field is set. + */ + boolean hasHcx(); + /** + * + * + *
+   * Output only. HCX appliance.
+   * 
+ * + * .google.cloud.vmwareengine.v1.Hcx hcx = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The hcx. + */ + com.google.cloud.vmwareengine.v1.Hcx getHcx(); + /** + * + * + *
+   * Output only. HCX appliance.
+   * 
+ * + * .google.cloud.vmwareengine.v1.Hcx hcx = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.vmwareengine.v1.HcxOrBuilder getHcxOrBuilder(); + + /** + * + * + *
+   * Output only. NSX appliance.
+   * 
+ * + * .google.cloud.vmwareengine.v1.Nsx nsx = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the nsx field is set. + */ + boolean hasNsx(); + /** + * + * + *
+   * Output only. NSX appliance.
+   * 
+ * + * .google.cloud.vmwareengine.v1.Nsx nsx = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The nsx. + */ + com.google.cloud.vmwareengine.v1.Nsx getNsx(); + /** + * + * + *
+   * Output only. NSX appliance.
+   * 
+ * + * .google.cloud.vmwareengine.v1.Nsx nsx = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.vmwareengine.v1.NsxOrBuilder getNsxOrBuilder(); + + /** + * + * + *
+   * Output only. Vcenter appliance.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.Vcenter vcenter = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the vcenter field is set. + */ + boolean hasVcenter(); + /** + * + * + *
+   * Output only. Vcenter appliance.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.Vcenter vcenter = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The vcenter. + */ + com.google.cloud.vmwareengine.v1.Vcenter getVcenter(); + /** + * + * + *
+   * Output only. Vcenter appliance.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.Vcenter vcenter = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.vmwareengine.v1.VcenterOrBuilder getVcenterOrBuilder(); + + /** + * + * + *
+   * Output only. System-generated unique identifier for the resource.
+   * 
+ * + * string uid = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The uid. + */ + java.lang.String getUid(); + /** + * + * + *
+   * Output only. System-generated unique identifier for the resource.
+   * 
+ * + * string uid = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for uid. + */ + com.google.protobuf.ByteString getUidBytes(); +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ResetNsxCredentialsRequest.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ResetNsxCredentialsRequest.java new file mode 100644 index 000000000000..4798f6118a97 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ResetNsxCredentialsRequest.java @@ -0,0 +1,920 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmwareengine/v1/vmwareengine.proto + +package com.google.cloud.vmwareengine.v1; + +/** + * + * + *
+ * Request message for [VmwareEngine.ResetNsxCredentials][google.cloud.vmwareengine.v1.VmwareEngine.ResetNsxCredentials]
+ * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest} + */ +public final class ResetNsxCredentialsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest) + ResetNsxCredentialsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ResetNsxCredentialsRequest.newBuilder() to construct. + private ResetNsxCredentialsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ResetNsxCredentialsRequest() { + privateCloud_ = ""; + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ResetNsxCredentialsRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ResetNsxCredentialsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ResetNsxCredentialsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest.class, + com.google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest.Builder.class); + } + + public static final int PRIVATE_CLOUD_FIELD_NUMBER = 1; + private volatile java.lang.Object privateCloud_; + /** + * + * + *
+   * Required. The resource name of the private cloud
+   * to reset credentials for.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud`
+   * 
+ * + * + * string private_cloud = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The privateCloud. + */ + @java.lang.Override + public java.lang.String getPrivateCloud() { + java.lang.Object ref = privateCloud_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + privateCloud_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The resource name of the private cloud
+   * to reset credentials for.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud`
+   * 
+ * + * + * string private_cloud = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for privateCloud. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPrivateCloudBytes() { + java.lang.Object ref = privateCloud_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + privateCloud_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REQUEST_ID_FIELD_NUMBER = 2; + private volatile java.lang.Object requestId_; + /** + * + * + *
+   * Optional. A request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server guarantees that a
+   * request doesn't result in creation of duplicate commitments for at least 60
+   * minutes.
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. A request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server guarantees that a
+   * request doesn't result in creation of duplicate commitments for at least 60
+   * minutes.
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(privateCloud_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, privateCloud_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(privateCloud_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, privateCloud_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, requestId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest)) { + return super.equals(obj); + } + com.google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest other = + (com.google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest) obj; + + if (!getPrivateCloud().equals(other.getPrivateCloud())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PRIVATE_CLOUD_FIELD_NUMBER; + hash = (53 * hash) + getPrivateCloud().hashCode(); + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest 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.vmwareengine.v1.ResetNsxCredentialsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for [VmwareEngine.ResetNsxCredentials][google.cloud.vmwareengine.v1.VmwareEngine.ResetNsxCredentials]
+   * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest) + com.google.cloud.vmwareengine.v1.ResetNsxCredentialsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ResetNsxCredentialsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ResetNsxCredentialsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest.class, + com.google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest.Builder.class); + } + + // Construct using com.google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + privateCloud_ = ""; + + requestId_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ResetNsxCredentialsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest getDefaultInstanceForType() { + return com.google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest build() { + com.google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest buildPartial() { + com.google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest result = + new com.google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest(this); + result.privateCloud_ = privateCloud_; + result.requestId_ = requestId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest) { + return mergeFrom((com.google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest other) { + if (other == com.google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest.getDefaultInstance()) + return this; + if (!other.getPrivateCloud().isEmpty()) { + privateCloud_ = other.privateCloud_; + onChanged(); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + privateCloud_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + requestId_ = input.readStringRequireUtf8(); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private java.lang.Object privateCloud_ = ""; + /** + * + * + *
+     * Required. The resource name of the private cloud
+     * to reset credentials for.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud`
+     * 
+ * + * + * string private_cloud = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The privateCloud. + */ + public java.lang.String getPrivateCloud() { + java.lang.Object ref = privateCloud_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + privateCloud_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the private cloud
+     * to reset credentials for.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud`
+     * 
+ * + * + * string private_cloud = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for privateCloud. + */ + public com.google.protobuf.ByteString getPrivateCloudBytes() { + java.lang.Object ref = privateCloud_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + privateCloud_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the private cloud
+     * to reset credentials for.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud`
+     * 
+ * + * + * string private_cloud = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The privateCloud to set. + * @return This builder for chaining. + */ + public Builder setPrivateCloud(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + privateCloud_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the private cloud
+     * to reset credentials for.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud`
+     * 
+ * + * + * string private_cloud = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearPrivateCloud() { + + privateCloud_ = getDefaultInstance().getPrivateCloud(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the private cloud
+     * to reset credentials for.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud`
+     * 
+ * + * + * string private_cloud = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for privateCloud to set. + * @return This builder for chaining. + */ + public Builder setPrivateCloudBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + privateCloud_ = value; + onChanged(); + return this; + } + + private java.lang.Object requestId_ = ""; + /** + * + * + *
+     * Optional. A request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server guarantees that a
+     * request doesn't result in creation of duplicate commitments for at least 60
+     * minutes.
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. A request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server guarantees that a
+     * request doesn't result in creation of duplicate commitments for at least 60
+     * minutes.
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. A request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server guarantees that a
+     * request doesn't result in creation of duplicate commitments for at least 60
+     * minutes.
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + requestId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server guarantees that a
+     * request doesn't result in creation of duplicate commitments for at least 60
+     * minutes.
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + + requestId_ = getDefaultInstance().getRequestId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server guarantees that a
+     * request doesn't result in creation of duplicate commitments for at least 60
+     * minutes.
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + requestId_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest) + private static final com.google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest(); + } + + public static com.google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResetNsxCredentialsRequest 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.vmwareengine.v1.ResetNsxCredentialsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ResetNsxCredentialsRequestOrBuilder.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ResetNsxCredentialsRequestOrBuilder.java new file mode 100644 index 000000000000..7a3a9eb42bef --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ResetNsxCredentialsRequestOrBuilder.java @@ -0,0 +1,111 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmwareengine/v1/vmwareengine.proto + +package com.google.cloud.vmwareengine.v1; + +public interface ResetNsxCredentialsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the private cloud
+   * to reset credentials for.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud`
+   * 
+ * + * + * string private_cloud = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The privateCloud. + */ + java.lang.String getPrivateCloud(); + /** + * + * + *
+   * Required. The resource name of the private cloud
+   * to reset credentials for.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud`
+   * 
+ * + * + * string private_cloud = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for privateCloud. + */ + com.google.protobuf.ByteString getPrivateCloudBytes(); + + /** + * + * + *
+   * Optional. A request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server guarantees that a
+   * request doesn't result in creation of duplicate commitments for at least 60
+   * minutes.
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + java.lang.String getRequestId(); + /** + * + * + *
+   * Optional. A request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server guarantees that a
+   * request doesn't result in creation of duplicate commitments for at least 60
+   * minutes.
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ResetVcenterCredentialsRequest.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ResetVcenterCredentialsRequest.java new file mode 100644 index 000000000000..ac1246adc20a --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ResetVcenterCredentialsRequest.java @@ -0,0 +1,927 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmwareengine/v1/vmwareengine.proto + +package com.google.cloud.vmwareengine.v1; + +/** + * + * + *
+ * Request message for [VmwareEngine.ResetVcenterCredentials][google.cloud.vmwareengine.v1.VmwareEngine.ResetVcenterCredentials]
+ * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest} + */ +public final class ResetVcenterCredentialsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest) + ResetVcenterCredentialsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ResetVcenterCredentialsRequest.newBuilder() to construct. + private ResetVcenterCredentialsRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ResetVcenterCredentialsRequest() { + privateCloud_ = ""; + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ResetVcenterCredentialsRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ResetVcenterCredentialsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ResetVcenterCredentialsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest.class, + com.google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest.Builder.class); + } + + public static final int PRIVATE_CLOUD_FIELD_NUMBER = 1; + private volatile java.lang.Object privateCloud_; + /** + * + * + *
+   * Required. The resource name of the private cloud
+   * to reset credentials for.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud`
+   * 
+ * + * + * string private_cloud = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The privateCloud. + */ + @java.lang.Override + public java.lang.String getPrivateCloud() { + java.lang.Object ref = privateCloud_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + privateCloud_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The resource name of the private cloud
+   * to reset credentials for.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud`
+   * 
+ * + * + * string private_cloud = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for privateCloud. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPrivateCloudBytes() { + java.lang.Object ref = privateCloud_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + privateCloud_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REQUEST_ID_FIELD_NUMBER = 2; + private volatile java.lang.Object requestId_; + /** + * + * + *
+   * Optional. A request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server guarantees that a
+   * request doesn't result in creation of duplicate commitments for at least 60
+   * minutes.
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. A request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server guarantees that a
+   * request doesn't result in creation of duplicate commitments for at least 60
+   * minutes.
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(privateCloud_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, privateCloud_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(privateCloud_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, privateCloud_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, requestId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest)) { + return super.equals(obj); + } + com.google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest other = + (com.google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest) obj; + + if (!getPrivateCloud().equals(other.getPrivateCloud())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PRIVATE_CLOUD_FIELD_NUMBER; + hash = (53 * hash) + getPrivateCloud().hashCode(); + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest 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.vmwareengine.v1.ResetVcenterCredentialsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for [VmwareEngine.ResetVcenterCredentials][google.cloud.vmwareengine.v1.VmwareEngine.ResetVcenterCredentials]
+   * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest) + com.google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ResetVcenterCredentialsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ResetVcenterCredentialsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest.class, + com.google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest.Builder.class); + } + + // Construct using com.google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + privateCloud_ = ""; + + requestId_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ResetVcenterCredentialsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest + getDefaultInstanceForType() { + return com.google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest build() { + com.google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest buildPartial() { + com.google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest result = + new com.google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest(this); + result.privateCloud_ = privateCloud_; + result.requestId_ = requestId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest) { + return mergeFrom((com.google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest other) { + if (other + == com.google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest.getDefaultInstance()) + return this; + if (!other.getPrivateCloud().isEmpty()) { + privateCloud_ = other.privateCloud_; + onChanged(); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + privateCloud_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + requestId_ = input.readStringRequireUtf8(); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private java.lang.Object privateCloud_ = ""; + /** + * + * + *
+     * Required. The resource name of the private cloud
+     * to reset credentials for.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud`
+     * 
+ * + * + * string private_cloud = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The privateCloud. + */ + public java.lang.String getPrivateCloud() { + java.lang.Object ref = privateCloud_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + privateCloud_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the private cloud
+     * to reset credentials for.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud`
+     * 
+ * + * + * string private_cloud = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for privateCloud. + */ + public com.google.protobuf.ByteString getPrivateCloudBytes() { + java.lang.Object ref = privateCloud_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + privateCloud_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the private cloud
+     * to reset credentials for.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud`
+     * 
+ * + * + * string private_cloud = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The privateCloud to set. + * @return This builder for chaining. + */ + public Builder setPrivateCloud(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + privateCloud_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the private cloud
+     * to reset credentials for.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud`
+     * 
+ * + * + * string private_cloud = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearPrivateCloud() { + + privateCloud_ = getDefaultInstance().getPrivateCloud(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the private cloud
+     * to reset credentials for.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud`
+     * 
+ * + * + * string private_cloud = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for privateCloud to set. + * @return This builder for chaining. + */ + public Builder setPrivateCloudBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + privateCloud_ = value; + onChanged(); + return this; + } + + private java.lang.Object requestId_ = ""; + /** + * + * + *
+     * Optional. A request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server guarantees that a
+     * request doesn't result in creation of duplicate commitments for at least 60
+     * minutes.
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. A request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server guarantees that a
+     * request doesn't result in creation of duplicate commitments for at least 60
+     * minutes.
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. A request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server guarantees that a
+     * request doesn't result in creation of duplicate commitments for at least 60
+     * minutes.
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + requestId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server guarantees that a
+     * request doesn't result in creation of duplicate commitments for at least 60
+     * minutes.
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + + requestId_ = getDefaultInstance().getRequestId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server guarantees that a
+     * request doesn't result in creation of duplicate commitments for at least 60
+     * minutes.
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + requestId_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest) + private static final com.google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest(); + } + + public static com.google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResetVcenterCredentialsRequest 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.vmwareengine.v1.ResetVcenterCredentialsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ResetVcenterCredentialsRequestOrBuilder.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ResetVcenterCredentialsRequestOrBuilder.java new file mode 100644 index 000000000000..ad54bf1bbf42 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ResetVcenterCredentialsRequestOrBuilder.java @@ -0,0 +1,111 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmwareengine/v1/vmwareengine.proto + +package com.google.cloud.vmwareengine.v1; + +public interface ResetVcenterCredentialsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the private cloud
+   * to reset credentials for.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud`
+   * 
+ * + * + * string private_cloud = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The privateCloud. + */ + java.lang.String getPrivateCloud(); + /** + * + * + *
+   * Required. The resource name of the private cloud
+   * to reset credentials for.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud`
+   * 
+ * + * + * string private_cloud = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for privateCloud. + */ + com.google.protobuf.ByteString getPrivateCloudBytes(); + + /** + * + * + *
+   * Optional. A request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server guarantees that a
+   * request doesn't result in creation of duplicate commitments for at least 60
+   * minutes.
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + java.lang.String getRequestId(); + /** + * + * + *
+   * Optional. A request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server guarantees that a
+   * request doesn't result in creation of duplicate commitments for at least 60
+   * minutes.
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ShowNsxCredentialsRequest.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ShowNsxCredentialsRequest.java new file mode 100644 index 000000000000..37eb4bd67f51 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ShowNsxCredentialsRequest.java @@ -0,0 +1,665 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmwareengine/v1/vmwareengine.proto + +package com.google.cloud.vmwareengine.v1; + +/** + * + * + *
+ * Request message for [VmwareEngine.ShowNsxCredentials][google.cloud.vmwareengine.v1.VmwareEngine.ShowNsxCredentials]
+ * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest} + */ +public final class ShowNsxCredentialsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest) + ShowNsxCredentialsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ShowNsxCredentialsRequest.newBuilder() to construct. + private ShowNsxCredentialsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ShowNsxCredentialsRequest() { + privateCloud_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ShowNsxCredentialsRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ShowNsxCredentialsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ShowNsxCredentialsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest.class, + com.google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest.Builder.class); + } + + public static final int PRIVATE_CLOUD_FIELD_NUMBER = 1; + private volatile java.lang.Object privateCloud_; + /** + * + * + *
+   * Required. The resource name of the private cloud
+   * to be queried for credentials.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud`
+   * 
+ * + * + * string private_cloud = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The privateCloud. + */ + @java.lang.Override + public java.lang.String getPrivateCloud() { + java.lang.Object ref = privateCloud_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + privateCloud_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The resource name of the private cloud
+   * to be queried for credentials.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud`
+   * 
+ * + * + * string private_cloud = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for privateCloud. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPrivateCloudBytes() { + java.lang.Object ref = privateCloud_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + privateCloud_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(privateCloud_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, privateCloud_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(privateCloud_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, privateCloud_); + } + 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.vmwareengine.v1.ShowNsxCredentialsRequest)) { + return super.equals(obj); + } + com.google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest other = + (com.google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest) obj; + + if (!getPrivateCloud().equals(other.getPrivateCloud())) 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) + PRIVATE_CLOUD_FIELD_NUMBER; + hash = (53 * hash) + getPrivateCloud().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest 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.vmwareengine.v1.ShowNsxCredentialsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for [VmwareEngine.ShowNsxCredentials][google.cloud.vmwareengine.v1.VmwareEngine.ShowNsxCredentials]
+   * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest) + com.google.cloud.vmwareengine.v1.ShowNsxCredentialsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ShowNsxCredentialsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ShowNsxCredentialsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest.class, + com.google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest.Builder.class); + } + + // Construct using com.google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + privateCloud_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ShowNsxCredentialsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest getDefaultInstanceForType() { + return com.google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest build() { + com.google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest buildPartial() { + com.google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest result = + new com.google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest(this); + result.privateCloud_ = privateCloud_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest) { + return mergeFrom((com.google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest other) { + if (other == com.google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest.getDefaultInstance()) + return this; + if (!other.getPrivateCloud().isEmpty()) { + privateCloud_ = other.privateCloud_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + privateCloud_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private java.lang.Object privateCloud_ = ""; + /** + * + * + *
+     * Required. The resource name of the private cloud
+     * to be queried for credentials.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud`
+     * 
+ * + * + * string private_cloud = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The privateCloud. + */ + public java.lang.String getPrivateCloud() { + java.lang.Object ref = privateCloud_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + privateCloud_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the private cloud
+     * to be queried for credentials.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud`
+     * 
+ * + * + * string private_cloud = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for privateCloud. + */ + public com.google.protobuf.ByteString getPrivateCloudBytes() { + java.lang.Object ref = privateCloud_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + privateCloud_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the private cloud
+     * to be queried for credentials.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud`
+     * 
+ * + * + * string private_cloud = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The privateCloud to set. + * @return This builder for chaining. + */ + public Builder setPrivateCloud(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + privateCloud_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the private cloud
+     * to be queried for credentials.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud`
+     * 
+ * + * + * string private_cloud = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearPrivateCloud() { + + privateCloud_ = getDefaultInstance().getPrivateCloud(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the private cloud
+     * to be queried for credentials.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud`
+     * 
+ * + * + * string private_cloud = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for privateCloud to set. + * @return This builder for chaining. + */ + public Builder setPrivateCloudBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + privateCloud_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest) + private static final com.google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest(); + } + + public static com.google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ShowNsxCredentialsRequest 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.vmwareengine.v1.ShowNsxCredentialsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ShowNsxCredentialsRequestOrBuilder.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ShowNsxCredentialsRequestOrBuilder.java new file mode 100644 index 000000000000..be0b0b360ad9 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ShowNsxCredentialsRequestOrBuilder.java @@ -0,0 +1,64 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmwareengine/v1/vmwareengine.proto + +package com.google.cloud.vmwareengine.v1; + +public interface ShowNsxCredentialsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the private cloud
+   * to be queried for credentials.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud`
+   * 
+ * + * + * string private_cloud = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The privateCloud. + */ + java.lang.String getPrivateCloud(); + /** + * + * + *
+   * Required. The resource name of the private cloud
+   * to be queried for credentials.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud`
+   * 
+ * + * + * string private_cloud = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for privateCloud. + */ + com.google.protobuf.ByteString getPrivateCloudBytes(); +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ShowVcenterCredentialsRequest.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ShowVcenterCredentialsRequest.java new file mode 100644 index 000000000000..5820012f158d --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ShowVcenterCredentialsRequest.java @@ -0,0 +1,670 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmwareengine/v1/vmwareengine.proto + +package com.google.cloud.vmwareengine.v1; + +/** + * + * + *
+ * Request message for [VmwareEngine.ShowVcenterCredentials][google.cloud.vmwareengine.v1.VmwareEngine.ShowVcenterCredentials]
+ * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest} + */ +public final class ShowVcenterCredentialsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest) + ShowVcenterCredentialsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ShowVcenterCredentialsRequest.newBuilder() to construct. + private ShowVcenterCredentialsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ShowVcenterCredentialsRequest() { + privateCloud_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ShowVcenterCredentialsRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ShowVcenterCredentialsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ShowVcenterCredentialsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest.class, + com.google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest.Builder.class); + } + + public static final int PRIVATE_CLOUD_FIELD_NUMBER = 1; + private volatile java.lang.Object privateCloud_; + /** + * + * + *
+   * Required. The resource name of the private cloud
+   * to be queried for credentials.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud`
+   * 
+ * + * + * string private_cloud = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The privateCloud. + */ + @java.lang.Override + public java.lang.String getPrivateCloud() { + java.lang.Object ref = privateCloud_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + privateCloud_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The resource name of the private cloud
+   * to be queried for credentials.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud`
+   * 
+ * + * + * string private_cloud = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for privateCloud. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPrivateCloudBytes() { + java.lang.Object ref = privateCloud_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + privateCloud_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(privateCloud_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, privateCloud_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(privateCloud_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, privateCloud_); + } + 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.vmwareengine.v1.ShowVcenterCredentialsRequest)) { + return super.equals(obj); + } + com.google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest other = + (com.google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest) obj; + + if (!getPrivateCloud().equals(other.getPrivateCloud())) 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) + PRIVATE_CLOUD_FIELD_NUMBER; + hash = (53 * hash) + getPrivateCloud().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest 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.vmwareengine.v1.ShowVcenterCredentialsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for [VmwareEngine.ShowVcenterCredentials][google.cloud.vmwareengine.v1.VmwareEngine.ShowVcenterCredentials]
+   * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest) + com.google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ShowVcenterCredentialsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ShowVcenterCredentialsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest.class, + com.google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest.Builder.class); + } + + // Construct using com.google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + privateCloud_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_ShowVcenterCredentialsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest + getDefaultInstanceForType() { + return com.google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest build() { + com.google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest buildPartial() { + com.google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest result = + new com.google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest(this); + result.privateCloud_ = privateCloud_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest) { + return mergeFrom((com.google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest other) { + if (other + == com.google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest.getDefaultInstance()) + return this; + if (!other.getPrivateCloud().isEmpty()) { + privateCloud_ = other.privateCloud_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + privateCloud_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private java.lang.Object privateCloud_ = ""; + /** + * + * + *
+     * Required. The resource name of the private cloud
+     * to be queried for credentials.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud`
+     * 
+ * + * + * string private_cloud = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The privateCloud. + */ + public java.lang.String getPrivateCloud() { + java.lang.Object ref = privateCloud_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + privateCloud_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the private cloud
+     * to be queried for credentials.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud`
+     * 
+ * + * + * string private_cloud = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for privateCloud. + */ + public com.google.protobuf.ByteString getPrivateCloudBytes() { + java.lang.Object ref = privateCloud_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + privateCloud_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the private cloud
+     * to be queried for credentials.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud`
+     * 
+ * + * + * string private_cloud = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The privateCloud to set. + * @return This builder for chaining. + */ + public Builder setPrivateCloud(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + privateCloud_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the private cloud
+     * to be queried for credentials.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud`
+     * 
+ * + * + * string private_cloud = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearPrivateCloud() { + + privateCloud_ = getDefaultInstance().getPrivateCloud(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the private cloud
+     * to be queried for credentials.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud`
+     * 
+ * + * + * string private_cloud = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for privateCloud to set. + * @return This builder for chaining. + */ + public Builder setPrivateCloudBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + privateCloud_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest) + private static final com.google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest(); + } + + public static com.google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ShowVcenterCredentialsRequest 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.vmwareengine.v1.ShowVcenterCredentialsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ShowVcenterCredentialsRequestOrBuilder.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ShowVcenterCredentialsRequestOrBuilder.java new file mode 100644 index 000000000000..f55c6152cb4d --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ShowVcenterCredentialsRequestOrBuilder.java @@ -0,0 +1,64 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmwareengine/v1/vmwareengine.proto + +package com.google.cloud.vmwareengine.v1; + +public interface ShowVcenterCredentialsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the private cloud
+   * to be queried for credentials.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud`
+   * 
+ * + * + * string private_cloud = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The privateCloud. + */ + java.lang.String getPrivateCloud(); + /** + * + * + *
+   * Required. The resource name of the private cloud
+   * to be queried for credentials.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud`
+   * 
+ * + * + * string private_cloud = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for privateCloud. + */ + com.google.protobuf.ByteString getPrivateCloudBytes(); +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/Subnet.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/Subnet.java new file mode 100644 index 000000000000..7231775eae98 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/Subnet.java @@ -0,0 +1,1548 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmwareengine/v1/vmwareengine.proto + +package com.google.cloud.vmwareengine.v1; + +/** + * + * + *
+ * Subnet in a private cloud. Either `management` subnets (such as vMotion) that
+ * are read-only, or `userDefined`, which can also be updated.
+ * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.Subnet} + */ +public final class Subnet extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmwareengine.v1.Subnet) + SubnetOrBuilder { + private static final long serialVersionUID = 0L; + // Use Subnet.newBuilder() to construct. + private Subnet(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Subnet() { + name_ = ""; + ipCidrRange_ = ""; + gatewayIp_ = ""; + type_ = ""; + state_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Subnet(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_Subnet_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_Subnet_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.Subnet.class, + com.google.cloud.vmwareengine.v1.Subnet.Builder.class); + } + + /** + * + * + *
+   * Defines possible states of subnets.
+   * 
+ * + * Protobuf enum {@code google.cloud.vmwareengine.v1.Subnet.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * The default value. This value should never be used.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
+     * The subnet is ready.
+     * 
+ * + * ACTIVE = 1; + */ + ACTIVE(1), + /** + * + * + *
+     * The subnet is being created.
+     * 
+ * + * CREATING = 2; + */ + CREATING(2), + /** + * + * + *
+     * The subnet is being updated.
+     * 
+ * + * UPDATING = 3; + */ + UPDATING(3), + /** + * + * + *
+     * The subnet is being deleted.
+     * 
+ * + * DELETING = 4; + */ + DELETING(4), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * The default value. This value should never be used.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * The subnet is ready.
+     * 
+ * + * ACTIVE = 1; + */ + public static final int ACTIVE_VALUE = 1; + /** + * + * + *
+     * The subnet is being created.
+     * 
+ * + * CREATING = 2; + */ + public static final int CREATING_VALUE = 2; + /** + * + * + *
+     * The subnet is being updated.
+     * 
+ * + * UPDATING = 3; + */ + public static final int UPDATING_VALUE = 3; + /** + * + * + *
+     * The subnet is being deleted.
+     * 
+ * + * DELETING = 4; + */ + public static final int DELETING_VALUE = 4; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return ACTIVE; + case 2: + return CREATING; + case 3: + return UPDATING; + case 4: + return DELETING; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.Subnet.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.vmwareengine.v1.Subnet.State) + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Output only. The resource name of this subnet.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud/subnets/my-subnet`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The resource name of this subnet.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud/subnets/my-subnet`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int IP_CIDR_RANGE_FIELD_NUMBER = 7; + private volatile java.lang.Object ipCidrRange_; + /** + * + * + *
+   * The IP address range of the subnet in CIDR format '10.0.0.0/24'.
+   * 
+ * + * string ip_cidr_range = 7; + * + * @return The ipCidrRange. + */ + @java.lang.Override + public java.lang.String getIpCidrRange() { + java.lang.Object ref = ipCidrRange_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ipCidrRange_ = s; + return s; + } + } + /** + * + * + *
+   * The IP address range of the subnet in CIDR format '10.0.0.0/24'.
+   * 
+ * + * string ip_cidr_range = 7; + * + * @return The bytes for ipCidrRange. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIpCidrRangeBytes() { + java.lang.Object ref = ipCidrRange_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ipCidrRange_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int GATEWAY_IP_FIELD_NUMBER = 8; + private volatile java.lang.Object gatewayIp_; + /** + * + * + *
+   * The IP address of the gateway of this subnet.
+   * Must fall within the IP prefix defined above.
+   * 
+ * + * string gateway_ip = 8; + * + * @return The gatewayIp. + */ + @java.lang.Override + public java.lang.String getGatewayIp() { + java.lang.Object ref = gatewayIp_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + gatewayIp_ = s; + return s; + } + } + /** + * + * + *
+   * The IP address of the gateway of this subnet.
+   * Must fall within the IP prefix defined above.
+   * 
+ * + * string gateway_ip = 8; + * + * @return The bytes for gatewayIp. + */ + @java.lang.Override + public com.google.protobuf.ByteString getGatewayIpBytes() { + java.lang.Object ref = gatewayIp_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gatewayIp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TYPE_FIELD_NUMBER = 11; + private volatile java.lang.Object type_; + /** + * + * + *
+   * Output only. The type of the subnet. For example "management" or "userDefined".
+   * 
+ * + * string type = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + /** + * + * + *
+   * Output only. The type of the subnet. For example "management" or "userDefined".
+   * 
+ * + * string type = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + public static final int STATE_FIELD_NUMBER = 13; + private int state_; + /** + * + * + *
+   * Output only. The state of the resource.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.Subnet.State state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
+   * Output only. The state of the resource.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.Subnet.State state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.Subnet.State getState() { + @SuppressWarnings("deprecation") + com.google.cloud.vmwareengine.v1.Subnet.State result = + com.google.cloud.vmwareengine.v1.Subnet.State.valueOf(state_); + return result == null ? com.google.cloud.vmwareengine.v1.Subnet.State.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ipCidrRange_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, ipCidrRange_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gatewayIp_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, gatewayIp_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, type_); + } + if (state_ != com.google.cloud.vmwareengine.v1.Subnet.State.STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(13, state_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ipCidrRange_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, ipCidrRange_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gatewayIp_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, gatewayIp_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, type_); + } + if (state_ != com.google.cloud.vmwareengine.v1.Subnet.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(13, state_); + } + 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.vmwareengine.v1.Subnet)) { + return super.equals(obj); + } + com.google.cloud.vmwareengine.v1.Subnet other = (com.google.cloud.vmwareengine.v1.Subnet) obj; + + if (!getName().equals(other.getName())) return false; + if (!getIpCidrRange().equals(other.getIpCidrRange())) return false; + if (!getGatewayIp().equals(other.getGatewayIp())) return false; + if (!getType().equals(other.getType())) return false; + if (state_ != other.state_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + IP_CIDR_RANGE_FIELD_NUMBER; + hash = (53 * hash) + getIpCidrRange().hashCode(); + hash = (37 * hash) + GATEWAY_IP_FIELD_NUMBER; + hash = (53 * hash) + getGatewayIp().hashCode(); + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + getType().hashCode(); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmwareengine.v1.Subnet parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.Subnet 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.vmwareengine.v1.Subnet parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.Subnet parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.Subnet parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.Subnet parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.Subnet parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.Subnet parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.Subnet parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.Subnet parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.Subnet parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.Subnet parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.vmwareengine.v1.Subnet prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Subnet in a private cloud. Either `management` subnets (such as vMotion) that
+   * are read-only, or `userDefined`, which can also be updated.
+   * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.Subnet} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmwareengine.v1.Subnet) + com.google.cloud.vmwareengine.v1.SubnetOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_Subnet_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_Subnet_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.Subnet.class, + com.google.cloud.vmwareengine.v1.Subnet.Builder.class); + } + + // Construct using com.google.cloud.vmwareengine.v1.Subnet.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + ipCidrRange_ = ""; + + gatewayIp_ = ""; + + type_ = ""; + + state_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_Subnet_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.Subnet getDefaultInstanceForType() { + return com.google.cloud.vmwareengine.v1.Subnet.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.Subnet build() { + com.google.cloud.vmwareengine.v1.Subnet result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.Subnet buildPartial() { + com.google.cloud.vmwareengine.v1.Subnet result = + new com.google.cloud.vmwareengine.v1.Subnet(this); + result.name_ = name_; + result.ipCidrRange_ = ipCidrRange_; + result.gatewayIp_ = gatewayIp_; + result.type_ = type_; + result.state_ = state_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.vmwareengine.v1.Subnet) { + return mergeFrom((com.google.cloud.vmwareengine.v1.Subnet) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmwareengine.v1.Subnet other) { + if (other == com.google.cloud.vmwareengine.v1.Subnet.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getIpCidrRange().isEmpty()) { + ipCidrRange_ = other.ipCidrRange_; + onChanged(); + } + if (!other.getGatewayIp().isEmpty()) { + gatewayIp_ = other.gatewayIp_; + onChanged(); + } + if (!other.getType().isEmpty()) { + type_ = other.type_; + onChanged(); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 58: + { + ipCidrRange_ = input.readStringRequireUtf8(); + + break; + } // case 58 + case 66: + { + gatewayIp_ = input.readStringRequireUtf8(); + + break; + } // case 66 + case 90: + { + type_ = input.readStringRequireUtf8(); + + break; + } // case 90 + case 104: + { + state_ = input.readEnum(); + + break; + } // case 104 + 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 java.lang.Object name_ = ""; + /** + * + * + *
+     * Output only. The resource name of this subnet.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud/subnets/my-subnet`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The resource name of this subnet.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud/subnets/my-subnet`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The resource name of this subnet.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud/subnets/my-subnet`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The resource name of this subnet.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud/subnets/my-subnet`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The resource name of this subnet.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud/subnets/my-subnet`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.lang.Object ipCidrRange_ = ""; + /** + * + * + *
+     * The IP address range of the subnet in CIDR format '10.0.0.0/24'.
+     * 
+ * + * string ip_cidr_range = 7; + * + * @return The ipCidrRange. + */ + public java.lang.String getIpCidrRange() { + java.lang.Object ref = ipCidrRange_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ipCidrRange_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The IP address range of the subnet in CIDR format '10.0.0.0/24'.
+     * 
+ * + * string ip_cidr_range = 7; + * + * @return The bytes for ipCidrRange. + */ + public com.google.protobuf.ByteString getIpCidrRangeBytes() { + java.lang.Object ref = ipCidrRange_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ipCidrRange_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The IP address range of the subnet in CIDR format '10.0.0.0/24'.
+     * 
+ * + * string ip_cidr_range = 7; + * + * @param value The ipCidrRange to set. + * @return This builder for chaining. + */ + public Builder setIpCidrRange(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + ipCidrRange_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The IP address range of the subnet in CIDR format '10.0.0.0/24'.
+     * 
+ * + * string ip_cidr_range = 7; + * + * @return This builder for chaining. + */ + public Builder clearIpCidrRange() { + + ipCidrRange_ = getDefaultInstance().getIpCidrRange(); + onChanged(); + return this; + } + /** + * + * + *
+     * The IP address range of the subnet in CIDR format '10.0.0.0/24'.
+     * 
+ * + * string ip_cidr_range = 7; + * + * @param value The bytes for ipCidrRange to set. + * @return This builder for chaining. + */ + public Builder setIpCidrRangeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + ipCidrRange_ = value; + onChanged(); + return this; + } + + private java.lang.Object gatewayIp_ = ""; + /** + * + * + *
+     * The IP address of the gateway of this subnet.
+     * Must fall within the IP prefix defined above.
+     * 
+ * + * string gateway_ip = 8; + * + * @return The gatewayIp. + */ + public java.lang.String getGatewayIp() { + java.lang.Object ref = gatewayIp_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + gatewayIp_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The IP address of the gateway of this subnet.
+     * Must fall within the IP prefix defined above.
+     * 
+ * + * string gateway_ip = 8; + * + * @return The bytes for gatewayIp. + */ + public com.google.protobuf.ByteString getGatewayIpBytes() { + java.lang.Object ref = gatewayIp_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gatewayIp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The IP address of the gateway of this subnet.
+     * Must fall within the IP prefix defined above.
+     * 
+ * + * string gateway_ip = 8; + * + * @param value The gatewayIp to set. + * @return This builder for chaining. + */ + public Builder setGatewayIp(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + gatewayIp_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The IP address of the gateway of this subnet.
+     * Must fall within the IP prefix defined above.
+     * 
+ * + * string gateway_ip = 8; + * + * @return This builder for chaining. + */ + public Builder clearGatewayIp() { + + gatewayIp_ = getDefaultInstance().getGatewayIp(); + onChanged(); + return this; + } + /** + * + * + *
+     * The IP address of the gateway of this subnet.
+     * Must fall within the IP prefix defined above.
+     * 
+ * + * string gateway_ip = 8; + * + * @param value The bytes for gatewayIp to set. + * @return This builder for chaining. + */ + public Builder setGatewayIpBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + gatewayIp_ = value; + onChanged(); + return this; + } + + private java.lang.Object type_ = ""; + /** + * + * + *
+     * Output only. The type of the subnet. For example "management" or "userDefined".
+     * 
+ * + * string type = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + /** + * + * + *
+     * Output only. The type of the subnet. For example "management" or "userDefined".
+     * 
+ * + * string type = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + /** + * + * + *
+     * Output only. The type of the subnet. For example "management" or "userDefined".
+     * 
+ * + * string type = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The type of the subnet. For example "management" or "userDefined".
+     * 
+ * + * string type = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearType() { + + type_ = getDefaultInstance().getType(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The type of the subnet. For example "management" or "userDefined".
+     * 
+ * + * string type = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + onChanged(); + return this; + } + + private int state_ = 0; + /** + * + * + *
+     * Output only. The state of the resource.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.Subnet.State state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
+     * Output only. The state of the resource.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.Subnet.State state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + + state_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The state of the resource.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.Subnet.State state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.Subnet.State getState() { + @SuppressWarnings("deprecation") + com.google.cloud.vmwareengine.v1.Subnet.State result = + com.google.cloud.vmwareengine.v1.Subnet.State.valueOf(state_); + return result == null ? com.google.cloud.vmwareengine.v1.Subnet.State.UNRECOGNIZED : result; + } + /** + * + * + *
+     * Output only. The state of the resource.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.Subnet.State state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.vmwareengine.v1.Subnet.State value) { + if (value == null) { + throw new NullPointerException(); + } + + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The state of the resource.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.Subnet.State state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + + state_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.vmwareengine.v1.Subnet) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmwareengine.v1.Subnet) + private static final com.google.cloud.vmwareengine.v1.Subnet DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmwareengine.v1.Subnet(); + } + + public static com.google.cloud.vmwareengine.v1.Subnet getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Subnet 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.vmwareengine.v1.Subnet getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/SubnetOrBuilder.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/SubnetOrBuilder.java new file mode 100644 index 000000000000..1b6f948f697c --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/SubnetOrBuilder.java @@ -0,0 +1,164 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmwareengine/v1/vmwareengine.proto + +package com.google.cloud.vmwareengine.v1; + +public interface SubnetOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmwareengine.v1.Subnet) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. The resource name of this subnet.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud/subnets/my-subnet`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Output only. The resource name of this subnet.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud/subnets/my-subnet`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * The IP address range of the subnet in CIDR format '10.0.0.0/24'.
+   * 
+ * + * string ip_cidr_range = 7; + * + * @return The ipCidrRange. + */ + java.lang.String getIpCidrRange(); + /** + * + * + *
+   * The IP address range of the subnet in CIDR format '10.0.0.0/24'.
+   * 
+ * + * string ip_cidr_range = 7; + * + * @return The bytes for ipCidrRange. + */ + com.google.protobuf.ByteString getIpCidrRangeBytes(); + + /** + * + * + *
+   * The IP address of the gateway of this subnet.
+   * Must fall within the IP prefix defined above.
+   * 
+ * + * string gateway_ip = 8; + * + * @return The gatewayIp. + */ + java.lang.String getGatewayIp(); + /** + * + * + *
+   * The IP address of the gateway of this subnet.
+   * Must fall within the IP prefix defined above.
+   * 
+ * + * string gateway_ip = 8; + * + * @return The bytes for gatewayIp. + */ + com.google.protobuf.ByteString getGatewayIpBytes(); + + /** + * + * + *
+   * Output only. The type of the subnet. For example "management" or "userDefined".
+   * 
+ * + * string type = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The type. + */ + java.lang.String getType(); + /** + * + * + *
+   * Output only. The type of the subnet. For example "management" or "userDefined".
+   * 
+ * + * string type = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for type. + */ + com.google.protobuf.ByteString getTypeBytes(); + + /** + * + * + *
+   * Output only. The state of the resource.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.Subnet.State state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + /** + * + * + *
+   * Output only. The state of the resource.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.Subnet.State state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.vmwareengine.v1.Subnet.State getState(); +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/UndeletePrivateCloudRequest.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/UndeletePrivateCloudRequest.java new file mode 100644 index 000000000000..7686303a8598 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/UndeletePrivateCloudRequest.java @@ -0,0 +1,846 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmwareengine/v1/vmwareengine.proto + +package com.google.cloud.vmwareengine.v1; + +/** + * + * + *
+ * Request message for [VmwareEngine.UndeletePrivateCloud][google.cloud.vmwareengine.v1.VmwareEngine.UndeletePrivateCloud]
+ * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest} + */ +public final class UndeletePrivateCloudRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest) + UndeletePrivateCloudRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UndeletePrivateCloudRequest.newBuilder() to construct. + private UndeletePrivateCloudRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UndeletePrivateCloudRequest() { + name_ = ""; + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UndeletePrivateCloudRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_UndeletePrivateCloudRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_UndeletePrivateCloudRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest.class, + com.google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required. The resource name of the private cloud scheduled for deletion.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The resource name of the private cloud scheduled for deletion.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REQUEST_ID_FIELD_NUMBER = 2; + private volatile java.lang.Object requestId_; + /** + * + * + *
+   * Optional. The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, requestId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest)) { + return super.equals(obj); + } + com.google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest other = + (com.google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest 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.vmwareengine.v1.UndeletePrivateCloudRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for [VmwareEngine.UndeletePrivateCloud][google.cloud.vmwareengine.v1.VmwareEngine.UndeletePrivateCloud]
+   * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest) + com.google.cloud.vmwareengine.v1.UndeletePrivateCloudRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_UndeletePrivateCloudRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_UndeletePrivateCloudRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest.class, + com.google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest.Builder.class); + } + + // Construct using com.google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + requestId_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_UndeletePrivateCloudRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest + getDefaultInstanceForType() { + return com.google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest build() { + com.google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest buildPartial() { + com.google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest result = + new com.google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest(this); + result.name_ = name_; + result.requestId_ = requestId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest) { + return mergeFrom((com.google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest other) { + if (other + == com.google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + requestId_ = input.readStringRequireUtf8(); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The resource name of the private cloud scheduled for deletion.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the private cloud scheduled for deletion.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the private cloud scheduled for deletion.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the private cloud scheduled for deletion.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the private cloud scheduled for deletion.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.lang.Object requestId_ = ""; + /** + * + * + *
+     * Optional. The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + requestId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + + requestId_ = getDefaultInstance().getRequestId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + requestId_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest) + private static final com.google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest(); + } + + public static com.google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UndeletePrivateCloudRequest 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.vmwareengine.v1.UndeletePrivateCloudRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/UndeletePrivateCloudRequestOrBuilder.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/UndeletePrivateCloudRequestOrBuilder.java new file mode 100644 index 000000000000..ddaf93223477 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/UndeletePrivateCloudRequestOrBuilder.java @@ -0,0 +1,89 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmwareengine/v1/vmwareengine.proto + +package com.google.cloud.vmwareengine.v1; + +public interface UndeletePrivateCloudRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the private cloud scheduled for deletion.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The resource name of the private cloud scheduled for deletion.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + java.lang.String getRequestId(); + /** + * + * + *
+   * Optional. The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/UpdateClusterRequest.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/UpdateClusterRequest.java new file mode 100644 index 000000000000..f42b3d77ad63 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/UpdateClusterRequest.java @@ -0,0 +1,1332 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmwareengine/v1/vmwareengine.proto + +package com.google.cloud.vmwareengine.v1; + +/** + * + * + *
+ * Request message for [VmwareEngine.UpdateCluster][google.cloud.vmwareengine.v1.VmwareEngine.UpdateCluster]
+ * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.UpdateClusterRequest} + */ +public final class UpdateClusterRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmwareengine.v1.UpdateClusterRequest) + UpdateClusterRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateClusterRequest.newBuilder() to construct. + private UpdateClusterRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateClusterRequest() { + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateClusterRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_UpdateClusterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_UpdateClusterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.UpdateClusterRequest.class, + com.google.cloud.vmwareengine.v1.UpdateClusterRequest.Builder.class); + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 1; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
+   * Required. Field mask is used to specify the fields to be overwritten in the
+   * `Cluster` resource by the update. The fields specified in the `updateMask`
+   * are relative to the resource, not the full request. A field will be
+   * overwritten if it is in the mask. If the user does not provide a mask then
+   * all fields will be overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return updateMask_ != null; + } + /** + * + * + *
+   * Required. Field mask is used to specify the fields to be overwritten in the
+   * `Cluster` resource by the update. The fields specified in the `updateMask`
+   * are relative to the resource, not the full request. A field will be
+   * overwritten if it is in the mask. If the user does not provide a mask then
+   * all fields will be overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + * + * + *
+   * Required. Field mask is used to specify the fields to be overwritten in the
+   * `Cluster` resource by the update. The fields specified in the `updateMask`
+   * are relative to the resource, not the full request. A field will be
+   * overwritten if it is in the mask. If the user does not provide a mask then
+   * all fields will be overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return getUpdateMask(); + } + + public static final int CLUSTER_FIELD_NUMBER = 2; + private com.google.cloud.vmwareengine.v1.Cluster cluster_; + /** + * + * + *
+   * Required. The description of the cluster.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.Cluster cluster = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the cluster field is set. + */ + @java.lang.Override + public boolean hasCluster() { + return cluster_ != null; + } + /** + * + * + *
+   * Required. The description of the cluster.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.Cluster cluster = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The cluster. + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.Cluster getCluster() { + return cluster_ == null + ? com.google.cloud.vmwareengine.v1.Cluster.getDefaultInstance() + : cluster_; + } + /** + * + * + *
+   * Required. The description of the cluster.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.Cluster cluster = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.ClusterOrBuilder getClusterOrBuilder() { + return getCluster(); + } + + public static final int REQUEST_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object requestId_; + /** + * + * + *
+   * Optional. The request ID must be a valid UUID with the exception that
+   * zero UUID is not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. The request ID must be a valid UUID with the exception that
+   * zero UUID is not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VALIDATE_ONLY_FIELD_NUMBER = 4; + private boolean validateOnly_; + /** + * + * + *
+   * Optional. True if you want the request to be validated and not executed; false
+   * otherwise.
+   * 
+ * + * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (updateMask_ != null) { + output.writeMessage(1, getUpdateMask()); + } + if (cluster_ != null) { + output.writeMessage(2, getCluster()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, requestId_); + } + if (validateOnly_ != false) { + output.writeBool(4, validateOnly_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateMask()); + } + if (cluster_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCluster()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, requestId_); + } + if (validateOnly_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, validateOnly_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.vmwareengine.v1.UpdateClusterRequest)) { + return super.equals(obj); + } + com.google.cloud.vmwareengine.v1.UpdateClusterRequest other = + (com.google.cloud.vmwareengine.v1.UpdateClusterRequest) obj; + + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (hasCluster() != other.hasCluster()) return false; + if (hasCluster()) { + if (!getCluster().equals(other.getCluster())) return false; + } + if (!getRequestId().equals(other.getRequestId())) return false; + if (getValidateOnly() != other.getValidateOnly()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + if (hasCluster()) { + hash = (37 * hash) + CLUSTER_FIELD_NUMBER; + hash = (53 * hash) + getCluster().hashCode(); + } + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmwareengine.v1.UpdateClusterRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.UpdateClusterRequest 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.vmwareengine.v1.UpdateClusterRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.UpdateClusterRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.UpdateClusterRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.UpdateClusterRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.UpdateClusterRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.UpdateClusterRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.UpdateClusterRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.UpdateClusterRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.UpdateClusterRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.UpdateClusterRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.vmwareengine.v1.UpdateClusterRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for [VmwareEngine.UpdateCluster][google.cloud.vmwareengine.v1.VmwareEngine.UpdateCluster]
+   * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.UpdateClusterRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmwareengine.v1.UpdateClusterRequest) + com.google.cloud.vmwareengine.v1.UpdateClusterRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_UpdateClusterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_UpdateClusterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.UpdateClusterRequest.class, + com.google.cloud.vmwareengine.v1.UpdateClusterRequest.Builder.class); + } + + // Construct using com.google.cloud.vmwareengine.v1.UpdateClusterRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (updateMaskBuilder_ == null) { + updateMask_ = null; + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + if (clusterBuilder_ == null) { + cluster_ = null; + } else { + cluster_ = null; + clusterBuilder_ = null; + } + requestId_ = ""; + + validateOnly_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_UpdateClusterRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.UpdateClusterRequest getDefaultInstanceForType() { + return com.google.cloud.vmwareengine.v1.UpdateClusterRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.UpdateClusterRequest build() { + com.google.cloud.vmwareengine.v1.UpdateClusterRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.UpdateClusterRequest buildPartial() { + com.google.cloud.vmwareengine.v1.UpdateClusterRequest result = + new com.google.cloud.vmwareengine.v1.UpdateClusterRequest(this); + if (updateMaskBuilder_ == null) { + result.updateMask_ = updateMask_; + } else { + result.updateMask_ = updateMaskBuilder_.build(); + } + if (clusterBuilder_ == null) { + result.cluster_ = cluster_; + } else { + result.cluster_ = clusterBuilder_.build(); + } + result.requestId_ = requestId_; + result.validateOnly_ = validateOnly_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.vmwareengine.v1.UpdateClusterRequest) { + return mergeFrom((com.google.cloud.vmwareengine.v1.UpdateClusterRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmwareengine.v1.UpdateClusterRequest other) { + if (other == com.google.cloud.vmwareengine.v1.UpdateClusterRequest.getDefaultInstance()) + return this; + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + if (other.hasCluster()) { + mergeCluster(other.getCluster()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + onChanged(); + } + if (other.getValidateOnly() != false) { + setValidateOnly(other.getValidateOnly()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 10 + case 18: + { + input.readMessage(getClusterFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + case 26: + { + requestId_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 32: + { + validateOnly_ = input.readBool(); + + break; + } // case 32 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + /** + * + * + *
+     * Required. Field mask is used to specify the fields to be overwritten in the
+     * `Cluster` resource by the update. The fields specified in the `updateMask`
+     * are relative to the resource, not the full request. A field will be
+     * overwritten if it is in the mask. If the user does not provide a mask then
+     * all fields will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return updateMaskBuilder_ != null || updateMask_ != null; + } + /** + * + * + *
+     * Required. Field mask is used to specify the fields to be overwritten in the
+     * `Cluster` resource by the update. The fields specified in the `updateMask`
+     * are relative to the resource, not the full request. A field will be
+     * overwritten if it is in the mask. If the user does not provide a mask then
+     * all fields will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. Field mask is used to specify the fields to be overwritten in the
+     * `Cluster` resource by the update. The fields specified in the `updateMask`
+     * are relative to the resource, not the full request. A field will be
+     * overwritten if it is in the mask. If the user does not provide a mask then
+     * all fields will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + onChanged(); + } else { + updateMaskBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. Field mask is used to specify the fields to be overwritten in the
+     * `Cluster` resource by the update. The fields specified in the `updateMask`
+     * are relative to the resource, not the full request. A field will be
+     * overwritten if it is in the mask. If the user does not provide a mask then
+     * all fields will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + onChanged(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. Field mask is used to specify the fields to be overwritten in the
+     * `Cluster` resource by the update. The fields specified in the `updateMask`
+     * are relative to the resource, not the full request. A field will be
+     * overwritten if it is in the mask. If the user does not provide a mask then
+     * all fields will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (updateMask_ != null) { + updateMask_ = + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + } else { + updateMask_ = value; + } + onChanged(); + } else { + updateMaskBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. Field mask is used to specify the fields to be overwritten in the
+     * `Cluster` resource by the update. The fields specified in the `updateMask`
+     * are relative to the resource, not the full request. A field will be
+     * overwritten if it is in the mask. If the user does not provide a mask then
+     * all fields will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearUpdateMask() { + if (updateMaskBuilder_ == null) { + updateMask_ = null; + onChanged(); + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. Field mask is used to specify the fields to be overwritten in the
+     * `Cluster` resource by the update. The fields specified in the `updateMask`
+     * are relative to the resource, not the full request. A field will be
+     * overwritten if it is in the mask. If the user does not provide a mask then
+     * all fields will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. Field mask is used to specify the fields to be overwritten in the
+     * `Cluster` resource by the update. The fields specified in the `updateMask`
+     * are relative to the resource, not the full request. A field will be
+     * overwritten if it is in the mask. If the user does not provide a mask then
+     * all fields will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + /** + * + * + *
+     * Required. Field mask is used to specify the fields to be overwritten in the
+     * `Cluster` resource by the update. The fields specified in the `updateMask`
+     * are relative to the resource, not the full request. A field will be
+     * overwritten if it is in the mask. If the user does not provide a mask then
+     * all fields will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + private com.google.cloud.vmwareengine.v1.Cluster cluster_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmwareengine.v1.Cluster, + com.google.cloud.vmwareengine.v1.Cluster.Builder, + com.google.cloud.vmwareengine.v1.ClusterOrBuilder> + clusterBuilder_; + /** + * + * + *
+     * Required. The description of the cluster.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.Cluster cluster = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the cluster field is set. + */ + public boolean hasCluster() { + return clusterBuilder_ != null || cluster_ != null; + } + /** + * + * + *
+     * Required. The description of the cluster.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.Cluster cluster = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The cluster. + */ + public com.google.cloud.vmwareengine.v1.Cluster getCluster() { + if (clusterBuilder_ == null) { + return cluster_ == null + ? com.google.cloud.vmwareengine.v1.Cluster.getDefaultInstance() + : cluster_; + } else { + return clusterBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The description of the cluster.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.Cluster cluster = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setCluster(com.google.cloud.vmwareengine.v1.Cluster value) { + if (clusterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + cluster_ = value; + onChanged(); + } else { + clusterBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. The description of the cluster.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.Cluster cluster = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setCluster(com.google.cloud.vmwareengine.v1.Cluster.Builder builderForValue) { + if (clusterBuilder_ == null) { + cluster_ = builderForValue.build(); + onChanged(); + } else { + clusterBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. The description of the cluster.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.Cluster cluster = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeCluster(com.google.cloud.vmwareengine.v1.Cluster value) { + if (clusterBuilder_ == null) { + if (cluster_ != null) { + cluster_ = + com.google.cloud.vmwareengine.v1.Cluster.newBuilder(cluster_) + .mergeFrom(value) + .buildPartial(); + } else { + cluster_ = value; + } + onChanged(); + } else { + clusterBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. The description of the cluster.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.Cluster cluster = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearCluster() { + if (clusterBuilder_ == null) { + cluster_ = null; + onChanged(); + } else { + cluster_ = null; + clusterBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. The description of the cluster.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.Cluster cluster = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.vmwareengine.v1.Cluster.Builder getClusterBuilder() { + + onChanged(); + return getClusterFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The description of the cluster.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.Cluster cluster = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.vmwareengine.v1.ClusterOrBuilder getClusterOrBuilder() { + if (clusterBuilder_ != null) { + return clusterBuilder_.getMessageOrBuilder(); + } else { + return cluster_ == null + ? com.google.cloud.vmwareengine.v1.Cluster.getDefaultInstance() + : cluster_; + } + } + /** + * + * + *
+     * Required. The description of the cluster.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.Cluster cluster = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmwareengine.v1.Cluster, + com.google.cloud.vmwareengine.v1.Cluster.Builder, + com.google.cloud.vmwareengine.v1.ClusterOrBuilder> + getClusterFieldBuilder() { + if (clusterBuilder_ == null) { + clusterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmwareengine.v1.Cluster, + com.google.cloud.vmwareengine.v1.Cluster.Builder, + com.google.cloud.vmwareengine.v1.ClusterOrBuilder>( + getCluster(), getParentForChildren(), isClean()); + cluster_ = null; + } + return clusterBuilder_; + } + + private java.lang.Object requestId_ = ""; + /** + * + * + *
+     * Optional. The request ID must be a valid UUID with the exception that
+     * zero UUID is not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. The request ID must be a valid UUID with the exception that
+     * zero UUID is not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. The request ID must be a valid UUID with the exception that
+     * zero UUID is not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + requestId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The request ID must be a valid UUID with the exception that
+     * zero UUID is not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + + requestId_ = getDefaultInstance().getRequestId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The request ID must be a valid UUID with the exception that
+     * zero UUID is not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + requestId_ = value; + onChanged(); + return this; + } + + private boolean validateOnly_; + /** + * + * + *
+     * Optional. True if you want the request to be validated and not executed; false
+     * otherwise.
+     * 
+ * + * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + /** + * + * + *
+     * Optional. True if you want the request to be validated and not executed; false
+     * otherwise.
+     * 
+ * + * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The validateOnly to set. + * @return This builder for chaining. + */ + public Builder setValidateOnly(boolean value) { + + validateOnly_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. True if you want the request to be validated and not executed; false
+     * otherwise.
+     * 
+ * + * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearValidateOnly() { + + validateOnly_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.vmwareengine.v1.UpdateClusterRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmwareengine.v1.UpdateClusterRequest) + private static final com.google.cloud.vmwareengine.v1.UpdateClusterRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmwareengine.v1.UpdateClusterRequest(); + } + + public static com.google.cloud.vmwareengine.v1.UpdateClusterRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateClusterRequest 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.vmwareengine.v1.UpdateClusterRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/UpdateClusterRequestOrBuilder.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/UpdateClusterRequestOrBuilder.java new file mode 100644 index 000000000000..a16c7034c0d5 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/UpdateClusterRequestOrBuilder.java @@ -0,0 +1,157 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmwareengine/v1/vmwareengine.proto + +package com.google.cloud.vmwareengine.v1; + +public interface UpdateClusterRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmwareengine.v1.UpdateClusterRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Field mask is used to specify the fields to be overwritten in the
+   * `Cluster` resource by the update. The fields specified in the `updateMask`
+   * are relative to the resource, not the full request. A field will be
+   * overwritten if it is in the mask. If the user does not provide a mask then
+   * all fields will be overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + /** + * + * + *
+   * Required. Field mask is used to specify the fields to be overwritten in the
+   * `Cluster` resource by the update. The fields specified in the `updateMask`
+   * are relative to the resource, not the full request. A field will be
+   * overwritten if it is in the mask. If the user does not provide a mask then
+   * all fields will be overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
+   * Required. Field mask is used to specify the fields to be overwritten in the
+   * `Cluster` resource by the update. The fields specified in the `updateMask`
+   * are relative to the resource, not the full request. A field will be
+   * overwritten if it is in the mask. If the user does not provide a mask then
+   * all fields will be overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); + + /** + * + * + *
+   * Required. The description of the cluster.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.Cluster cluster = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the cluster field is set. + */ + boolean hasCluster(); + /** + * + * + *
+   * Required. The description of the cluster.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.Cluster cluster = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The cluster. + */ + com.google.cloud.vmwareengine.v1.Cluster getCluster(); + /** + * + * + *
+   * Required. The description of the cluster.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.Cluster cluster = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.vmwareengine.v1.ClusterOrBuilder getClusterOrBuilder(); + + /** + * + * + *
+   * Optional. The request ID must be a valid UUID with the exception that
+   * zero UUID is not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + java.lang.String getRequestId(); + /** + * + * + *
+   * Optional. The request ID must be a valid UUID with the exception that
+   * zero UUID is not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); + + /** + * + * + *
+   * Optional. True if you want the request to be validated and not executed; false
+   * otherwise.
+   * 
+ * + * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The validateOnly. + */ + boolean getValidateOnly(); +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/UpdateNetworkPolicyRequest.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/UpdateNetworkPolicyRequest.java new file mode 100644 index 000000000000..9847a6dc0b6a --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/UpdateNetworkPolicyRequest.java @@ -0,0 +1,1308 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmwareengine/v1/vmwareengine.proto + +package com.google.cloud.vmwareengine.v1; + +/** + * + * + *
+ * Request message for [VmwareEngine.UpdateNetworkPolicy][google.cloud.vmwareengine.v1.VmwareEngine.UpdateNetworkPolicy]
+ * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest} + */ +public final class UpdateNetworkPolicyRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest) + UpdateNetworkPolicyRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateNetworkPolicyRequest.newBuilder() to construct. + private UpdateNetworkPolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateNetworkPolicyRequest() { + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateNetworkPolicyRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_UpdateNetworkPolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_UpdateNetworkPolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest.class, + com.google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest.Builder.class); + } + + public static final int NETWORK_POLICY_FIELD_NUMBER = 1; + private com.google.cloud.vmwareengine.v1.NetworkPolicy networkPolicy_; + /** + * + * + *
+   * Required. Network policy description.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.NetworkPolicy network_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the networkPolicy field is set. + */ + @java.lang.Override + public boolean hasNetworkPolicy() { + return networkPolicy_ != null; + } + /** + * + * + *
+   * Required. Network policy description.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.NetworkPolicy network_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The networkPolicy. + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.NetworkPolicy getNetworkPolicy() { + return networkPolicy_ == null + ? com.google.cloud.vmwareengine.v1.NetworkPolicy.getDefaultInstance() + : networkPolicy_; + } + /** + * + * + *
+   * Required. Network policy description.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.NetworkPolicy network_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.NetworkPolicyOrBuilder getNetworkPolicyOrBuilder() { + return getNetworkPolicy(); + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
+   * Required. Field mask is used to specify the fields to be overwritten in the
+   * `NetworkPolicy` resource by the update.
+   * The fields specified in the `update_mask` are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then all fields will be overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return updateMask_ != null; + } + /** + * + * + *
+   * Required. Field mask is used to specify the fields to be overwritten in the
+   * `NetworkPolicy` resource by the update.
+   * The fields specified in the `update_mask` are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then all fields will be overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + * + * + *
+   * Required. Field mask is used to specify the fields to be overwritten in the
+   * `NetworkPolicy` resource by the update.
+   * The fields specified in the `update_mask` are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then all fields will be overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return getUpdateMask(); + } + + public static final int REQUEST_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object requestId_; + /** + * + * + *
+   * Optional. A request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server guarantees that a
+   * request doesn't result in creation of duplicate commitments for at least 60
+   * minutes.
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. A request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server guarantees that a
+   * request doesn't result in creation of duplicate commitments for at least 60
+   * minutes.
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (networkPolicy_ != null) { + output.writeMessage(1, getNetworkPolicy()); + } + if (updateMask_ != null) { + output.writeMessage(2, getUpdateMask()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (networkPolicy_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getNetworkPolicy()); + } + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, requestId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest)) { + return super.equals(obj); + } + com.google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest other = + (com.google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest) obj; + + if (hasNetworkPolicy() != other.hasNetworkPolicy()) return false; + if (hasNetworkPolicy()) { + if (!getNetworkPolicy().equals(other.getNetworkPolicy())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (!getRequestId().equals(other.getRequestId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasNetworkPolicy()) { + hash = (37 * hash) + NETWORK_POLICY_FIELD_NUMBER; + hash = (53 * hash) + getNetworkPolicy().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest 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.vmwareengine.v1.UpdateNetworkPolicyRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for [VmwareEngine.UpdateNetworkPolicy][google.cloud.vmwareengine.v1.VmwareEngine.UpdateNetworkPolicy]
+   * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest) + com.google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_UpdateNetworkPolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_UpdateNetworkPolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest.class, + com.google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest.Builder.class); + } + + // Construct using com.google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (networkPolicyBuilder_ == null) { + networkPolicy_ = null; + } else { + networkPolicy_ = null; + networkPolicyBuilder_ = null; + } + if (updateMaskBuilder_ == null) { + updateMask_ = null; + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + requestId_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_UpdateNetworkPolicyRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest getDefaultInstanceForType() { + return com.google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest build() { + com.google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest buildPartial() { + com.google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest result = + new com.google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest(this); + if (networkPolicyBuilder_ == null) { + result.networkPolicy_ = networkPolicy_; + } else { + result.networkPolicy_ = networkPolicyBuilder_.build(); + } + if (updateMaskBuilder_ == null) { + result.updateMask_ = updateMask_; + } else { + result.updateMask_ = updateMaskBuilder_.build(); + } + result.requestId_ = requestId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest) { + return mergeFrom((com.google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest other) { + if (other == com.google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest.getDefaultInstance()) + return this; + if (other.hasNetworkPolicy()) { + mergeNetworkPolicy(other.getNetworkPolicy()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getNetworkPolicyFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + case 26: + { + requestId_ = input.readStringRequireUtf8(); + + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private com.google.cloud.vmwareengine.v1.NetworkPolicy networkPolicy_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmwareengine.v1.NetworkPolicy, + com.google.cloud.vmwareengine.v1.NetworkPolicy.Builder, + com.google.cloud.vmwareengine.v1.NetworkPolicyOrBuilder> + networkPolicyBuilder_; + /** + * + * + *
+     * Required. Network policy description.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.NetworkPolicy network_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the networkPolicy field is set. + */ + public boolean hasNetworkPolicy() { + return networkPolicyBuilder_ != null || networkPolicy_ != null; + } + /** + * + * + *
+     * Required. Network policy description.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.NetworkPolicy network_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The networkPolicy. + */ + public com.google.cloud.vmwareengine.v1.NetworkPolicy getNetworkPolicy() { + if (networkPolicyBuilder_ == null) { + return networkPolicy_ == null + ? com.google.cloud.vmwareengine.v1.NetworkPolicy.getDefaultInstance() + : networkPolicy_; + } else { + return networkPolicyBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. Network policy description.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.NetworkPolicy network_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setNetworkPolicy(com.google.cloud.vmwareengine.v1.NetworkPolicy value) { + if (networkPolicyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + networkPolicy_ = value; + onChanged(); + } else { + networkPolicyBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. Network policy description.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.NetworkPolicy network_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setNetworkPolicy( + com.google.cloud.vmwareengine.v1.NetworkPolicy.Builder builderForValue) { + if (networkPolicyBuilder_ == null) { + networkPolicy_ = builderForValue.build(); + onChanged(); + } else { + networkPolicyBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. Network policy description.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.NetworkPolicy network_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeNetworkPolicy(com.google.cloud.vmwareengine.v1.NetworkPolicy value) { + if (networkPolicyBuilder_ == null) { + if (networkPolicy_ != null) { + networkPolicy_ = + com.google.cloud.vmwareengine.v1.NetworkPolicy.newBuilder(networkPolicy_) + .mergeFrom(value) + .buildPartial(); + } else { + networkPolicy_ = value; + } + onChanged(); + } else { + networkPolicyBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. Network policy description.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.NetworkPolicy network_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearNetworkPolicy() { + if (networkPolicyBuilder_ == null) { + networkPolicy_ = null; + onChanged(); + } else { + networkPolicy_ = null; + networkPolicyBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. Network policy description.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.NetworkPolicy network_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.vmwareengine.v1.NetworkPolicy.Builder getNetworkPolicyBuilder() { + + onChanged(); + return getNetworkPolicyFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. Network policy description.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.NetworkPolicy network_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.vmwareengine.v1.NetworkPolicyOrBuilder getNetworkPolicyOrBuilder() { + if (networkPolicyBuilder_ != null) { + return networkPolicyBuilder_.getMessageOrBuilder(); + } else { + return networkPolicy_ == null + ? com.google.cloud.vmwareengine.v1.NetworkPolicy.getDefaultInstance() + : networkPolicy_; + } + } + /** + * + * + *
+     * Required. Network policy description.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.NetworkPolicy network_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmwareengine.v1.NetworkPolicy, + com.google.cloud.vmwareengine.v1.NetworkPolicy.Builder, + com.google.cloud.vmwareengine.v1.NetworkPolicyOrBuilder> + getNetworkPolicyFieldBuilder() { + if (networkPolicyBuilder_ == null) { + networkPolicyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmwareengine.v1.NetworkPolicy, + com.google.cloud.vmwareengine.v1.NetworkPolicy.Builder, + com.google.cloud.vmwareengine.v1.NetworkPolicyOrBuilder>( + getNetworkPolicy(), getParentForChildren(), isClean()); + networkPolicy_ = null; + } + return networkPolicyBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + /** + * + * + *
+     * Required. Field mask is used to specify the fields to be overwritten in the
+     * `NetworkPolicy` resource by the update.
+     * The fields specified in the `update_mask` are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return updateMaskBuilder_ != null || updateMask_ != null; + } + /** + * + * + *
+     * Required. Field mask is used to specify the fields to be overwritten in the
+     * `NetworkPolicy` resource by the update.
+     * The fields specified in the `update_mask` are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. Field mask is used to specify the fields to be overwritten in the
+     * `NetworkPolicy` resource by the update.
+     * The fields specified in the `update_mask` are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + onChanged(); + } else { + updateMaskBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. Field mask is used to specify the fields to be overwritten in the
+     * `NetworkPolicy` resource by the update.
+     * The fields specified in the `update_mask` are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + onChanged(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. Field mask is used to specify the fields to be overwritten in the
+     * `NetworkPolicy` resource by the update.
+     * The fields specified in the `update_mask` are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (updateMask_ != null) { + updateMask_ = + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + } else { + updateMask_ = value; + } + onChanged(); + } else { + updateMaskBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. Field mask is used to specify the fields to be overwritten in the
+     * `NetworkPolicy` resource by the update.
+     * The fields specified in the `update_mask` are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearUpdateMask() { + if (updateMaskBuilder_ == null) { + updateMask_ = null; + onChanged(); + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. Field mask is used to specify the fields to be overwritten in the
+     * `NetworkPolicy` resource by the update.
+     * The fields specified in the `update_mask` are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. Field mask is used to specify the fields to be overwritten in the
+     * `NetworkPolicy` resource by the update.
+     * The fields specified in the `update_mask` are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + /** + * + * + *
+     * Required. Field mask is used to specify the fields to be overwritten in the
+     * `NetworkPolicy` resource by the update.
+     * The fields specified in the `update_mask` are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + private java.lang.Object requestId_ = ""; + /** + * + * + *
+     * Optional. A request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server guarantees that a
+     * request doesn't result in creation of duplicate commitments for at least 60
+     * minutes.
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. A request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server guarantees that a
+     * request doesn't result in creation of duplicate commitments for at least 60
+     * minutes.
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. A request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server guarantees that a
+     * request doesn't result in creation of duplicate commitments for at least 60
+     * minutes.
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + requestId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server guarantees that a
+     * request doesn't result in creation of duplicate commitments for at least 60
+     * minutes.
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + + requestId_ = getDefaultInstance().getRequestId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server guarantees that a
+     * request doesn't result in creation of duplicate commitments for at least 60
+     * minutes.
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + requestId_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest) + private static final com.google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest(); + } + + public static com.google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateNetworkPolicyRequest 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.vmwareengine.v1.UpdateNetworkPolicyRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/UpdateNetworkPolicyRequestOrBuilder.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/UpdateNetworkPolicyRequestOrBuilder.java new file mode 100644 index 000000000000..e090dcef7f9b --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/UpdateNetworkPolicyRequestOrBuilder.java @@ -0,0 +1,163 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmwareengine/v1/vmwareengine.proto + +package com.google.cloud.vmwareengine.v1; + +public interface UpdateNetworkPolicyRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Network policy description.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.NetworkPolicy network_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the networkPolicy field is set. + */ + boolean hasNetworkPolicy(); + /** + * + * + *
+   * Required. Network policy description.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.NetworkPolicy network_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The networkPolicy. + */ + com.google.cloud.vmwareengine.v1.NetworkPolicy getNetworkPolicy(); + /** + * + * + *
+   * Required. Network policy description.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.NetworkPolicy network_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.vmwareengine.v1.NetworkPolicyOrBuilder getNetworkPolicyOrBuilder(); + + /** + * + * + *
+   * Required. Field mask is used to specify the fields to be overwritten in the
+   * `NetworkPolicy` resource by the update.
+   * The fields specified in the `update_mask` are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then all fields will be overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + /** + * + * + *
+   * Required. Field mask is used to specify the fields to be overwritten in the
+   * `NetworkPolicy` resource by the update.
+   * The fields specified in the `update_mask` are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then all fields will be overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
+   * Required. Field mask is used to specify the fields to be overwritten in the
+   * `NetworkPolicy` resource by the update.
+   * The fields specified in the `update_mask` are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then all fields will be overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); + + /** + * + * + *
+   * Optional. A request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server guarantees that a
+   * request doesn't result in creation of duplicate commitments for at least 60
+   * minutes.
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + java.lang.String getRequestId(); + /** + * + * + *
+   * Optional. A request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server guarantees that a
+   * request doesn't result in creation of duplicate commitments for at least 60
+   * minutes.
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/UpdatePrivateCloudRequest.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/UpdatePrivateCloudRequest.java new file mode 100644 index 000000000000..96871e154b23 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/UpdatePrivateCloudRequest.java @@ -0,0 +1,1238 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmwareengine/v1/vmwareengine.proto + +package com.google.cloud.vmwareengine.v1; + +/** + * + * + *
+ * Request message for [VmwareEngine.UpdatePrivateCloud][google.cloud.vmwareengine.v1.VmwareEngine.UpdatePrivateCloud]
+ * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest} + */ +public final class UpdatePrivateCloudRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest) + UpdatePrivateCloudRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdatePrivateCloudRequest.newBuilder() to construct. + private UpdatePrivateCloudRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdatePrivateCloudRequest() { + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdatePrivateCloudRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_UpdatePrivateCloudRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_UpdatePrivateCloudRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest.class, + com.google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest.Builder.class); + } + + public static final int PRIVATE_CLOUD_FIELD_NUMBER = 1; + private com.google.cloud.vmwareengine.v1.PrivateCloud privateCloud_; + /** + * + * + *
+   * Required. Private cloud description.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.PrivateCloud private_cloud = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the privateCloud field is set. + */ + @java.lang.Override + public boolean hasPrivateCloud() { + return privateCloud_ != null; + } + /** + * + * + *
+   * Required. Private cloud description.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.PrivateCloud private_cloud = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The privateCloud. + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.PrivateCloud getPrivateCloud() { + return privateCloud_ == null + ? com.google.cloud.vmwareengine.v1.PrivateCloud.getDefaultInstance() + : privateCloud_; + } + /** + * + * + *
+   * Required. Private cloud description.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.PrivateCloud private_cloud = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.PrivateCloudOrBuilder getPrivateCloudOrBuilder() { + return getPrivateCloud(); + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
+   * Required. Field mask is used to specify the fields to be overwritten in the
+   * `PrivateCloud` resource by the update. The fields specified in `updateMask`
+   * are relative to the resource, not the full request. A field will be
+   * overwritten if it is in the mask. If the user does not provide a mask then
+   * all fields will be overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return updateMask_ != null; + } + /** + * + * + *
+   * Required. Field mask is used to specify the fields to be overwritten in the
+   * `PrivateCloud` resource by the update. The fields specified in `updateMask`
+   * are relative to the resource, not the full request. A field will be
+   * overwritten if it is in the mask. If the user does not provide a mask then
+   * all fields will be overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + * + * + *
+   * Required. Field mask is used to specify the fields to be overwritten in the
+   * `PrivateCloud` resource by the update. The fields specified in `updateMask`
+   * are relative to the resource, not the full request. A field will be
+   * overwritten if it is in the mask. If the user does not provide a mask then
+   * all fields will be overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return getUpdateMask(); + } + + public static final int REQUEST_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object requestId_; + /** + * + * + *
+   * Optional. The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (privateCloud_ != null) { + output.writeMessage(1, getPrivateCloud()); + } + if (updateMask_ != null) { + output.writeMessage(2, getUpdateMask()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (privateCloud_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getPrivateCloud()); + } + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, requestId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest)) { + return super.equals(obj); + } + com.google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest other = + (com.google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest) obj; + + if (hasPrivateCloud() != other.hasPrivateCloud()) return false; + if (hasPrivateCloud()) { + if (!getPrivateCloud().equals(other.getPrivateCloud())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (!getRequestId().equals(other.getRequestId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasPrivateCloud()) { + hash = (37 * hash) + PRIVATE_CLOUD_FIELD_NUMBER; + hash = (53 * hash) + getPrivateCloud().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest 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.vmwareengine.v1.UpdatePrivateCloudRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for [VmwareEngine.UpdatePrivateCloud][google.cloud.vmwareengine.v1.VmwareEngine.UpdatePrivateCloud]
+   * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest) + com.google.cloud.vmwareengine.v1.UpdatePrivateCloudRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_UpdatePrivateCloudRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_UpdatePrivateCloudRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest.class, + com.google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest.Builder.class); + } + + // Construct using com.google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (privateCloudBuilder_ == null) { + privateCloud_ = null; + } else { + privateCloud_ = null; + privateCloudBuilder_ = null; + } + if (updateMaskBuilder_ == null) { + updateMask_ = null; + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + requestId_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_UpdatePrivateCloudRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest getDefaultInstanceForType() { + return com.google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest build() { + com.google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest buildPartial() { + com.google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest result = + new com.google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest(this); + if (privateCloudBuilder_ == null) { + result.privateCloud_ = privateCloud_; + } else { + result.privateCloud_ = privateCloudBuilder_.build(); + } + if (updateMaskBuilder_ == null) { + result.updateMask_ = updateMask_; + } else { + result.updateMask_ = updateMaskBuilder_.build(); + } + result.requestId_ = requestId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest) { + return mergeFrom((com.google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest other) { + if (other == com.google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest.getDefaultInstance()) + return this; + if (other.hasPrivateCloud()) { + mergePrivateCloud(other.getPrivateCloud()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getPrivateCloudFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + case 26: + { + requestId_ = input.readStringRequireUtf8(); + + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private com.google.cloud.vmwareengine.v1.PrivateCloud privateCloud_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmwareengine.v1.PrivateCloud, + com.google.cloud.vmwareengine.v1.PrivateCloud.Builder, + com.google.cloud.vmwareengine.v1.PrivateCloudOrBuilder> + privateCloudBuilder_; + /** + * + * + *
+     * Required. Private cloud description.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.PrivateCloud private_cloud = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the privateCloud field is set. + */ + public boolean hasPrivateCloud() { + return privateCloudBuilder_ != null || privateCloud_ != null; + } + /** + * + * + *
+     * Required. Private cloud description.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.PrivateCloud private_cloud = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The privateCloud. + */ + public com.google.cloud.vmwareengine.v1.PrivateCloud getPrivateCloud() { + if (privateCloudBuilder_ == null) { + return privateCloud_ == null + ? com.google.cloud.vmwareengine.v1.PrivateCloud.getDefaultInstance() + : privateCloud_; + } else { + return privateCloudBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. Private cloud description.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.PrivateCloud private_cloud = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setPrivateCloud(com.google.cloud.vmwareengine.v1.PrivateCloud value) { + if (privateCloudBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + privateCloud_ = value; + onChanged(); + } else { + privateCloudBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. Private cloud description.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.PrivateCloud private_cloud = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setPrivateCloud( + com.google.cloud.vmwareengine.v1.PrivateCloud.Builder builderForValue) { + if (privateCloudBuilder_ == null) { + privateCloud_ = builderForValue.build(); + onChanged(); + } else { + privateCloudBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. Private cloud description.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.PrivateCloud private_cloud = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergePrivateCloud(com.google.cloud.vmwareengine.v1.PrivateCloud value) { + if (privateCloudBuilder_ == null) { + if (privateCloud_ != null) { + privateCloud_ = + com.google.cloud.vmwareengine.v1.PrivateCloud.newBuilder(privateCloud_) + .mergeFrom(value) + .buildPartial(); + } else { + privateCloud_ = value; + } + onChanged(); + } else { + privateCloudBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. Private cloud description.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.PrivateCloud private_cloud = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearPrivateCloud() { + if (privateCloudBuilder_ == null) { + privateCloud_ = null; + onChanged(); + } else { + privateCloud_ = null; + privateCloudBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. Private cloud description.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.PrivateCloud private_cloud = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.vmwareengine.v1.PrivateCloud.Builder getPrivateCloudBuilder() { + + onChanged(); + return getPrivateCloudFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. Private cloud description.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.PrivateCloud private_cloud = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.vmwareengine.v1.PrivateCloudOrBuilder getPrivateCloudOrBuilder() { + if (privateCloudBuilder_ != null) { + return privateCloudBuilder_.getMessageOrBuilder(); + } else { + return privateCloud_ == null + ? com.google.cloud.vmwareengine.v1.PrivateCloud.getDefaultInstance() + : privateCloud_; + } + } + /** + * + * + *
+     * Required. Private cloud description.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.PrivateCloud private_cloud = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmwareengine.v1.PrivateCloud, + com.google.cloud.vmwareengine.v1.PrivateCloud.Builder, + com.google.cloud.vmwareengine.v1.PrivateCloudOrBuilder> + getPrivateCloudFieldBuilder() { + if (privateCloudBuilder_ == null) { + privateCloudBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmwareengine.v1.PrivateCloud, + com.google.cloud.vmwareengine.v1.PrivateCloud.Builder, + com.google.cloud.vmwareengine.v1.PrivateCloudOrBuilder>( + getPrivateCloud(), getParentForChildren(), isClean()); + privateCloud_ = null; + } + return privateCloudBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + /** + * + * + *
+     * Required. Field mask is used to specify the fields to be overwritten in the
+     * `PrivateCloud` resource by the update. The fields specified in `updateMask`
+     * are relative to the resource, not the full request. A field will be
+     * overwritten if it is in the mask. If the user does not provide a mask then
+     * all fields will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return updateMaskBuilder_ != null || updateMask_ != null; + } + /** + * + * + *
+     * Required. Field mask is used to specify the fields to be overwritten in the
+     * `PrivateCloud` resource by the update. The fields specified in `updateMask`
+     * are relative to the resource, not the full request. A field will be
+     * overwritten if it is in the mask. If the user does not provide a mask then
+     * all fields will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. Field mask is used to specify the fields to be overwritten in the
+     * `PrivateCloud` resource by the update. The fields specified in `updateMask`
+     * are relative to the resource, not the full request. A field will be
+     * overwritten if it is in the mask. If the user does not provide a mask then
+     * all fields will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + onChanged(); + } else { + updateMaskBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. Field mask is used to specify the fields to be overwritten in the
+     * `PrivateCloud` resource by the update. The fields specified in `updateMask`
+     * are relative to the resource, not the full request. A field will be
+     * overwritten if it is in the mask. If the user does not provide a mask then
+     * all fields will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + onChanged(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. Field mask is used to specify the fields to be overwritten in the
+     * `PrivateCloud` resource by the update. The fields specified in `updateMask`
+     * are relative to the resource, not the full request. A field will be
+     * overwritten if it is in the mask. If the user does not provide a mask then
+     * all fields will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (updateMask_ != null) { + updateMask_ = + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + } else { + updateMask_ = value; + } + onChanged(); + } else { + updateMaskBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. Field mask is used to specify the fields to be overwritten in the
+     * `PrivateCloud` resource by the update. The fields specified in `updateMask`
+     * are relative to the resource, not the full request. A field will be
+     * overwritten if it is in the mask. If the user does not provide a mask then
+     * all fields will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearUpdateMask() { + if (updateMaskBuilder_ == null) { + updateMask_ = null; + onChanged(); + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. Field mask is used to specify the fields to be overwritten in the
+     * `PrivateCloud` resource by the update. The fields specified in `updateMask`
+     * are relative to the resource, not the full request. A field will be
+     * overwritten if it is in the mask. If the user does not provide a mask then
+     * all fields will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. Field mask is used to specify the fields to be overwritten in the
+     * `PrivateCloud` resource by the update. The fields specified in `updateMask`
+     * are relative to the resource, not the full request. A field will be
+     * overwritten if it is in the mask. If the user does not provide a mask then
+     * all fields will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + /** + * + * + *
+     * Required. Field mask is used to specify the fields to be overwritten in the
+     * `PrivateCloud` resource by the update. The fields specified in `updateMask`
+     * are relative to the resource, not the full request. A field will be
+     * overwritten if it is in the mask. If the user does not provide a mask then
+     * all fields will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + private java.lang.Object requestId_ = ""; + /** + * + * + *
+     * Optional. The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + requestId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + + requestId_ = getDefaultInstance().getRequestId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + requestId_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest) + private static final com.google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest(); + } + + public static com.google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdatePrivateCloudRequest 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.vmwareengine.v1.UpdatePrivateCloudRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/UpdatePrivateCloudRequestOrBuilder.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/UpdatePrivateCloudRequestOrBuilder.java new file mode 100644 index 000000000000..7e94be56434d --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/UpdatePrivateCloudRequestOrBuilder.java @@ -0,0 +1,143 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmwareengine/v1/vmwareengine.proto + +package com.google.cloud.vmwareengine.v1; + +public interface UpdatePrivateCloudRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Private cloud description.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.PrivateCloud private_cloud = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the privateCloud field is set. + */ + boolean hasPrivateCloud(); + /** + * + * + *
+   * Required. Private cloud description.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.PrivateCloud private_cloud = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The privateCloud. + */ + com.google.cloud.vmwareengine.v1.PrivateCloud getPrivateCloud(); + /** + * + * + *
+   * Required. Private cloud description.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.PrivateCloud private_cloud = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.vmwareengine.v1.PrivateCloudOrBuilder getPrivateCloudOrBuilder(); + + /** + * + * + *
+   * Required. Field mask is used to specify the fields to be overwritten in the
+   * `PrivateCloud` resource by the update. The fields specified in `updateMask`
+   * are relative to the resource, not the full request. A field will be
+   * overwritten if it is in the mask. If the user does not provide a mask then
+   * all fields will be overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + /** + * + * + *
+   * Required. Field mask is used to specify the fields to be overwritten in the
+   * `PrivateCloud` resource by the update. The fields specified in `updateMask`
+   * are relative to the resource, not the full request. A field will be
+   * overwritten if it is in the mask. If the user does not provide a mask then
+   * all fields will be overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
+   * Required. Field mask is used to specify the fields to be overwritten in the
+   * `PrivateCloud` resource by the update. The fields specified in `updateMask`
+   * are relative to the resource, not the full request. A field will be
+   * overwritten if it is in the mask. If the user does not provide a mask then
+   * all fields will be overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); + + /** + * + * + *
+   * Optional. The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + java.lang.String getRequestId(); + /** + * + * + *
+   * Optional. The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/UpdateVmwareEngineNetworkRequest.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/UpdateVmwareEngineNetworkRequest.java new file mode 100644 index 000000000000..cbb65cb75930 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/UpdateVmwareEngineNetworkRequest.java @@ -0,0 +1,1335 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmwareengine/v1/vmwareengine.proto + +package com.google.cloud.vmwareengine.v1; + +/** + * + * + *
+ * Request message for [VmwareEngine.UpdateVmwareEngineNetwork][google.cloud.vmwareengine.v1.VmwareEngine.UpdateVmwareEngineNetwork]
+ * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest} + */ +public final class UpdateVmwareEngineNetworkRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest) + UpdateVmwareEngineNetworkRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateVmwareEngineNetworkRequest.newBuilder() to construct. + private UpdateVmwareEngineNetworkRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateVmwareEngineNetworkRequest() { + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateVmwareEngineNetworkRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_UpdateVmwareEngineNetworkRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_UpdateVmwareEngineNetworkRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest.class, + com.google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest.Builder.class); + } + + public static final int VMWARE_ENGINE_NETWORK_FIELD_NUMBER = 1; + private com.google.cloud.vmwareengine.v1.VmwareEngineNetwork vmwareEngineNetwork_; + /** + * + * + *
+   * Required. VMware Engine network description.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.VmwareEngineNetwork vmware_engine_network = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the vmwareEngineNetwork field is set. + */ + @java.lang.Override + public boolean hasVmwareEngineNetwork() { + return vmwareEngineNetwork_ != null; + } + /** + * + * + *
+   * Required. VMware Engine network description.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.VmwareEngineNetwork vmware_engine_network = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The vmwareEngineNetwork. + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.VmwareEngineNetwork getVmwareEngineNetwork() { + return vmwareEngineNetwork_ == null + ? com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.getDefaultInstance() + : vmwareEngineNetwork_; + } + /** + * + * + *
+   * Required. VMware Engine network description.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.VmwareEngineNetwork vmware_engine_network = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.VmwareEngineNetworkOrBuilder + getVmwareEngineNetworkOrBuilder() { + return getVmwareEngineNetwork(); + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
+   * Required. Field mask is used to specify the fields to be overwritten in the
+   * VMware Engine network resource by the update.
+   * The fields specified in the `update_mask` are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then all fields will be overwritten. Only the
+   * following fields can be updated: `description`.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return updateMask_ != null; + } + /** + * + * + *
+   * Required. Field mask is used to specify the fields to be overwritten in the
+   * VMware Engine network resource by the update.
+   * The fields specified in the `update_mask` are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then all fields will be overwritten. Only the
+   * following fields can be updated: `description`.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + * + * + *
+   * Required. Field mask is used to specify the fields to be overwritten in the
+   * VMware Engine network resource by the update.
+   * The fields specified in the `update_mask` are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then all fields will be overwritten. Only the
+   * following fields can be updated: `description`.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return getUpdateMask(); + } + + public static final int REQUEST_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object requestId_; + /** + * + * + *
+   * Optional. A request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server guarantees that a
+   * request doesn't result in creation of duplicate commitments for at least 60
+   * minutes.
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. A request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server guarantees that a
+   * request doesn't result in creation of duplicate commitments for at least 60
+   * minutes.
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (vmwareEngineNetwork_ != null) { + output.writeMessage(1, getVmwareEngineNetwork()); + } + if (updateMask_ != null) { + output.writeMessage(2, getUpdateMask()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (vmwareEngineNetwork_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getVmwareEngineNetwork()); + } + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, requestId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest)) { + return super.equals(obj); + } + com.google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest other = + (com.google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest) obj; + + if (hasVmwareEngineNetwork() != other.hasVmwareEngineNetwork()) return false; + if (hasVmwareEngineNetwork()) { + if (!getVmwareEngineNetwork().equals(other.getVmwareEngineNetwork())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (!getRequestId().equals(other.getRequestId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasVmwareEngineNetwork()) { + hash = (37 * hash) + VMWARE_ENGINE_NETWORK_FIELD_NUMBER; + hash = (53 * hash) + getVmwareEngineNetwork().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest 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.vmwareengine.v1.UpdateVmwareEngineNetworkRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for [VmwareEngine.UpdateVmwareEngineNetwork][google.cloud.vmwareengine.v1.VmwareEngine.UpdateVmwareEngineNetwork]
+   * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest) + com.google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_UpdateVmwareEngineNetworkRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_UpdateVmwareEngineNetworkRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest.class, + com.google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest.Builder.class); + } + + // Construct using + // com.google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (vmwareEngineNetworkBuilder_ == null) { + vmwareEngineNetwork_ = null; + } else { + vmwareEngineNetwork_ = null; + vmwareEngineNetworkBuilder_ = null; + } + if (updateMaskBuilder_ == null) { + updateMask_ = null; + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + requestId_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_UpdateVmwareEngineNetworkRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest + getDefaultInstanceForType() { + return com.google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest build() { + com.google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest buildPartial() { + com.google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest result = + new com.google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest(this); + if (vmwareEngineNetworkBuilder_ == null) { + result.vmwareEngineNetwork_ = vmwareEngineNetwork_; + } else { + result.vmwareEngineNetwork_ = vmwareEngineNetworkBuilder_.build(); + } + if (updateMaskBuilder_ == null) { + result.updateMask_ = updateMask_; + } else { + result.updateMask_ = updateMaskBuilder_.build(); + } + result.requestId_ = requestId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest) { + return mergeFrom((com.google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest other) { + if (other + == com.google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest.getDefaultInstance()) + return this; + if (other.hasVmwareEngineNetwork()) { + mergeVmwareEngineNetwork(other.getVmwareEngineNetwork()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + getVmwareEngineNetworkFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + case 26: + { + requestId_ = input.readStringRequireUtf8(); + + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private com.google.cloud.vmwareengine.v1.VmwareEngineNetwork vmwareEngineNetwork_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmwareengine.v1.VmwareEngineNetwork, + com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.Builder, + com.google.cloud.vmwareengine.v1.VmwareEngineNetworkOrBuilder> + vmwareEngineNetworkBuilder_; + /** + * + * + *
+     * Required. VMware Engine network description.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.VmwareEngineNetwork vmware_engine_network = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the vmwareEngineNetwork field is set. + */ + public boolean hasVmwareEngineNetwork() { + return vmwareEngineNetworkBuilder_ != null || vmwareEngineNetwork_ != null; + } + /** + * + * + *
+     * Required. VMware Engine network description.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.VmwareEngineNetwork vmware_engine_network = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The vmwareEngineNetwork. + */ + public com.google.cloud.vmwareengine.v1.VmwareEngineNetwork getVmwareEngineNetwork() { + if (vmwareEngineNetworkBuilder_ == null) { + return vmwareEngineNetwork_ == null + ? com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.getDefaultInstance() + : vmwareEngineNetwork_; + } else { + return vmwareEngineNetworkBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. VMware Engine network description.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.VmwareEngineNetwork vmware_engine_network = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setVmwareEngineNetwork( + com.google.cloud.vmwareengine.v1.VmwareEngineNetwork value) { + if (vmwareEngineNetworkBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + vmwareEngineNetwork_ = value; + onChanged(); + } else { + vmwareEngineNetworkBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. VMware Engine network description.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.VmwareEngineNetwork vmware_engine_network = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setVmwareEngineNetwork( + com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.Builder builderForValue) { + if (vmwareEngineNetworkBuilder_ == null) { + vmwareEngineNetwork_ = builderForValue.build(); + onChanged(); + } else { + vmwareEngineNetworkBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. VMware Engine network description.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.VmwareEngineNetwork vmware_engine_network = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeVmwareEngineNetwork( + com.google.cloud.vmwareengine.v1.VmwareEngineNetwork value) { + if (vmwareEngineNetworkBuilder_ == null) { + if (vmwareEngineNetwork_ != null) { + vmwareEngineNetwork_ = + com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.newBuilder(vmwareEngineNetwork_) + .mergeFrom(value) + .buildPartial(); + } else { + vmwareEngineNetwork_ = value; + } + onChanged(); + } else { + vmwareEngineNetworkBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. VMware Engine network description.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.VmwareEngineNetwork vmware_engine_network = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearVmwareEngineNetwork() { + if (vmwareEngineNetworkBuilder_ == null) { + vmwareEngineNetwork_ = null; + onChanged(); + } else { + vmwareEngineNetwork_ = null; + vmwareEngineNetworkBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. VMware Engine network description.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.VmwareEngineNetwork vmware_engine_network = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.Builder + getVmwareEngineNetworkBuilder() { + + onChanged(); + return getVmwareEngineNetworkFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. VMware Engine network description.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.VmwareEngineNetwork vmware_engine_network = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.vmwareengine.v1.VmwareEngineNetworkOrBuilder + getVmwareEngineNetworkOrBuilder() { + if (vmwareEngineNetworkBuilder_ != null) { + return vmwareEngineNetworkBuilder_.getMessageOrBuilder(); + } else { + return vmwareEngineNetwork_ == null + ? com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.getDefaultInstance() + : vmwareEngineNetwork_; + } + } + /** + * + * + *
+     * Required. VMware Engine network description.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.VmwareEngineNetwork vmware_engine_network = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmwareengine.v1.VmwareEngineNetwork, + com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.Builder, + com.google.cloud.vmwareengine.v1.VmwareEngineNetworkOrBuilder> + getVmwareEngineNetworkFieldBuilder() { + if (vmwareEngineNetworkBuilder_ == null) { + vmwareEngineNetworkBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmwareengine.v1.VmwareEngineNetwork, + com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.Builder, + com.google.cloud.vmwareengine.v1.VmwareEngineNetworkOrBuilder>( + getVmwareEngineNetwork(), getParentForChildren(), isClean()); + vmwareEngineNetwork_ = null; + } + return vmwareEngineNetworkBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + /** + * + * + *
+     * Required. Field mask is used to specify the fields to be overwritten in the
+     * VMware Engine network resource by the update.
+     * The fields specified in the `update_mask` are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields will be overwritten. Only the
+     * following fields can be updated: `description`.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return updateMaskBuilder_ != null || updateMask_ != null; + } + /** + * + * + *
+     * Required. Field mask is used to specify the fields to be overwritten in the
+     * VMware Engine network resource by the update.
+     * The fields specified in the `update_mask` are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields will be overwritten. Only the
+     * following fields can be updated: `description`.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. Field mask is used to specify the fields to be overwritten in the
+     * VMware Engine network resource by the update.
+     * The fields specified in the `update_mask` are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields will be overwritten. Only the
+     * following fields can be updated: `description`.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + onChanged(); + } else { + updateMaskBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. Field mask is used to specify the fields to be overwritten in the
+     * VMware Engine network resource by the update.
+     * The fields specified in the `update_mask` are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields will be overwritten. Only the
+     * following fields can be updated: `description`.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + onChanged(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. Field mask is used to specify the fields to be overwritten in the
+     * VMware Engine network resource by the update.
+     * The fields specified in the `update_mask` are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields will be overwritten. Only the
+     * following fields can be updated: `description`.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (updateMask_ != null) { + updateMask_ = + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + } else { + updateMask_ = value; + } + onChanged(); + } else { + updateMaskBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. Field mask is used to specify the fields to be overwritten in the
+     * VMware Engine network resource by the update.
+     * The fields specified in the `update_mask` are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields will be overwritten. Only the
+     * following fields can be updated: `description`.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearUpdateMask() { + if (updateMaskBuilder_ == null) { + updateMask_ = null; + onChanged(); + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. Field mask is used to specify the fields to be overwritten in the
+     * VMware Engine network resource by the update.
+     * The fields specified in the `update_mask` are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields will be overwritten. Only the
+     * following fields can be updated: `description`.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. Field mask is used to specify the fields to be overwritten in the
+     * VMware Engine network resource by the update.
+     * The fields specified in the `update_mask` are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields will be overwritten. Only the
+     * following fields can be updated: `description`.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + /** + * + * + *
+     * Required. Field mask is used to specify the fields to be overwritten in the
+     * VMware Engine network resource by the update.
+     * The fields specified in the `update_mask` are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields will be overwritten. Only the
+     * following fields can be updated: `description`.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + private java.lang.Object requestId_ = ""; + /** + * + * + *
+     * Optional. A request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server guarantees that a
+     * request doesn't result in creation of duplicate commitments for at least 60
+     * minutes.
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. A request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server guarantees that a
+     * request doesn't result in creation of duplicate commitments for at least 60
+     * minutes.
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. A request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server guarantees that a
+     * request doesn't result in creation of duplicate commitments for at least 60
+     * minutes.
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + requestId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server guarantees that a
+     * request doesn't result in creation of duplicate commitments for at least 60
+     * minutes.
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + + requestId_ = getDefaultInstance().getRequestId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server guarantees that a
+     * request doesn't result in creation of duplicate commitments for at least 60
+     * minutes.
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + requestId_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest) + private static final com.google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest(); + } + + public static com.google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateVmwareEngineNetworkRequest 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.vmwareengine.v1.UpdateVmwareEngineNetworkRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/UpdateVmwareEngineNetworkRequestOrBuilder.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/UpdateVmwareEngineNetworkRequestOrBuilder.java new file mode 100644 index 000000000000..78be3b211c22 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/UpdateVmwareEngineNetworkRequestOrBuilder.java @@ -0,0 +1,166 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmwareengine/v1/vmwareengine.proto + +package com.google.cloud.vmwareengine.v1; + +public interface UpdateVmwareEngineNetworkRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. VMware Engine network description.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.VmwareEngineNetwork vmware_engine_network = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the vmwareEngineNetwork field is set. + */ + boolean hasVmwareEngineNetwork(); + /** + * + * + *
+   * Required. VMware Engine network description.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.VmwareEngineNetwork vmware_engine_network = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The vmwareEngineNetwork. + */ + com.google.cloud.vmwareengine.v1.VmwareEngineNetwork getVmwareEngineNetwork(); + /** + * + * + *
+   * Required. VMware Engine network description.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.VmwareEngineNetwork vmware_engine_network = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.vmwareengine.v1.VmwareEngineNetworkOrBuilder getVmwareEngineNetworkOrBuilder(); + + /** + * + * + *
+   * Required. Field mask is used to specify the fields to be overwritten in the
+   * VMware Engine network resource by the update.
+   * The fields specified in the `update_mask` are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then all fields will be overwritten. Only the
+   * following fields can be updated: `description`.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + /** + * + * + *
+   * Required. Field mask is used to specify the fields to be overwritten in the
+   * VMware Engine network resource by the update.
+   * The fields specified in the `update_mask` are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then all fields will be overwritten. Only the
+   * following fields can be updated: `description`.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
+   * Required. Field mask is used to specify the fields to be overwritten in the
+   * VMware Engine network resource by the update.
+   * The fields specified in the `update_mask` are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then all fields will be overwritten. Only the
+   * following fields can be updated: `description`.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); + + /** + * + * + *
+   * Optional. A request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server guarantees that a
+   * request doesn't result in creation of duplicate commitments for at least 60
+   * minutes.
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + java.lang.String getRequestId(); + /** + * + * + *
+   * Optional. A request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server guarantees that a
+   * request doesn't result in creation of duplicate commitments for at least 60
+   * minutes.
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/Vcenter.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/Vcenter.java new file mode 100644 index 000000000000..ca3d571b0c7c --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/Vcenter.java @@ -0,0 +1,1289 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmwareengine/v1/vmwareengine.proto + +package com.google.cloud.vmwareengine.v1; + +/** + * + * + *
+ * Details about a vCenter Server management appliance.
+ * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.Vcenter} + */ +public final class Vcenter extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmwareengine.v1.Vcenter) + VcenterOrBuilder { + private static final long serialVersionUID = 0L; + // Use Vcenter.newBuilder() to construct. + private Vcenter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Vcenter() { + internalIp_ = ""; + version_ = ""; + state_ = 0; + fqdn_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Vcenter(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_Vcenter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_Vcenter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.Vcenter.class, + com.google.cloud.vmwareengine.v1.Vcenter.Builder.class); + } + + /** + * + * + *
+   * State of the appliance
+   * 
+ * + * Protobuf enum {@code google.cloud.vmwareengine.v1.Vcenter.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Unspecified appliance state. This is the default value.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
+     * The appliance is operational and can be used.
+     * 
+ * + * ACTIVE = 1; + */ + ACTIVE(1), + /** + * + * + *
+     * The appliance is being deployed.
+     * 
+ * + * CREATING = 2; + */ + CREATING(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Unspecified appliance state. This is the default value.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * The appliance is operational and can be used.
+     * 
+ * + * ACTIVE = 1; + */ + public static final int ACTIVE_VALUE = 1; + /** + * + * + *
+     * The appliance is being deployed.
+     * 
+ * + * CREATING = 2; + */ + public static final int CREATING_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 State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return ACTIVE; + case 2: + return CREATING; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.Vcenter.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.vmwareengine.v1.Vcenter.State) + } + + public static final int INTERNAL_IP_FIELD_NUMBER = 2; + private volatile java.lang.Object internalIp_; + /** + * + * + *
+   * Internal IP address of the appliance.
+   * 
+ * + * string internal_ip = 2; + * + * @return The internalIp. + */ + @java.lang.Override + public java.lang.String getInternalIp() { + java.lang.Object ref = internalIp_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + internalIp_ = s; + return s; + } + } + /** + * + * + *
+   * Internal IP address of the appliance.
+   * 
+ * + * string internal_ip = 2; + * + * @return The bytes for internalIp. + */ + @java.lang.Override + public com.google.protobuf.ByteString getInternalIpBytes() { + java.lang.Object ref = internalIp_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + internalIp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VERSION_FIELD_NUMBER = 4; + private volatile java.lang.Object version_; + /** + * + * + *
+   * Version of the appliance.
+   * 
+ * + * string version = 4; + * + * @return The version. + */ + @java.lang.Override + public java.lang.String getVersion() { + java.lang.Object ref = version_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + version_ = s; + return s; + } + } + /** + * + * + *
+   * Version of the appliance.
+   * 
+ * + * string version = 4; + * + * @return The bytes for version. + */ + @java.lang.Override + public com.google.protobuf.ByteString getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + version_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATE_FIELD_NUMBER = 5; + private int state_; + /** + * + * + *
+   * Output only. The state of the appliance.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.Vcenter.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
+   * Output only. The state of the appliance.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.Vcenter.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.Vcenter.State getState() { + @SuppressWarnings("deprecation") + com.google.cloud.vmwareengine.v1.Vcenter.State result = + com.google.cloud.vmwareengine.v1.Vcenter.State.valueOf(state_); + return result == null ? com.google.cloud.vmwareengine.v1.Vcenter.State.UNRECOGNIZED : result; + } + + public static final int FQDN_FIELD_NUMBER = 6; + private volatile java.lang.Object fqdn_; + /** + * + * + *
+   * Fully qualified domain name of the appliance.
+   * 
+ * + * string fqdn = 6; + * + * @return The fqdn. + */ + @java.lang.Override + public java.lang.String getFqdn() { + java.lang.Object ref = fqdn_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fqdn_ = s; + return s; + } + } + /** + * + * + *
+   * Fully qualified domain name of the appliance.
+   * 
+ * + * string fqdn = 6; + * + * @return The bytes for fqdn. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFqdnBytes() { + java.lang.Object ref = fqdn_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + fqdn_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(internalIp_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, internalIp_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, version_); + } + if (state_ != com.google.cloud.vmwareengine.v1.Vcenter.State.STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(5, state_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fqdn_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, fqdn_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(internalIp_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, internalIp_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, version_); + } + if (state_ != com.google.cloud.vmwareengine.v1.Vcenter.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, state_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fqdn_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, fqdn_); + } + 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.vmwareengine.v1.Vcenter)) { + return super.equals(obj); + } + com.google.cloud.vmwareengine.v1.Vcenter other = (com.google.cloud.vmwareengine.v1.Vcenter) obj; + + if (!getInternalIp().equals(other.getInternalIp())) return false; + if (!getVersion().equals(other.getVersion())) return false; + if (state_ != other.state_) return false; + if (!getFqdn().equals(other.getFqdn())) 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) + INTERNAL_IP_FIELD_NUMBER; + hash = (53 * hash) + getInternalIp().hashCode(); + hash = (37 * hash) + VERSION_FIELD_NUMBER; + hash = (53 * hash) + getVersion().hashCode(); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (37 * hash) + FQDN_FIELD_NUMBER; + hash = (53 * hash) + getFqdn().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmwareengine.v1.Vcenter parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.Vcenter 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.vmwareengine.v1.Vcenter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.Vcenter parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.Vcenter parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.Vcenter parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.Vcenter parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.Vcenter parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.Vcenter parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.Vcenter parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.Vcenter parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.Vcenter parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.vmwareengine.v1.Vcenter prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Details about a vCenter Server management appliance.
+   * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.Vcenter} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmwareengine.v1.Vcenter) + com.google.cloud.vmwareengine.v1.VcenterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_Vcenter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_Vcenter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.Vcenter.class, + com.google.cloud.vmwareengine.v1.Vcenter.Builder.class); + } + + // Construct using com.google.cloud.vmwareengine.v1.Vcenter.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + internalIp_ = ""; + + version_ = ""; + + state_ = 0; + + fqdn_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_Vcenter_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.Vcenter getDefaultInstanceForType() { + return com.google.cloud.vmwareengine.v1.Vcenter.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.Vcenter build() { + com.google.cloud.vmwareengine.v1.Vcenter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.Vcenter buildPartial() { + com.google.cloud.vmwareengine.v1.Vcenter result = + new com.google.cloud.vmwareengine.v1.Vcenter(this); + result.internalIp_ = internalIp_; + result.version_ = version_; + result.state_ = state_; + result.fqdn_ = fqdn_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.vmwareengine.v1.Vcenter) { + return mergeFrom((com.google.cloud.vmwareengine.v1.Vcenter) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmwareengine.v1.Vcenter other) { + if (other == com.google.cloud.vmwareengine.v1.Vcenter.getDefaultInstance()) return this; + if (!other.getInternalIp().isEmpty()) { + internalIp_ = other.internalIp_; + onChanged(); + } + if (!other.getVersion().isEmpty()) { + version_ = other.version_; + onChanged(); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (!other.getFqdn().isEmpty()) { + fqdn_ = other.fqdn_; + 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 18: + { + internalIp_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 34: + { + version_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 40: + { + state_ = input.readEnum(); + + break; + } // case 40 + case 50: + { + fqdn_ = input.readStringRequireUtf8(); + + break; + } // case 50 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private java.lang.Object internalIp_ = ""; + /** + * + * + *
+     * Internal IP address of the appliance.
+     * 
+ * + * string internal_ip = 2; + * + * @return The internalIp. + */ + public java.lang.String getInternalIp() { + java.lang.Object ref = internalIp_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + internalIp_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Internal IP address of the appliance.
+     * 
+ * + * string internal_ip = 2; + * + * @return The bytes for internalIp. + */ + public com.google.protobuf.ByteString getInternalIpBytes() { + java.lang.Object ref = internalIp_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + internalIp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Internal IP address of the appliance.
+     * 
+ * + * string internal_ip = 2; + * + * @param value The internalIp to set. + * @return This builder for chaining. + */ + public Builder setInternalIp(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + internalIp_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Internal IP address of the appliance.
+     * 
+ * + * string internal_ip = 2; + * + * @return This builder for chaining. + */ + public Builder clearInternalIp() { + + internalIp_ = getDefaultInstance().getInternalIp(); + onChanged(); + return this; + } + /** + * + * + *
+     * Internal IP address of the appliance.
+     * 
+ * + * string internal_ip = 2; + * + * @param value The bytes for internalIp to set. + * @return This builder for chaining. + */ + public Builder setInternalIpBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + internalIp_ = value; + onChanged(); + return this; + } + + private java.lang.Object version_ = ""; + /** + * + * + *
+     * Version of the appliance.
+     * 
+ * + * string version = 4; + * + * @return The version. + */ + public java.lang.String getVersion() { + java.lang.Object ref = version_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + version_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Version of the appliance.
+     * 
+ * + * string version = 4; + * + * @return The bytes for version. + */ + public com.google.protobuf.ByteString getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + version_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Version of the appliance.
+     * 
+ * + * string version = 4; + * + * @param value The version to set. + * @return This builder for chaining. + */ + public Builder setVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + version_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Version of the appliance.
+     * 
+ * + * string version = 4; + * + * @return This builder for chaining. + */ + public Builder clearVersion() { + + version_ = getDefaultInstance().getVersion(); + onChanged(); + return this; + } + /** + * + * + *
+     * Version of the appliance.
+     * 
+ * + * string version = 4; + * + * @param value The bytes for version to set. + * @return This builder for chaining. + */ + public Builder setVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + version_ = value; + onChanged(); + return this; + } + + private int state_ = 0; + /** + * + * + *
+     * Output only. The state of the appliance.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.Vcenter.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
+     * Output only. The state of the appliance.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.Vcenter.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + + state_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The state of the appliance.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.Vcenter.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.Vcenter.State getState() { + @SuppressWarnings("deprecation") + com.google.cloud.vmwareengine.v1.Vcenter.State result = + com.google.cloud.vmwareengine.v1.Vcenter.State.valueOf(state_); + return result == null ? com.google.cloud.vmwareengine.v1.Vcenter.State.UNRECOGNIZED : result; + } + /** + * + * + *
+     * Output only. The state of the appliance.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.Vcenter.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.vmwareengine.v1.Vcenter.State value) { + if (value == null) { + throw new NullPointerException(); + } + + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The state of the appliance.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.Vcenter.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + + state_ = 0; + onChanged(); + return this; + } + + private java.lang.Object fqdn_ = ""; + /** + * + * + *
+     * Fully qualified domain name of the appliance.
+     * 
+ * + * string fqdn = 6; + * + * @return The fqdn. + */ + public java.lang.String getFqdn() { + java.lang.Object ref = fqdn_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fqdn_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Fully qualified domain name of the appliance.
+     * 
+ * + * string fqdn = 6; + * + * @return The bytes for fqdn. + */ + public com.google.protobuf.ByteString getFqdnBytes() { + java.lang.Object ref = fqdn_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + fqdn_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Fully qualified domain name of the appliance.
+     * 
+ * + * string fqdn = 6; + * + * @param value The fqdn to set. + * @return This builder for chaining. + */ + public Builder setFqdn(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + fqdn_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Fully qualified domain name of the appliance.
+     * 
+ * + * string fqdn = 6; + * + * @return This builder for chaining. + */ + public Builder clearFqdn() { + + fqdn_ = getDefaultInstance().getFqdn(); + onChanged(); + return this; + } + /** + * + * + *
+     * Fully qualified domain name of the appliance.
+     * 
+ * + * string fqdn = 6; + * + * @param value The bytes for fqdn to set. + * @return This builder for chaining. + */ + public Builder setFqdnBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + fqdn_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.vmwareengine.v1.Vcenter) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmwareengine.v1.Vcenter) + private static final com.google.cloud.vmwareengine.v1.Vcenter DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmwareengine.v1.Vcenter(); + } + + public static com.google.cloud.vmwareengine.v1.Vcenter getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Vcenter 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.vmwareengine.v1.Vcenter getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/VcenterOrBuilder.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/VcenterOrBuilder.java new file mode 100644 index 000000000000..539463f3a0db --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/VcenterOrBuilder.java @@ -0,0 +1,129 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmwareengine/v1/vmwareengine.proto + +package com.google.cloud.vmwareengine.v1; + +public interface VcenterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmwareengine.v1.Vcenter) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Internal IP address of the appliance.
+   * 
+ * + * string internal_ip = 2; + * + * @return The internalIp. + */ + java.lang.String getInternalIp(); + /** + * + * + *
+   * Internal IP address of the appliance.
+   * 
+ * + * string internal_ip = 2; + * + * @return The bytes for internalIp. + */ + com.google.protobuf.ByteString getInternalIpBytes(); + + /** + * + * + *
+   * Version of the appliance.
+   * 
+ * + * string version = 4; + * + * @return The version. + */ + java.lang.String getVersion(); + /** + * + * + *
+   * Version of the appliance.
+   * 
+ * + * string version = 4; + * + * @return The bytes for version. + */ + com.google.protobuf.ByteString getVersionBytes(); + + /** + * + * + *
+   * Output only. The state of the appliance.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.Vcenter.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + /** + * + * + *
+   * Output only. The state of the appliance.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.Vcenter.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.vmwareengine.v1.Vcenter.State getState(); + + /** + * + * + *
+   * Fully qualified domain name of the appliance.
+   * 
+ * + * string fqdn = 6; + * + * @return The fqdn. + */ + java.lang.String getFqdn(); + /** + * + * + *
+   * Fully qualified domain name of the appliance.
+   * 
+ * + * string fqdn = 6; + * + * @return The bytes for fqdn. + */ + com.google.protobuf.ByteString getFqdnBytes(); +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/VmwareEngineNetwork.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/VmwareEngineNetwork.java new file mode 100644 index 000000000000..6597b6f79ff9 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/VmwareEngineNetwork.java @@ -0,0 +1,4137 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmwareengine/v1/vmwareengine.proto + +package com.google.cloud.vmwareengine.v1; + +/** + * + * + *
+ * VMware Engine network resource that provides connectivity for VMware Engine
+ * private clouds.
+ * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.VmwareEngineNetwork} + */ +public final class VmwareEngineNetwork extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmwareengine.v1.VmwareEngineNetwork) + VmwareEngineNetworkOrBuilder { + private static final long serialVersionUID = 0L; + // Use VmwareEngineNetwork.newBuilder() to construct. + private VmwareEngineNetwork(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private VmwareEngineNetwork() { + name_ = ""; + description_ = ""; + vpcNetworks_ = java.util.Collections.emptyList(); + state_ = 0; + type_ = 0; + uid_ = ""; + etag_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new VmwareEngineNetwork(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_VmwareEngineNetwork_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_VmwareEngineNetwork_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.class, + com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.Builder.class); + } + + /** + * + * + *
+   * Enum State defines possible states of VMware Engine network.
+   * 
+ * + * Protobuf enum {@code google.cloud.vmwareengine.v1.VmwareEngineNetwork.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * The default value. This value is used if the state is omitted.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
+     * The VMware Engine network is being created.
+     * 
+ * + * CREATING = 1; + */ + CREATING(1), + /** + * + * + *
+     * The VMware Engine network is ready.
+     * 
+ * + * ACTIVE = 2; + */ + ACTIVE(2), + /** + * + * + *
+     * The VMware Engine network is being updated.
+     * 
+ * + * UPDATING = 3; + */ + UPDATING(3), + /** + * + * + *
+     * The VMware Engine network is being deleted.
+     * 
+ * + * DELETING = 4; + */ + DELETING(4), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * The default value. This value is used if the state is omitted.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * The VMware Engine network is being created.
+     * 
+ * + * CREATING = 1; + */ + public static final int CREATING_VALUE = 1; + /** + * + * + *
+     * The VMware Engine network is ready.
+     * 
+ * + * ACTIVE = 2; + */ + public static final int ACTIVE_VALUE = 2; + /** + * + * + *
+     * The VMware Engine network is being updated.
+     * 
+ * + * UPDATING = 3; + */ + public static final int UPDATING_VALUE = 3; + /** + * + * + *
+     * The VMware Engine network is being deleted.
+     * 
+ * + * DELETING = 4; + */ + public static final int DELETING_VALUE = 4; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return CREATING; + case 2: + return ACTIVE; + case 3: + return UPDATING; + case 4: + return DELETING; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.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.vmwareengine.v1.VmwareEngineNetwork.State) + } + + /** + * + * + *
+   * Enum Type defines possible types of VMware Engine network.
+   * 
+ * + * Protobuf enum {@code google.cloud.vmwareengine.v1.VmwareEngineNetwork.Type} + */ + public enum Type implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * The default value. This value should never be used.
+     * 
+ * + * TYPE_UNSPECIFIED = 0; + */ + TYPE_UNSPECIFIED(0), + /** + * + * + *
+     * Network type used by private clouds created in projects without a network
+     * of type `STANDARD`. This network type is no longer used for new VMware
+     * Engine private cloud deployments.
+     * 
+ * + * LEGACY = 1; + */ + LEGACY(1), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * The default value. This value should never be used.
+     * 
+ * + * TYPE_UNSPECIFIED = 0; + */ + public static final int TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Network type used by private clouds created in projects without a network
+     * of type `STANDARD`. This network type is no longer used for new VMware
+     * Engine private cloud deployments.
+     * 
+ * + * LEGACY = 1; + */ + public static final int LEGACY_VALUE = 1; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Type 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 Type forNumber(int value) { + switch (value) { + case 0: + return TYPE_UNSPECIFIED; + case 1: + return LEGACY; + 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 Type findValueByNumber(int number) { + return Type.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.getDescriptor() + .getEnumTypes() + .get(1); + } + + private static final Type[] VALUES = values(); + + public static Type 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 Type(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.vmwareengine.v1.VmwareEngineNetwork.Type) + } + + public interface VpcNetworkOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Output only. Type of VPC network (INTRANET, INTERNET, or
+     * GOOGLE_CLOUD)
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork.Type type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for type. + */ + int getTypeValue(); + /** + * + * + *
+     * Output only. Type of VPC network (INTRANET, INTERNET, or
+     * GOOGLE_CLOUD)
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork.Type type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The type. + */ + com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork.Type getType(); + + /** + * + * + *
+     * Output only. The relative resource name of the service VPC network this
+     * VMware Engine network is attached to. For example:
+     * `projects/123123/global/networks/my-network`
+     * 
+ * + * + * string network = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The network. + */ + java.lang.String getNetwork(); + /** + * + * + *
+     * Output only. The relative resource name of the service VPC network this
+     * VMware Engine network is attached to. For example:
+     * `projects/123123/global/networks/my-network`
+     * 
+ * + * + * string network = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for network. + */ + com.google.protobuf.ByteString getNetworkBytes(); + } + /** + * + * + *
+   * Represents a VMware Engine VPC network that is managed by a
+   * VMware Engine network resource.
+   * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork} + */ + public static final class VpcNetwork extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork) + VpcNetworkOrBuilder { + private static final long serialVersionUID = 0L; + // Use VpcNetwork.newBuilder() to construct. + private VpcNetwork(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private VpcNetwork() { + type_ = 0; + network_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new VpcNetwork(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_VmwareEngineNetwork_VpcNetwork_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_VmwareEngineNetwork_VpcNetwork_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork.class, + com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork.Builder.class); + } + + /** + * + * + *
+     * Enum Type defines possible types of a VMware Engine network controlled
+     * service.
+     * 
+ * + * Protobuf enum {@code google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork.Type} + */ + public enum Type implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+       * The default value. This value should never be used.
+       * 
+ * + * TYPE_UNSPECIFIED = 0; + */ + TYPE_UNSPECIFIED(0), + /** + * + * + *
+       * VPC network that will be peered with a consumer VPC network or the
+       * intranet VPC of another VMware Engine network. Access a private cloud
+       * through Compute Engine VMs on a peered VPC network or an on-premises
+       * resource connected to a peered consumer VPC network.
+       * 
+ * + * INTRANET = 1; + */ + INTRANET(1), + /** + * + * + *
+       * VPC network used for internet access to and from a private cloud.
+       * 
+ * + * INTERNET = 2; + */ + INTERNET(2), + /** + * + * + *
+       * VPC network used for access to Google Cloud services like
+       * Cloud Storage.
+       * 
+ * + * GOOGLE_CLOUD = 3; + */ + GOOGLE_CLOUD(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+       * The default value. This value should never be used.
+       * 
+ * + * TYPE_UNSPECIFIED = 0; + */ + public static final int TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+       * VPC network that will be peered with a consumer VPC network or the
+       * intranet VPC of another VMware Engine network. Access a private cloud
+       * through Compute Engine VMs on a peered VPC network or an on-premises
+       * resource connected to a peered consumer VPC network.
+       * 
+ * + * INTRANET = 1; + */ + public static final int INTRANET_VALUE = 1; + /** + * + * + *
+       * VPC network used for internet access to and from a private cloud.
+       * 
+ * + * INTERNET = 2; + */ + public static final int INTERNET_VALUE = 2; + /** + * + * + *
+       * VPC network used for access to Google Cloud services like
+       * Cloud Storage.
+       * 
+ * + * GOOGLE_CLOUD = 3; + */ + public static final int GOOGLE_CLOUD_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Type 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 Type forNumber(int value) { + switch (value) { + case 0: + return TYPE_UNSPECIFIED; + case 1: + return INTRANET; + case 2: + return INTERNET; + case 3: + return GOOGLE_CLOUD; + 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 Type findValueByNumber(int number) { + return Type.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final Type[] VALUES = values(); + + public static Type 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 Type(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork.Type) + } + + public static final int TYPE_FIELD_NUMBER = 1; + private int type_; + /** + * + * + *
+     * Output only. Type of VPC network (INTRANET, INTERNET, or
+     * GOOGLE_CLOUD)
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork.Type type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + /** + * + * + *
+     * Output only. Type of VPC network (INTRANET, INTERNET, or
+     * GOOGLE_CLOUD)
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork.Type type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork.Type getType() { + @SuppressWarnings("deprecation") + com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork.Type result = + com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork.Type.valueOf(type_); + return result == null + ? com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork.Type.UNRECOGNIZED + : result; + } + + public static final int NETWORK_FIELD_NUMBER = 2; + private volatile java.lang.Object network_; + /** + * + * + *
+     * Output only. The relative resource name of the service VPC network this
+     * VMware Engine network is attached to. For example:
+     * `projects/123123/global/networks/my-network`
+     * 
+ * + * + * string network = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The network. + */ + @java.lang.Override + public java.lang.String getNetwork() { + java.lang.Object ref = network_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + network_ = s; + return s; + } + } + /** + * + * + *
+     * Output only. The relative resource name of the service VPC network this
+     * VMware Engine network is attached to. For example:
+     * `projects/123123/global/networks/my-network`
+     * 
+ * + * + * string network = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for network. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNetworkBytes() { + java.lang.Object ref = network_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + network_ = 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 (type_ + != com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork.Type.TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, type_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, network_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (type_ + != com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork.Type.TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, type_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, network_); + } + 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.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork)) { + return super.equals(obj); + } + com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork other = + (com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork) obj; + + if (type_ != other.type_) return false; + if (!getNetwork().equals(other.getNetwork())) 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) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + hash = (37 * hash) + NETWORK_FIELD_NUMBER; + hash = (53 * hash) + getNetwork().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork 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.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Represents a VMware Engine VPC network that is managed by a
+     * VMware Engine network resource.
+     * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork) + com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetworkOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_VmwareEngineNetwork_VpcNetwork_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_VmwareEngineNetwork_VpcNetwork_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork.class, + com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork.Builder.class); + } + + // Construct using + // com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + type_ = 0; + + network_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_VmwareEngineNetwork_VpcNetwork_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork + getDefaultInstanceForType() { + return com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork build() { + com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork buildPartial() { + com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork result = + new com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork(this); + result.type_ = type_; + result.network_ = network_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork) { + return mergeFrom((com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork other) { + if (other + == com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork.getDefaultInstance()) + return this; + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + if (!other.getNetwork().isEmpty()) { + network_ = other.network_; + 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: + { + type_ = input.readEnum(); + + break; + } // case 8 + case 18: + { + network_ = input.readStringRequireUtf8(); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int type_ = 0; + /** + * + * + *
+       * Output only. Type of VPC network (INTRANET, INTERNET, or
+       * GOOGLE_CLOUD)
+       * 
+ * + * + * .google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork.Type type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + /** + * + * + *
+       * Output only. Type of VPC network (INTRANET, INTERNET, or
+       * GOOGLE_CLOUD)
+       * 
+ * + * + * .google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork.Type type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for type to set. + * @return This builder for chaining. + */ + public Builder setTypeValue(int value) { + + type_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. Type of VPC network (INTRANET, INTERNET, or
+       * GOOGLE_CLOUD)
+       * 
+ * + * + * .google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork.Type type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork.Type getType() { + @SuppressWarnings("deprecation") + com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork.Type result = + com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork.Type.valueOf(type_); + return result == null + ? com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork.Type.UNRECOGNIZED + : result; + } + /** + * + * + *
+       * Output only. Type of VPC network (INTRANET, INTERNET, or
+       * GOOGLE_CLOUD)
+       * 
+ * + * + * .google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork.Type type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType( + com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork.Type value) { + if (value == null) { + throw new NullPointerException(); + } + + type_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. Type of VPC network (INTRANET, INTERNET, or
+       * GOOGLE_CLOUD)
+       * 
+ * + * + * .google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork.Type type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearType() { + + type_ = 0; + onChanged(); + return this; + } + + private java.lang.Object network_ = ""; + /** + * + * + *
+       * Output only. The relative resource name of the service VPC network this
+       * VMware Engine network is attached to. For example:
+       * `projects/123123/global/networks/my-network`
+       * 
+ * + * + * string network = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The network. + */ + public java.lang.String getNetwork() { + java.lang.Object ref = network_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + network_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Output only. The relative resource name of the service VPC network this
+       * VMware Engine network is attached to. For example:
+       * `projects/123123/global/networks/my-network`
+       * 
+ * + * + * string network = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for network. + */ + public com.google.protobuf.ByteString getNetworkBytes() { + java.lang.Object ref = network_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + network_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Output only. The relative resource name of the service VPC network this
+       * VMware Engine network is attached to. For example:
+       * `projects/123123/global/networks/my-network`
+       * 
+ * + * + * string network = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The network to set. + * @return This builder for chaining. + */ + public Builder setNetwork(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + network_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. The relative resource name of the service VPC network this
+       * VMware Engine network is attached to. For example:
+       * `projects/123123/global/networks/my-network`
+       * 
+ * + * + * string network = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearNetwork() { + + network_ = getDefaultInstance().getNetwork(); + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. The relative resource name of the service VPC network this
+       * VMware Engine network is attached to. For example:
+       * `projects/123123/global/networks/my-network`
+       * 
+ * + * + * string network = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for network to set. + * @return This builder for chaining. + */ + public Builder setNetworkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + network_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork) + private static final com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork(); + } + + public static com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VpcNetwork 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.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Output only. The resource name of the VMware Engine network.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-project/locations/global/vmwareEngineNetworks/my-network`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The resource name of the VMware Engine network.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-project/locations/global/vmwareEngineNetworks/my-network`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
+   * Output only. Creation time of this resource.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return createTime_ != null; + } + /** + * + * + *
+   * Output only. Creation time of this resource.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + /** + * + * + *
+   * Output only. Creation time of this resource.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return getCreateTime(); + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp updateTime_; + /** + * + * + *
+   * Output only. Last update time of this resource.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return updateTime_ != null; + } + /** + * + * + *
+   * Output only. Last update time of this resource.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + /** + * + * + *
+   * Output only. Last update time of this resource.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return getUpdateTime(); + } + + public static final int DESCRIPTION_FIELD_NUMBER = 5; + private volatile java.lang.Object description_; + /** + * + * + *
+   * User-provided description for this VMware Engine network.
+   * 
+ * + * string description = 5; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + /** + * + * + *
+   * User-provided description for this VMware Engine network.
+   * 
+ * + * string description = 5; + * + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VPC_NETWORKS_FIELD_NUMBER = 6; + private java.util.List + vpcNetworks_; + /** + * + * + *
+   * Output only. VMware Engine service VPC networks that provide connectivity
+   * from a private cloud to customer projects, the internet, and other Google
+   * Cloud services.
+   * 
+ * + * + * repeated .google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork vpc_networks = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getVpcNetworksList() { + return vpcNetworks_; + } + /** + * + * + *
+   * Output only. VMware Engine service VPC networks that provide connectivity
+   * from a private cloud to customer projects, the internet, and other Google
+   * Cloud services.
+   * 
+ * + * + * repeated .google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork vpc_networks = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetworkOrBuilder> + getVpcNetworksOrBuilderList() { + return vpcNetworks_; + } + /** + * + * + *
+   * Output only. VMware Engine service VPC networks that provide connectivity
+   * from a private cloud to customer projects, the internet, and other Google
+   * Cloud services.
+   * 
+ * + * + * repeated .google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork vpc_networks = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getVpcNetworksCount() { + return vpcNetworks_.size(); + } + /** + * + * + *
+   * Output only. VMware Engine service VPC networks that provide connectivity
+   * from a private cloud to customer projects, the internet, and other Google
+   * Cloud services.
+   * 
+ * + * + * repeated .google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork vpc_networks = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork getVpcNetworks(int index) { + return vpcNetworks_.get(index); + } + /** + * + * + *
+   * Output only. VMware Engine service VPC networks that provide connectivity
+   * from a private cloud to customer projects, the internet, and other Google
+   * Cloud services.
+   * 
+ * + * + * repeated .google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork vpc_networks = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetworkOrBuilder + getVpcNetworksOrBuilder(int index) { + return vpcNetworks_.get(index); + } + + public static final int STATE_FIELD_NUMBER = 7; + private int state_; + /** + * + * + *
+   * Output only. State of the VMware Engine network.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.VmwareEngineNetwork.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
+   * Output only. State of the VMware Engine network.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.VmwareEngineNetwork.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.State getState() { + @SuppressWarnings("deprecation") + com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.State result = + com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.State.valueOf(state_); + return result == null + ? com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.State.UNRECOGNIZED + : result; + } + + public static final int TYPE_FIELD_NUMBER = 8; + private int type_; + /** + * + * + *
+   * Required. VMware Engine network type.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.VmwareEngineNetwork.Type type = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + /** + * + * + *
+   * Required. VMware Engine network type.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.VmwareEngineNetwork.Type type = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.Type getType() { + @SuppressWarnings("deprecation") + com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.Type result = + com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.Type.valueOf(type_); + return result == null + ? com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.Type.UNRECOGNIZED + : result; + } + + public static final int UID_FIELD_NUMBER = 9; + private volatile java.lang.Object uid_; + /** + * + * + *
+   * Output only. System-generated unique identifier for the resource.
+   * 
+ * + * string uid = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The uid. + */ + @java.lang.Override + public java.lang.String getUid() { + java.lang.Object ref = uid_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uid_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. System-generated unique identifier for the resource.
+   * 
+ * + * string uid = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for uid. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUidBytes() { + java.lang.Object ref = uid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ETAG_FIELD_NUMBER = 10; + private volatile java.lang.Object etag_; + /** + * + * + *
+   * Checksum that may be sent on update and delete requests to ensure that the
+   * user-provided value is up to date before the server processes a request.
+   * The server computes checksums based on the value of other fields in the
+   * request.
+   * 
+ * + * string etag = 10; + * + * @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; + } + } + /** + * + * + *
+   * Checksum that may be sent on update and delete requests to ensure that the
+   * user-provided value is up to date before the server processes a request.
+   * The server computes checksums based on the value of other fields in the
+   * request.
+   * 
+ * + * string etag = 10; + * + * @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; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (createTime_ != null) { + output.writeMessage(2, getCreateTime()); + } + if (updateTime_ != null) { + output.writeMessage(3, getUpdateTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, description_); + } + for (int i = 0; i < vpcNetworks_.size(); i++) { + output.writeMessage(6, vpcNetworks_.get(i)); + } + if (state_ + != com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.State.STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(7, state_); + } + if (type_ + != com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.Type.TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(8, type_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, uid_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, etag_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (createTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); + } + if (updateTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, description_); + } + for (int i = 0; i < vpcNetworks_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, vpcNetworks_.get(i)); + } + if (state_ + != com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.State.STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, state_); + } + if (type_ + != com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.Type.TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, type_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, uid_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, etag_); + } + 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.vmwareengine.v1.VmwareEngineNetwork)) { + return super.equals(obj); + } + com.google.cloud.vmwareengine.v1.VmwareEngineNetwork other = + (com.google.cloud.vmwareengine.v1.VmwareEngineNetwork) obj; + + if (!getName().equals(other.getName())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (!getDescription().equals(other.getDescription())) return false; + if (!getVpcNetworksList().equals(other.getVpcNetworksList())) return false; + if (state_ != other.state_) return false; + if (type_ != other.type_) return false; + if (!getUid().equals(other.getUid())) return false; + if (!getEtag().equals(other.getEtag())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + if (getVpcNetworksCount() > 0) { + hash = (37 * hash) + VPC_NETWORKS_FIELD_NUMBER; + hash = (53 * hash) + getVpcNetworksList().hashCode(); + } + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + hash = (37 * hash) + UID_FIELD_NUMBER; + hash = (53 * hash) + getUid().hashCode(); + hash = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmwareengine.v1.VmwareEngineNetwork parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.VmwareEngineNetwork 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.vmwareengine.v1.VmwareEngineNetwork parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.VmwareEngineNetwork parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.VmwareEngineNetwork parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmwareengine.v1.VmwareEngineNetwork parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.VmwareEngineNetwork parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.VmwareEngineNetwork parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.VmwareEngineNetwork parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.VmwareEngineNetwork parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vmwareengine.v1.VmwareEngineNetwork parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmwareengine.v1.VmwareEngineNetwork parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.vmwareengine.v1.VmwareEngineNetwork prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * VMware Engine network resource that provides connectivity for VMware Engine
+   * private clouds.
+   * 
+ * + * Protobuf type {@code google.cloud.vmwareengine.v1.VmwareEngineNetwork} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmwareengine.v1.VmwareEngineNetwork) + com.google.cloud.vmwareengine.v1.VmwareEngineNetworkOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_VmwareEngineNetwork_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_VmwareEngineNetwork_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.class, + com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.Builder.class); + } + + // Construct using com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + if (createTimeBuilder_ == null) { + createTime_ = null; + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + if (updateTimeBuilder_ == null) { + updateTime_ = null; + } else { + updateTime_ = null; + updateTimeBuilder_ = null; + } + description_ = ""; + + if (vpcNetworksBuilder_ == null) { + vpcNetworks_ = java.util.Collections.emptyList(); + } else { + vpcNetworks_ = null; + vpcNetworksBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + state_ = 0; + + type_ = 0; + + uid_ = ""; + + etag_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmwareengine.v1.VmwareengineProto + .internal_static_google_cloud_vmwareengine_v1_VmwareEngineNetwork_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.VmwareEngineNetwork getDefaultInstanceForType() { + return com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.VmwareEngineNetwork build() { + com.google.cloud.vmwareengine.v1.VmwareEngineNetwork result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmwareengine.v1.VmwareEngineNetwork buildPartial() { + com.google.cloud.vmwareengine.v1.VmwareEngineNetwork result = + new com.google.cloud.vmwareengine.v1.VmwareEngineNetwork(this); + int from_bitField0_ = bitField0_; + result.name_ = name_; + if (createTimeBuilder_ == null) { + result.createTime_ = createTime_; + } else { + result.createTime_ = createTimeBuilder_.build(); + } + if (updateTimeBuilder_ == null) { + result.updateTime_ = updateTime_; + } else { + result.updateTime_ = updateTimeBuilder_.build(); + } + result.description_ = description_; + if (vpcNetworksBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + vpcNetworks_ = java.util.Collections.unmodifiableList(vpcNetworks_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.vpcNetworks_ = vpcNetworks_; + } else { + result.vpcNetworks_ = vpcNetworksBuilder_.build(); + } + result.state_ = state_; + result.type_ = type_; + result.uid_ = uid_; + result.etag_ = etag_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.vmwareengine.v1.VmwareEngineNetwork) { + return mergeFrom((com.google.cloud.vmwareengine.v1.VmwareEngineNetwork) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmwareengine.v1.VmwareEngineNetwork other) { + if (other == com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + onChanged(); + } + if (vpcNetworksBuilder_ == null) { + if (!other.vpcNetworks_.isEmpty()) { + if (vpcNetworks_.isEmpty()) { + vpcNetworks_ = other.vpcNetworks_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureVpcNetworksIsMutable(); + vpcNetworks_.addAll(other.vpcNetworks_); + } + onChanged(); + } + } else { + if (!other.vpcNetworks_.isEmpty()) { + if (vpcNetworksBuilder_.isEmpty()) { + vpcNetworksBuilder_.dispose(); + vpcNetworksBuilder_ = null; + vpcNetworks_ = other.vpcNetworks_; + bitField0_ = (bitField0_ & ~0x00000001); + vpcNetworksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getVpcNetworksFieldBuilder() + : null; + } else { + vpcNetworksBuilder_.addAllMessages(other.vpcNetworks_); + } + } + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + if (!other.getUid().isEmpty()) { + uid_ = other.uid_; + onChanged(); + } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + case 26: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 26 + case 42: + { + description_ = input.readStringRequireUtf8(); + + break; + } // case 42 + case 50: + { + com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork m = + input.readMessage( + com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork.parser(), + extensionRegistry); + if (vpcNetworksBuilder_ == null) { + ensureVpcNetworksIsMutable(); + vpcNetworks_.add(m); + } else { + vpcNetworksBuilder_.addMessage(m); + } + break; + } // case 50 + case 56: + { + state_ = input.readEnum(); + + break; + } // case 56 + case 64: + { + type_ = input.readEnum(); + + break; + } // case 64 + case 74: + { + uid_ = input.readStringRequireUtf8(); + + break; + } // case 74 + case 82: + { + etag_ = input.readStringRequireUtf8(); + + break; + } // case 82 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Output only. The resource name of the VMware Engine network.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/global/vmwareEngineNetworks/my-network`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The resource name of the VMware Engine network.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/global/vmwareEngineNetworks/my-network`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The resource name of the VMware Engine network.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/global/vmwareEngineNetworks/my-network`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The resource name of the VMware Engine network.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/global/vmwareEngineNetworks/my-network`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The resource name of the VMware Engine network.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * For example:
+     * `projects/my-project/locations/global/vmwareEngineNetworks/my-network`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + /** + * + * + *
+     * Output only. Creation time of this resource.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return createTimeBuilder_ != null || createTime_ != null; + } + /** + * + * + *
+     * Output only. Creation time of this resource.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Creation time of this resource.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + onChanged(); + } else { + createTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Creation time of this resource.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + onChanged(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. Creation time of this resource.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (createTime_ != null) { + createTime_ = + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + } else { + createTime_ = value; + } + onChanged(); + } else { + createTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Creation time of this resource.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + if (createTimeBuilder_ == null) { + createTime_ = null; + onChanged(); + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. Creation time of this resource.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Creation time of this resource.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + /** + * + * + *
+     * Output only. Creation time of this resource.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + /** + * + * + *
+     * Output only. Last update time of this resource.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return updateTimeBuilder_ != null || updateTime_ != null; + } + /** + * + * + *
+     * Output only. Last update time of this resource.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Last update time of this resource.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + onChanged(); + } else { + updateTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Last update time of this resource.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + onChanged(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. Last update time of this resource.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (updateTime_ != null) { + updateTime_ = + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + } else { + updateTime_ = value; + } + onChanged(); + } else { + updateTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Last update time of this resource.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + if (updateTimeBuilder_ == null) { + updateTime_ = null; + onChanged(); + } else { + updateTime_ = null; + updateTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. Last update time of this resource.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Last update time of this resource.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + /** + * + * + *
+     * Output only. Last update time of this resource.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private java.lang.Object description_ = ""; + /** + * + * + *
+     * User-provided description for this VMware Engine network.
+     * 
+ * + * string description = 5; + * + * @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; + } + } + /** + * + * + *
+     * User-provided description for this VMware Engine network.
+     * 
+ * + * string description = 5; + * + * @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; + } + } + /** + * + * + *
+     * User-provided description for this VMware Engine network.
+     * 
+ * + * string description = 5; + * + * @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; + onChanged(); + return this; + } + /** + * + * + *
+     * User-provided description for this VMware Engine network.
+     * 
+ * + * string description = 5; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + + description_ = getDefaultInstance().getDescription(); + onChanged(); + return this; + } + /** + * + * + *
+     * User-provided description for this VMware Engine network.
+     * 
+ * + * string description = 5; + * + * @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; + onChanged(); + return this; + } + + private java.util.List + vpcNetworks_ = java.util.Collections.emptyList(); + + private void ensureVpcNetworksIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + vpcNetworks_ = + new java.util.ArrayList< + com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork>(vpcNetworks_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork, + com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork.Builder, + com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetworkOrBuilder> + vpcNetworksBuilder_; + + /** + * + * + *
+     * Output only. VMware Engine service VPC networks that provide connectivity
+     * from a private cloud to customer projects, the internet, and other Google
+     * Cloud services.
+     * 
+ * + * + * repeated .google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork vpc_networks = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getVpcNetworksList() { + if (vpcNetworksBuilder_ == null) { + return java.util.Collections.unmodifiableList(vpcNetworks_); + } else { + return vpcNetworksBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Output only. VMware Engine service VPC networks that provide connectivity
+     * from a private cloud to customer projects, the internet, and other Google
+     * Cloud services.
+     * 
+ * + * + * repeated .google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork vpc_networks = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getVpcNetworksCount() { + if (vpcNetworksBuilder_ == null) { + return vpcNetworks_.size(); + } else { + return vpcNetworksBuilder_.getCount(); + } + } + /** + * + * + *
+     * Output only. VMware Engine service VPC networks that provide connectivity
+     * from a private cloud to customer projects, the internet, and other Google
+     * Cloud services.
+     * 
+ * + * + * repeated .google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork vpc_networks = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork getVpcNetworks( + int index) { + if (vpcNetworksBuilder_ == null) { + return vpcNetworks_.get(index); + } else { + return vpcNetworksBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Output only. VMware Engine service VPC networks that provide connectivity
+     * from a private cloud to customer projects, the internet, and other Google
+     * Cloud services.
+     * 
+ * + * + * repeated .google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork vpc_networks = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setVpcNetworks( + int index, com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork value) { + if (vpcNetworksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureVpcNetworksIsMutable(); + vpcNetworks_.set(index, value); + onChanged(); + } else { + vpcNetworksBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Output only. VMware Engine service VPC networks that provide connectivity
+     * from a private cloud to customer projects, the internet, and other Google
+     * Cloud services.
+     * 
+ * + * + * repeated .google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork vpc_networks = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setVpcNetworks( + int index, + com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork.Builder builderForValue) { + if (vpcNetworksBuilder_ == null) { + ensureVpcNetworksIsMutable(); + vpcNetworks_.set(index, builderForValue.build()); + onChanged(); + } else { + vpcNetworksBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. VMware Engine service VPC networks that provide connectivity
+     * from a private cloud to customer projects, the internet, and other Google
+     * Cloud services.
+     * 
+ * + * + * repeated .google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork vpc_networks = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addVpcNetworks( + com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork value) { + if (vpcNetworksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureVpcNetworksIsMutable(); + vpcNetworks_.add(value); + onChanged(); + } else { + vpcNetworksBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Output only. VMware Engine service VPC networks that provide connectivity
+     * from a private cloud to customer projects, the internet, and other Google
+     * Cloud services.
+     * 
+ * + * + * repeated .google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork vpc_networks = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addVpcNetworks( + int index, com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork value) { + if (vpcNetworksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureVpcNetworksIsMutable(); + vpcNetworks_.add(index, value); + onChanged(); + } else { + vpcNetworksBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Output only. VMware Engine service VPC networks that provide connectivity
+     * from a private cloud to customer projects, the internet, and other Google
+     * Cloud services.
+     * 
+ * + * + * repeated .google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork vpc_networks = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addVpcNetworks( + com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork.Builder builderForValue) { + if (vpcNetworksBuilder_ == null) { + ensureVpcNetworksIsMutable(); + vpcNetworks_.add(builderForValue.build()); + onChanged(); + } else { + vpcNetworksBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. VMware Engine service VPC networks that provide connectivity
+     * from a private cloud to customer projects, the internet, and other Google
+     * Cloud services.
+     * 
+ * + * + * repeated .google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork vpc_networks = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addVpcNetworks( + int index, + com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork.Builder builderForValue) { + if (vpcNetworksBuilder_ == null) { + ensureVpcNetworksIsMutable(); + vpcNetworks_.add(index, builderForValue.build()); + onChanged(); + } else { + vpcNetworksBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. VMware Engine service VPC networks that provide connectivity
+     * from a private cloud to customer projects, the internet, and other Google
+     * Cloud services.
+     * 
+ * + * + * repeated .google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork vpc_networks = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllVpcNetworks( + java.lang.Iterable< + ? extends com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork> + values) { + if (vpcNetworksBuilder_ == null) { + ensureVpcNetworksIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, vpcNetworks_); + onChanged(); + } else { + vpcNetworksBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Output only. VMware Engine service VPC networks that provide connectivity
+     * from a private cloud to customer projects, the internet, and other Google
+     * Cloud services.
+     * 
+ * + * + * repeated .google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork vpc_networks = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearVpcNetworks() { + if (vpcNetworksBuilder_ == null) { + vpcNetworks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + vpcNetworksBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Output only. VMware Engine service VPC networks that provide connectivity
+     * from a private cloud to customer projects, the internet, and other Google
+     * Cloud services.
+     * 
+ * + * + * repeated .google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork vpc_networks = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeVpcNetworks(int index) { + if (vpcNetworksBuilder_ == null) { + ensureVpcNetworksIsMutable(); + vpcNetworks_.remove(index); + onChanged(); + } else { + vpcNetworksBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Output only. VMware Engine service VPC networks that provide connectivity
+     * from a private cloud to customer projects, the internet, and other Google
+     * Cloud services.
+     * 
+ * + * + * repeated .google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork vpc_networks = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork.Builder + getVpcNetworksBuilder(int index) { + return getVpcNetworksFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Output only. VMware Engine service VPC networks that provide connectivity
+     * from a private cloud to customer projects, the internet, and other Google
+     * Cloud services.
+     * 
+ * + * + * repeated .google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork vpc_networks = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetworkOrBuilder + getVpcNetworksOrBuilder(int index) { + if (vpcNetworksBuilder_ == null) { + return vpcNetworks_.get(index); + } else { + return vpcNetworksBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Output only. VMware Engine service VPC networks that provide connectivity
+     * from a private cloud to customer projects, the internet, and other Google
+     * Cloud services.
+     * 
+ * + * + * repeated .google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork vpc_networks = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + ? extends com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetworkOrBuilder> + getVpcNetworksOrBuilderList() { + if (vpcNetworksBuilder_ != null) { + return vpcNetworksBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(vpcNetworks_); + } + } + /** + * + * + *
+     * Output only. VMware Engine service VPC networks that provide connectivity
+     * from a private cloud to customer projects, the internet, and other Google
+     * Cloud services.
+     * 
+ * + * + * repeated .google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork vpc_networks = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork.Builder + addVpcNetworksBuilder() { + return getVpcNetworksFieldBuilder() + .addBuilder( + com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork.getDefaultInstance()); + } + /** + * + * + *
+     * Output only. VMware Engine service VPC networks that provide connectivity
+     * from a private cloud to customer projects, the internet, and other Google
+     * Cloud services.
+     * 
+ * + * + * repeated .google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork vpc_networks = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork.Builder + addVpcNetworksBuilder(int index) { + return getVpcNetworksFieldBuilder() + .addBuilder( + index, + com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork.getDefaultInstance()); + } + /** + * + * + *
+     * Output only. VMware Engine service VPC networks that provide connectivity
+     * from a private cloud to customer projects, the internet, and other Google
+     * Cloud services.
+     * 
+ * + * + * repeated .google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork vpc_networks = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getVpcNetworksBuilderList() { + return getVpcNetworksFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork, + com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork.Builder, + com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetworkOrBuilder> + getVpcNetworksFieldBuilder() { + if (vpcNetworksBuilder_ == null) { + vpcNetworksBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork, + com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork.Builder, + com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetworkOrBuilder>( + vpcNetworks_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + vpcNetworks_ = null; + } + return vpcNetworksBuilder_; + } + + private int state_ = 0; + /** + * + * + *
+     * Output only. State of the VMware Engine network.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.VmwareEngineNetwork.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
+     * Output only. State of the VMware Engine network.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.VmwareEngineNetwork.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + + state_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. State of the VMware Engine network.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.VmwareEngineNetwork.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.State getState() { + @SuppressWarnings("deprecation") + com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.State result = + com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.State.valueOf(state_); + return result == null + ? com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.State.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Output only. State of the VMware Engine network.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.VmwareEngineNetwork.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.State value) { + if (value == null) { + throw new NullPointerException(); + } + + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. State of the VMware Engine network.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.VmwareEngineNetwork.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + + state_ = 0; + onChanged(); + return this; + } + + private int type_ = 0; + /** + * + * + *
+     * Required. VMware Engine network type.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.VmwareEngineNetwork.Type type = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + /** + * + * + *
+     * Required. VMware Engine network type.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.VmwareEngineNetwork.Type type = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for type to set. + * @return This builder for chaining. + */ + public Builder setTypeValue(int value) { + + type_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. VMware Engine network type.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.VmwareEngineNetwork.Type type = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.Type getType() { + @SuppressWarnings("deprecation") + com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.Type result = + com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.Type.valueOf(type_); + return result == null + ? com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.Type.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Required. VMware Engine network type.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.VmwareEngineNetwork.Type type = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType(com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.Type value) { + if (value == null) { + throw new NullPointerException(); + } + + type_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. VMware Engine network type.
+     * 
+ * + * + * .google.cloud.vmwareengine.v1.VmwareEngineNetwork.Type type = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearType() { + + type_ = 0; + onChanged(); + return this; + } + + private java.lang.Object uid_ = ""; + /** + * + * + *
+     * Output only. System-generated unique identifier for the resource.
+     * 
+ * + * string uid = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The uid. + */ + public java.lang.String getUid() { + java.lang.Object ref = uid_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. System-generated unique identifier for the resource.
+     * 
+ * + * string uid = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for uid. + */ + public com.google.protobuf.ByteString getUidBytes() { + java.lang.Object ref = uid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. System-generated unique identifier for the resource.
+     * 
+ * + * string uid = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The uid to set. + * @return This builder for chaining. + */ + public Builder setUid(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + uid_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. System-generated unique identifier for the resource.
+     * 
+ * + * string uid = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearUid() { + + uid_ = getDefaultInstance().getUid(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. System-generated unique identifier for the resource.
+     * 
+ * + * string uid = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for uid to set. + * @return This builder for chaining. + */ + public Builder setUidBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + uid_ = value; + onChanged(); + return this; + } + + private java.lang.Object etag_ = ""; + /** + * + * + *
+     * Checksum that may be sent on update and delete requests to ensure that the
+     * user-provided value is up to date before the server processes a request.
+     * The server computes checksums based on the value of other fields in the
+     * request.
+     * 
+ * + * string etag = 10; + * + * @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; + } + } + /** + * + * + *
+     * Checksum that may be sent on update and delete requests to ensure that the
+     * user-provided value is up to date before the server processes a request.
+     * The server computes checksums based on the value of other fields in the
+     * request.
+     * 
+ * + * string etag = 10; + * + * @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; + } + } + /** + * + * + *
+     * Checksum that may be sent on update and delete requests to ensure that the
+     * user-provided value is up to date before the server processes a request.
+     * The server computes checksums based on the value of other fields in the
+     * request.
+     * 
+ * + * string etag = 10; + * + * @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; + onChanged(); + return this; + } + /** + * + * + *
+     * Checksum that may be sent on update and delete requests to ensure that the
+     * user-provided value is up to date before the server processes a request.
+     * The server computes checksums based on the value of other fields in the
+     * request.
+     * 
+ * + * string etag = 10; + * + * @return This builder for chaining. + */ + public Builder clearEtag() { + + etag_ = getDefaultInstance().getEtag(); + onChanged(); + return this; + } + /** + * + * + *
+     * Checksum that may be sent on update and delete requests to ensure that the
+     * user-provided value is up to date before the server processes a request.
+     * The server computes checksums based on the value of other fields in the
+     * request.
+     * 
+ * + * string etag = 10; + * + * @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; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.vmwareengine.v1.VmwareEngineNetwork) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmwareengine.v1.VmwareEngineNetwork) + private static final com.google.cloud.vmwareengine.v1.VmwareEngineNetwork DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmwareengine.v1.VmwareEngineNetwork(); + } + + public static com.google.cloud.vmwareengine.v1.VmwareEngineNetwork getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VmwareEngineNetwork 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.vmwareengine.v1.VmwareEngineNetwork getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/VmwareEngineNetworkName.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/VmwareEngineNetworkName.java new file mode 100644 index 000000000000..04ee73fd8489 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/VmwareEngineNetworkName.java @@ -0,0 +1,232 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.vmwareengine.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class VmwareEngineNetworkName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_VMWARE_ENGINE_NETWORK = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String vmwareEngineNetwork; + + @Deprecated + protected VmwareEngineNetworkName() { + project = null; + location = null; + vmwareEngineNetwork = null; + } + + private VmwareEngineNetworkName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + vmwareEngineNetwork = Preconditions.checkNotNull(builder.getVmwareEngineNetwork()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getVmwareEngineNetwork() { + return vmwareEngineNetwork; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static VmwareEngineNetworkName of( + String project, String location, String vmwareEngineNetwork) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setVmwareEngineNetwork(vmwareEngineNetwork) + .build(); + } + + public static String format(String project, String location, String vmwareEngineNetwork) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setVmwareEngineNetwork(vmwareEngineNetwork) + .build() + .toString(); + } + + public static VmwareEngineNetworkName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_VMWARE_ENGINE_NETWORK.validatedMatch( + formattedString, "VmwareEngineNetworkName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), matchMap.get("location"), matchMap.get("vmware_engine_network")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (VmwareEngineNetworkName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_VMWARE_ENGINE_NETWORK.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (vmwareEngineNetwork != null) { + fieldMapBuilder.put("vmware_engine_network", vmwareEngineNetwork); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_VMWARE_ENGINE_NETWORK.instantiate( + "project", project, "location", location, "vmware_engine_network", vmwareEngineNetwork); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null || getClass() == o.getClass()) { + VmwareEngineNetworkName that = ((VmwareEngineNetworkName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.vmwareEngineNetwork, that.vmwareEngineNetwork); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(vmwareEngineNetwork); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network}. + */ + public static class Builder { + private String project; + private String location; + private String vmwareEngineNetwork; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getVmwareEngineNetwork() { + return vmwareEngineNetwork; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setVmwareEngineNetwork(String vmwareEngineNetwork) { + this.vmwareEngineNetwork = vmwareEngineNetwork; + return this; + } + + private Builder(VmwareEngineNetworkName vmwareEngineNetworkName) { + this.project = vmwareEngineNetworkName.project; + this.location = vmwareEngineNetworkName.location; + this.vmwareEngineNetwork = vmwareEngineNetworkName.vmwareEngineNetwork; + } + + public VmwareEngineNetworkName build() { + return new VmwareEngineNetworkName(this); + } + } +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/VmwareEngineNetworkOrBuilder.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/VmwareEngineNetworkOrBuilder.java new file mode 100644 index 000000000000..fe01a46c1468 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/VmwareEngineNetworkOrBuilder.java @@ -0,0 +1,347 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmwareengine/v1/vmwareengine.proto + +package com.google.cloud.vmwareengine.v1; + +public interface VmwareEngineNetworkOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmwareengine.v1.VmwareEngineNetwork) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. The resource name of the VMware Engine network.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-project/locations/global/vmwareEngineNetworks/my-network`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Output only. The resource name of the VMware Engine network.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * For example:
+   * `projects/my-project/locations/global/vmwareEngineNetworks/my-network`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Output only. Creation time of this resource.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + * + * + *
+   * Output only. Creation time of this resource.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + * + * + *
+   * Output only. Creation time of this resource.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. Last update time of this resource.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + /** + * + * + *
+   * Output only. Last update time of this resource.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + /** + * + * + *
+   * Output only. Last update time of this resource.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
+   * User-provided description for this VMware Engine network.
+   * 
+ * + * string description = 5; + * + * @return The description. + */ + java.lang.String getDescription(); + /** + * + * + *
+   * User-provided description for this VMware Engine network.
+   * 
+ * + * string description = 5; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
+   * Output only. VMware Engine service VPC networks that provide connectivity
+   * from a private cloud to customer projects, the internet, and other Google
+   * Cloud services.
+   * 
+ * + * + * repeated .google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork vpc_networks = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getVpcNetworksList(); + /** + * + * + *
+   * Output only. VMware Engine service VPC networks that provide connectivity
+   * from a private cloud to customer projects, the internet, and other Google
+   * Cloud services.
+   * 
+ * + * + * repeated .google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork vpc_networks = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork getVpcNetworks(int index); + /** + * + * + *
+   * Output only. VMware Engine service VPC networks that provide connectivity
+   * from a private cloud to customer projects, the internet, and other Google
+   * Cloud services.
+   * 
+ * + * + * repeated .google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork vpc_networks = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getVpcNetworksCount(); + /** + * + * + *
+   * Output only. VMware Engine service VPC networks that provide connectivity
+   * from a private cloud to customer projects, the internet, and other Google
+   * Cloud services.
+   * 
+ * + * + * repeated .google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork vpc_networks = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getVpcNetworksOrBuilderList(); + /** + * + * + *
+   * Output only. VMware Engine service VPC networks that provide connectivity
+   * from a private cloud to customer projects, the internet, and other Google
+   * Cloud services.
+   * 
+ * + * + * repeated .google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork vpc_networks = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetworkOrBuilder getVpcNetworksOrBuilder( + int index); + + /** + * + * + *
+   * Output only. State of the VMware Engine network.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.VmwareEngineNetwork.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + /** + * + * + *
+   * Output only. State of the VMware Engine network.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.VmwareEngineNetwork.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.State getState(); + + /** + * + * + *
+   * Required. VMware Engine network type.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.VmwareEngineNetwork.Type type = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for type. + */ + int getTypeValue(); + /** + * + * + *
+   * Required. VMware Engine network type.
+   * 
+ * + * + * .google.cloud.vmwareengine.v1.VmwareEngineNetwork.Type type = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The type. + */ + com.google.cloud.vmwareengine.v1.VmwareEngineNetwork.Type getType(); + + /** + * + * + *
+   * Output only. System-generated unique identifier for the resource.
+   * 
+ * + * string uid = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The uid. + */ + java.lang.String getUid(); + /** + * + * + *
+   * Output only. System-generated unique identifier for the resource.
+   * 
+ * + * string uid = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for uid. + */ + com.google.protobuf.ByteString getUidBytes(); + + /** + * + * + *
+   * Checksum that may be sent on update and delete requests to ensure that the
+   * user-provided value is up to date before the server processes a request.
+   * The server computes checksums based on the value of other fields in the
+   * request.
+   * 
+ * + * string etag = 10; + * + * @return The etag. + */ + java.lang.String getEtag(); + /** + * + * + *
+   * Checksum that may be sent on update and delete requests to ensure that the
+   * user-provided value is up to date before the server processes a request.
+   * The server computes checksums based on the value of other fields in the
+   * request.
+   * 
+ * + * string etag = 10; + * + * @return The bytes for etag. + */ + com.google.protobuf.ByteString getEtagBytes(); +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/VmwareengineProto.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/VmwareengineProto.java new file mode 100644 index 000000000000..d8fc9b82a390 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/VmwareengineProto.java @@ -0,0 +1,1306 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmwareengine/v1/vmwareengine.proto + +package com.google.cloud.vmwareengine.v1; + +public final class VmwareengineProto { + private VmwareengineProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmwareengine_v1_NetworkConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmwareengine_v1_NetworkConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmwareengine_v1_NodeTypeConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmwareengine_v1_NodeTypeConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmwareengine_v1_PrivateCloud_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmwareengine_v1_PrivateCloud_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmwareengine_v1_PrivateCloud_ManagementCluster_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmwareengine_v1_PrivateCloud_ManagementCluster_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmwareengine_v1_PrivateCloud_ManagementCluster_NodeTypeConfigsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmwareengine_v1_PrivateCloud_ManagementCluster_NodeTypeConfigsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmwareengine_v1_ListPrivateCloudsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmwareengine_v1_ListPrivateCloudsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmwareengine_v1_ListPrivateCloudsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmwareengine_v1_ListPrivateCloudsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmwareengine_v1_GetPrivateCloudRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmwareengine_v1_GetPrivateCloudRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmwareengine_v1_CreatePrivateCloudRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmwareengine_v1_CreatePrivateCloudRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmwareengine_v1_UpdatePrivateCloudRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmwareengine_v1_UpdatePrivateCloudRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmwareengine_v1_DeletePrivateCloudRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmwareengine_v1_DeletePrivateCloudRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmwareengine_v1_UndeletePrivateCloudRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmwareengine_v1_UndeletePrivateCloudRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmwareengine_v1_Cluster_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmwareengine_v1_Cluster_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmwareengine_v1_Cluster_NodeTypeConfigsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmwareengine_v1_Cluster_NodeTypeConfigsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmwareengine_v1_ListClustersRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmwareengine_v1_ListClustersRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmwareengine_v1_ListClustersResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmwareengine_v1_ListClustersResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmwareengine_v1_GetClusterRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmwareengine_v1_GetClusterRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmwareengine_v1_CreateClusterRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmwareengine_v1_CreateClusterRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmwareengine_v1_UpdateClusterRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmwareengine_v1_UpdateClusterRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmwareengine_v1_DeleteClusterRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmwareengine_v1_DeleteClusterRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmwareengine_v1_Subnet_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmwareengine_v1_Subnet_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmwareengine_v1_ListSubnetsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmwareengine_v1_ListSubnetsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmwareengine_v1_ListSubnetsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmwareengine_v1_ListSubnetsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmwareengine_v1_OperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmwareengine_v1_OperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmwareengine_v1_NodeType_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmwareengine_v1_NodeType_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmwareengine_v1_ListNodeTypesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmwareengine_v1_ListNodeTypesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmwareengine_v1_ListNodeTypesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmwareengine_v1_ListNodeTypesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmwareengine_v1_GetNodeTypeRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmwareengine_v1_GetNodeTypeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmwareengine_v1_Credentials_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmwareengine_v1_Credentials_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmwareengine_v1_ShowNsxCredentialsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmwareengine_v1_ShowNsxCredentialsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmwareengine_v1_ShowVcenterCredentialsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmwareengine_v1_ShowVcenterCredentialsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmwareengine_v1_ResetNsxCredentialsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmwareengine_v1_ResetNsxCredentialsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmwareengine_v1_ResetVcenterCredentialsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmwareengine_v1_ResetVcenterCredentialsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmwareengine_v1_ListHcxActivationKeysResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmwareengine_v1_ListHcxActivationKeysResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmwareengine_v1_HcxActivationKey_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmwareengine_v1_HcxActivationKey_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmwareengine_v1_ListHcxActivationKeysRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmwareengine_v1_ListHcxActivationKeysRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmwareengine_v1_GetHcxActivationKeyRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmwareengine_v1_GetHcxActivationKeyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmwareengine_v1_CreateHcxActivationKeyRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmwareengine_v1_CreateHcxActivationKeyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmwareengine_v1_Hcx_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmwareengine_v1_Hcx_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmwareengine_v1_Nsx_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmwareengine_v1_Nsx_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmwareengine_v1_Vcenter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmwareengine_v1_Vcenter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmwareengine_v1_NetworkPolicy_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmwareengine_v1_NetworkPolicy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmwareengine_v1_NetworkPolicy_NetworkService_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmwareengine_v1_NetworkPolicy_NetworkService_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmwareengine_v1_ListNetworkPoliciesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmwareengine_v1_ListNetworkPoliciesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmwareengine_v1_ListNetworkPoliciesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmwareengine_v1_ListNetworkPoliciesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmwareengine_v1_GetNetworkPolicyRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmwareengine_v1_GetNetworkPolicyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmwareengine_v1_UpdateNetworkPolicyRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmwareengine_v1_UpdateNetworkPolicyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmwareengine_v1_CreateNetworkPolicyRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmwareengine_v1_CreateNetworkPolicyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmwareengine_v1_DeleteNetworkPolicyRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmwareengine_v1_DeleteNetworkPolicyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmwareengine_v1_VmwareEngineNetwork_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmwareengine_v1_VmwareEngineNetwork_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmwareengine_v1_VmwareEngineNetwork_VpcNetwork_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmwareengine_v1_VmwareEngineNetwork_VpcNetwork_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmwareengine_v1_CreateVmwareEngineNetworkRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmwareengine_v1_CreateVmwareEngineNetworkRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmwareengine_v1_UpdateVmwareEngineNetworkRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmwareengine_v1_UpdateVmwareEngineNetworkRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmwareengine_v1_DeleteVmwareEngineNetworkRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmwareengine_v1_DeleteVmwareEngineNetworkRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmwareengine_v1_GetVmwareEngineNetworkRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmwareengine_v1_GetVmwareEngineNetworkRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmwareengine_v1_ListVmwareEngineNetworksRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmwareengine_v1_ListVmwareEngineNetworksRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmwareengine_v1_ListVmwareEngineNetworksResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmwareengine_v1_ListVmwareEngineNetworksResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n/google/cloud/vmwareengine/v1/vmwareeng" + + "ine.proto\022\034google.cloud.vmwareengine.v1\032" + + "\034google/api/annotations.proto\032\027google/ap" + + "i/client.proto\032\037google/api/field_behavio" + + "r.proto\032\031google/api/resource.proto\032#goog" + + "le/longrunning/operations.proto\032 google/" + + "protobuf/field_mask.proto\032\037google/protob" + + "uf/timestamp.proto\"\232\002\n\rNetworkConfig\022\034\n\017" + + "management_cidr\030\004 \001(\tB\003\340A\002\022V\n\025vmware_eng" + + "ine_network\030\005 \001(\tB7\340A\001\372A1\n/vmwareengine." + + "googleapis.com/VmwareEngineNetwork\022`\n\037vm" + + "ware_engine_network_canonical\030\006 \001(\tB7\340A\003" + + "\372A1\n/vmwareengine.googleapis.com/VmwareE" + + "ngineNetwork\0221\n$management_ip_address_la" + + "yout_version\030\010 \001(\005B\003\340A\003\"I\n\016NodeTypeConfi" + + "g\022\027\n\nnode_count\030\001 \001(\005B\003\340A\002\022\036\n\021custom_cor" + + "e_count\030\002 \001(\005B\003\340A\001\"\242\t\n\014PrivateCloud\022\021\n\004n" + + "ame\030\001 \001(\tB\003\340A\003\0224\n\013create_time\030\002 \001(\0132\032.go" + + "ogle.protobuf.TimestampB\003\340A\003\0224\n\013update_t" + + "ime\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340" + + "A\003\0224\n\013delete_time\030\004 \001(\0132\032.google.protobu" + + "f.TimestampB\003\340A\003\0224\n\013expire_time\030\005 \001(\0132\032." + + "google.protobuf.TimestampB\003\340A\003\022D\n\005state\030" + + "\010 \001(\01620.google.cloud.vmwareengine.v1.Pri" + + "vateCloud.StateB\003\340A\003\022H\n\016network_config\030\t" + + " \001(\0132+.google.cloud.vmwareengine.v1.Netw" + + "orkConfigB\003\340A\002\022]\n\022management_cluster\030\n \001" + + "(\0132<.google.cloud.vmwareengine.v1.Privat" + + "eCloud.ManagementClusterB\003\340A\004\022\023\n\013descrip" + + "tion\030\013 \001(\t\0223\n\003hcx\030\021 \001(\0132!.google.cloud.v" + + "mwareengine.v1.HcxB\003\340A\003\0223\n\003nsx\030\022 \001(\0132!.g" + + "oogle.cloud.vmwareengine.v1.NsxB\003\340A\003\022;\n\007" + + "vcenter\030\023 \001(\0132%.google.cloud.vmwareengin" + + "e.v1.VcenterB\003\340A\003\022\020\n\003uid\030\024 \001(\tB\003\340A\003\032\205\002\n\021" + + "ManagementCluster\022\027\n\ncluster_id\030\001 \001(\tB\003\340" + + "A\002\022q\n\021node_type_configs\030\007 \003(\0132Q.google.c" + + "loud.vmwareengine.v1.PrivateCloud.Manage" + + "mentCluster.NodeTypeConfigsEntryB\003\340A\002\032d\n" + + "\024NodeTypeConfigsEntry\022\013\n\003key\030\001 \001(\t\022;\n\005va" + + "lue\030\002 \001(\0132,.google.cloud.vmwareengine.v1" + + ".NodeTypeConfig:\0028\001\"l\n\005State\022\025\n\021STATE_UN" + + "SPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\014\n\010CREATING\020\002\022\014\n" + + "\010UPDATING\020\003\022\n\n\006FAILED\020\005\022\013\n\007DELETED\020\006\022\013\n\007" + + "PURGING\020\007:t\352Aq\n(vmwareengine.googleapis." + + "com/PrivateCloud\022Eprojects/{project}/loc" + + "ations/{location}/privateClouds/{private" + + "_cloud}\"\236\001\n\030ListPrivateCloudsRequest\0229\n\006" + + "parent\030\001 \001(\tB)\340A\002\372A#\n!locations.googleap" + + "is.com/Location\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npa" + + "ge_token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\022\020\n\010order_" + + "by\030\005 \001(\t\"\215\001\n\031ListPrivateCloudsResponse\022B" + + "\n\016private_clouds\030\001 \003(\0132*.google.cloud.vm" + + "wareengine.v1.PrivateCloud\022\027\n\017next_page_" + + "token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"X\n\026GetP" + + "rivateCloudRequest\022>\n\004name\030\001 \001(\tB0\340A\002\372A*" + + "\n(vmwareengine.googleapis.com/PrivateClo" + + "ud\"\362\001\n\031CreatePrivateCloudRequest\0229\n\006pare" + + "nt\030\001 \001(\tB)\340A\002\372A#\n!locations.googleapis.c" + + "om/Location\022\035\n\020private_cloud_id\030\002 \001(\tB\003\340" + + "A\002\022F\n\rprivate_cloud\030\003 \001(\0132*.google.cloud" + + ".vmwareengine.v1.PrivateCloudB\003\340A\002\022\027\n\nre" + + "quest_id\030\004 \001(\tB\003\340A\001\022\032\n\rvalidate_only\030\005 \001" + + "(\010B\003\340A\001\"\262\001\n\031UpdatePrivateCloudRequest\022F\n" + + "\rprivate_cloud\030\001 \001(\0132*.google.cloud.vmwa" + + "reengine.v1.PrivateCloudB\003\340A\002\0224\n\013update_" + + "mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003" + + "\340A\002\022\027\n\nrequest_id\030\003 \001(\tB\003\340A\001\"\267\001\n\031DeleteP" + + "rivateCloudRequest\022>\n\004name\030\001 \001(\tB0\340A\002\372A*" + + "\n(vmwareengine.googleapis.com/PrivateClo" + + "ud\022\027\n\nrequest_id\030\002 \001(\tB\003\340A\001\022\022\n\005force\030\003 \001" + + "(\010B\003\340A\001\022\035\n\013delay_hours\030\004 \001(\005B\003\340A\001H\000\210\001\001B\016" + + "\n\014_delay_hours\"v\n\033UndeletePrivateCloudRe" + + "quest\022>\n\004name\030\001 \001(\tB0\340A\002\372A*\n(vmwareengin" + + "e.googleapis.com/PrivateCloud\022\027\n\nrequest" + + "_id\030\002 \001(\tB\003\340A\001\"\240\005\n\007Cluster\022\021\n\004name\030\001 \001(\t" + + "B\003\340A\003\0224\n\013create_time\030\002 \001(\0132\032.google.prot" + + "obuf.TimestampB\003\340A\003\0224\n\013update_time\030\003 \001(\013" + + "2\032.google.protobuf.TimestampB\003\340A\003\022?\n\005sta" + + "te\030\006 \001(\0162+.google.cloud.vmwareengine.v1." + + "Cluster.StateB\003\340A\003\022\027\n\nmanagement\030\007 \001(\010B\003" + + "\340A\003\022\020\n\003uid\030\016 \001(\tB\003\340A\003\022Z\n\021node_type_confi" + + "gs\030\020 \003(\0132:.google.cloud.vmwareengine.v1." + + "Cluster.NodeTypeConfigsEntryB\003\340A\002\032d\n\024Nod" + + "eTypeConfigsEntry\022\013\n\003key\030\001 \001(\t\022;\n\005value\030" + + "\002 \001(\0132,.google.cloud.vmwareengine.v1.Nod" + + "eTypeConfig:\0028\001\"c\n\005State\022\025\n\021STATE_UNSPEC" + + "IFIED\020\000\022\n\n\006ACTIVE\020\001\022\014\n\010CREATING\020\002\022\014\n\010UPD" + + "ATING\020\003\022\014\n\010DELETING\020\004\022\r\n\tREPAIRING\020\005:\202\001\352" + + "A\177\n#vmwareengine.googleapis.com/Cluster\022" + + "Xprojects/{project}/locations/{location}" + + "/privateClouds/{private_cloud}/clusters/" + + "{cluster}\"\240\001\n\023ListClustersRequest\022@\n\006par" + + "ent\030\001 \001(\tB0\340A\002\372A*\n(vmwareengine.googleap" + + "is.com/PrivateCloud\022\021\n\tpage_size\030\002 \001(\005\022\022" + + "\n\npage_token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\022\020\n\010or" + + "der_by\030\005 \001(\t\"}\n\024ListClustersResponse\0227\n\010" + + "clusters\030\001 \003(\0132%.google.cloud.vmwareengi" + + "ne.v1.Cluster\022\027\n\017next_page_token\030\002 \001(\t\022\023" + + "\n\013unreachable\030\003 \003(\t\"N\n\021GetClusterRequest" + + "\0229\n\004name\030\001 \001(\tB+\340A\002\372A%\n#vmwareengine.goo" + + "gleapis.com/Cluster\"\343\001\n\024CreateClusterReq" + + "uest\022@\n\006parent\030\001 \001(\tB0\340A\002\372A*\n(vmwareengi" + + "ne.googleapis.com/PrivateCloud\022\027\n\ncluste" + + "r_id\030\002 \001(\tB\003\340A\002\022;\n\007cluster\030\003 \001(\0132%.googl" + + "e.cloud.vmwareengine.v1.ClusterB\003\340A\002\022\027\n\n" + + "request_id\030\004 \001(\tB\003\340A\001\022\032\n\rvalidate_only\030\005" + + " \001(\010B\003\340A\001\"\276\001\n\024UpdateClusterRequest\0224\n\013up" + + "date_mask\030\001 \001(\0132\032.google.protobuf.FieldM" + + "askB\003\340A\002\022;\n\007cluster\030\002 \001(\0132%.google.cloud" + + ".vmwareengine.v1.ClusterB\003\340A\002\022\027\n\nrequest" + + "_id\030\003 \001(\tB\003\340A\001\022\032\n\rvalidate_only\030\004 \001(\010B\003\340" + + "A\001\"j\n\024DeleteClusterRequest\0229\n\004name\030\001 \001(\t" + + "B+\340A\002\372A%\n#vmwareengine.googleapis.com/Cl" + + "uster\022\027\n\nrequest_id\030\002 \001(\tB\003\340A\001\"\360\002\n\006Subne" + + "t\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\025\n\rip_cidr_range\030\007 " + + "\001(\t\022\022\n\ngateway_ip\030\010 \001(\t\022\021\n\004type\030\013 \001(\tB\003\340" + + "A\003\022>\n\005state\030\r \001(\0162*.google.cloud.vmwaree" + + "ngine.v1.Subnet.StateB\003\340A\003\"T\n\005State\022\025\n\021S" + + "TATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\014\n\010CREATI" + + "NG\020\002\022\014\n\010UPDATING\020\003\022\014\n\010DELETING\020\004:\177\352A|\n\"v" + + "mwareengine.googleapis.com/Subnet\022Vproje" + + "cts/{project}/locations/{location}/priva" + + "teClouds/{private_cloud}/subnets/{subnet" + + "}\"}\n\022ListSubnetsRequest\022@\n\006parent\030\001 \001(\tB" + + "0\340A\002\372A*\n(vmwareengine.googleapis.com/Pri" + + "vateCloud\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_tok" + + "en\030\003 \001(\t\"e\n\023ListSubnetsResponse\0225\n\007subne" + + "ts\030\001 \003(\0132$.google.cloud.vmwareengine.v1." + + "Subnet\022\027\n\017next_page_token\030\002 \001(\t\"\200\002\n\021Oper" + + "ationMetadata\0224\n\013create_time\030\001 \001(\0132\032.goo" + + "gle.protobuf.TimestampB\003\340A\003\0221\n\010end_time\030" + + "\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\023" + + "\n\006target\030\003 \001(\tB\003\340A\003\022\021\n\004verb\030\004 \001(\tB\003\340A\003\022\033" + + "\n\016status_message\030\005 \001(\tB\003\340A\003\022#\n\026requested" + + "_cancellation\030\006 \001(\010B\003\340A\003\022\030\n\013api_version\030" + + "\007 \001(\tB\003\340A\003\"\332\002\n\010NodeType\022\021\n\004name\030\001 \001(\tB\003\340" + + "A\003\022\031\n\014node_type_id\030\002 \001(\tB\003\340A\003\022\031\n\014display" + + "_name\030\003 \001(\tB\003\340A\003\022\036\n\021virtual_cpu_count\030\004 " + + "\001(\005B\003\340A\003\022\035\n\020total_core_count\030\005 \001(\005B\003\340A\003\022" + + "\026\n\tmemory_gb\030\007 \001(\005B\003\340A\003\022\031\n\014disk_size_gb\030" + + "\010 \001(\005B\003\340A\003\022)\n\034available_custom_core_coun" + + "ts\030\013 \003(\005B\003\340A\003:h\352Ae\n$vmwareengine.googlea" + + "pis.com/NodeType\022=projects/{project}/loc" + + "ations/{location}/nodeTypes/{node_type}\"" + + "\210\001\n\024ListNodeTypesRequest\0229\n\006parent\030\001 \001(\t" + + "B)\340A\002\372A#\n!locations.googleapis.com/Locat" + + "ion\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001" + + "(\t\022\016\n\006filter\030\004 \001(\t\"\201\001\n\025ListNodeTypesResp" + + "onse\022:\n\nnode_types\030\001 \003(\0132&.google.cloud." + + "vmwareengine.v1.NodeType\022\027\n\017next_page_to" + + "ken\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"P\n\022GetNod" + + "eTypeRequest\022:\n\004name\030\001 \001(\tB,\340A\002\372A&\n$vmwa" + + "reengine.googleapis.com/NodeType\"1\n\013Cred" + + "entials\022\020\n\010username\030\001 \001(\t\022\020\n\010password\030\002 " + + "\001(\t\"d\n\031ShowNsxCredentialsRequest\022G\n\rpriv" + + "ate_cloud\030\001 \001(\tB0\340A\002\372A*\n(vmwareengine.go" + + "ogleapis.com/PrivateCloud\"h\n\035ShowVcenter" + + "CredentialsRequest\022G\n\rprivate_cloud\030\001 \001(" + + "\tB0\340A\002\372A*\n(vmwareengine.googleapis.com/P" + + "rivateCloud\"~\n\032ResetNsxCredentialsReques" + + "t\022G\n\rprivate_cloud\030\001 \001(\tB0\340A\002\372A*\n(vmware" + + "engine.googleapis.com/PrivateCloud\022\027\n\nre" + + "quest_id\030\002 \001(\tB\003\340A\001\"\202\001\n\036ResetVcenterCred" + + "entialsRequest\022G\n\rprivate_cloud\030\001 \001(\tB0\340" + + "A\002\372A*\n(vmwareengine.googleapis.com/Priva" + + "teCloud\022\027\n\nrequest_id\030\002 \001(\tB\003\340A\001\"\232\001\n\035Lis" + + "tHcxActivationKeysResponse\022K\n\023hcx_activa" + + "tion_keys\030\001 \003(\0132..google.cloud.vmwareeng" + + "ine.v1.HcxActivationKey\022\027\n\017next_page_tok" + + "en\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"\302\003\n\020HcxAct" + + "ivationKey\022\021\n\004name\030\001 \001(\tB\003\340A\003\0224\n\013create_" + + "time\030\002 \001(\0132\032.google.protobuf.TimestampB\003" + + "\340A\003\022H\n\005state\030\003 \001(\01624.google.cloud.vmware" + + "engine.v1.HcxActivationKey.StateB\003\340A\003\022\033\n" + + "\016activation_key\030\004 \001(\tB\003\340A\003\022\020\n\003uid\030\005 \001(\tB" + + "\003\340A\003\"I\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\r\n\t" + + "AVAILABLE\020\001\022\014\n\010CONSUMED\020\002\022\014\n\010CREATING\020\003:" + + "\240\001\352A\234\001\n,vmwareengine.googleapis.com/HcxA" + + "ctivationKey\022lprojects/{project}/locatio" + + "ns/{location}/privateClouds/{private_clo" + + "ud}/hcxActivationKeys/{hcx_activation_ke" + + "y}\"\207\001\n\034ListHcxActivationKeysRequest\022@\n\006p" + + "arent\030\001 \001(\tB0\340A\002\372A*\n(vmwareengine.google" + + "apis.com/PrivateCloud\022\021\n\tpage_size\030\002 \001(\005" + + "\022\022\n\npage_token\030\003 \001(\t\"`\n\032GetHcxActivation" + + "KeyRequest\022B\n\004name\030\001 \001(\tB4\340A\002\372A.\n,vmware" + + "engine.googleapis.com/HcxActivationKey\"\352" + + "\001\n\035CreateHcxActivationKeyRequest\022@\n\006pare" + + "nt\030\001 \001(\tB0\340A\002\372A*\n(vmwareengine.googleapi" + + "s.com/PrivateCloud\022O\n\022hcx_activation_key" + + "\030\002 \001(\0132..google.cloud.vmwareengine.v1.Hc" + + "xActivationKeyB\003\340A\002\022\"\n\025hcx_activation_ke" + + "y_id\030\003 \001(\tB\003\340A\002\022\022\n\nrequest_id\030\004 \001(\t\"\260\001\n\003" + + "Hcx\022\023\n\013internal_ip\030\002 \001(\t\022\017\n\007version\030\004 \001(" + + "\t\022;\n\005state\030\005 \001(\0162\'.google.cloud.vmwareen" + + "gine.v1.Hcx.StateB\003\340A\003\022\014\n\004fqdn\030\006 \001(\t\"8\n\005" + + "State\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001" + + "\022\014\n\010CREATING\020\002\"\260\001\n\003Nsx\022\023\n\013internal_ip\030\002 " + + "\001(\t\022\017\n\007version\030\004 \001(\t\022;\n\005state\030\005 \001(\0162\'.go" + + "ogle.cloud.vmwareengine.v1.Nsx.StateB\003\340A" + + "\003\022\014\n\004fqdn\030\006 \001(\t\"8\n\005State\022\025\n\021STATE_UNSPEC" + + "IFIED\020\000\022\n\n\006ACTIVE\020\001\022\014\n\010CREATING\020\002\"\270\001\n\007Vc" + + "enter\022\023\n\013internal_ip\030\002 \001(\t\022\017\n\007version\030\004 " + + "\001(\t\022?\n\005state\030\005 \001(\0162+.google.cloud.vmware" + + "engine.v1.Vcenter.StateB\003\340A\003\022\014\n\004fqdn\030\006 \001" + + "(\t\"8\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006AC" + + "TIVE\020\001\022\014\n\010CREATING\020\002\"\377\006\n\rNetworkPolicy\022\021" + + "\n\004name\030\001 \001(\tB\003\340A\003\0224\n\013create_time\030\002 \001(\0132\032" + + ".google.protobuf.TimestampB\003\340A\003\0224\n\013updat" + + "e_time\030\003 \001(\0132\032.google.protobuf.Timestamp" + + "B\003\340A\003\022S\n\017internet_access\030\006 \001(\0132:.google." + + "cloud.vmwareengine.v1.NetworkPolicy.Netw" + + "orkService\022O\n\013external_ip\030\007 \001(\0132:.google" + + ".cloud.vmwareengine.v1.NetworkPolicy.Net" + + "workService\022\037\n\022edge_services_cidr\030\t \001(\tB" + + "\003\340A\002\022\020\n\003uid\030\n \001(\tB\003\340A\003\022V\n\025vmware_engine_" + + "network\030\014 \001(\tB7\340A\001\372A1\n/vmwareengine.goog" + + "leapis.com/VmwareEngineNetwork\022\030\n\013descri" + + "ption\030\r \001(\tB\003\340A\001\022`\n\037vmware_engine_networ" + + "k_canonical\030\016 \001(\tB7\340A\003\372A1\n/vmwareengine." + + "googleapis.com/VmwareEngineNetwork\032\307\001\n\016N" + + "etworkService\022\017\n\007enabled\030\001 \001(\010\022T\n\005state\030" + + "\002 \001(\0162@.google.cloud.vmwareengine.v1.Net" + + "workPolicy.NetworkService.StateB\003\340A\003\"N\n\005" + + "State\022\025\n\021STATE_UNSPECIFIED\020\000\022\021\n\rUNPROVIS" + + "IONED\020\001\022\017\n\013RECONCILING\020\002\022\n\n\006ACTIVE\020\003:x\352A" + + "u\n)vmwareengine.googleapis.com/NetworkPo" + + "licy\022Hprojects/{project}/locations/{loca" + + "tion}/networkPolicies/{network_policy}\"\250" + + "\001\n\032ListNetworkPoliciesRequest\022A\n\006parent\030" + + "\001 \001(\tB1\340A\002\372A+\022)vmwareengine.googleapis.c" + + "om/NetworkPolicy\022\021\n\tpage_size\030\002 \001(\005\022\022\n\np" + + "age_token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\022\020\n\010order" + + "_by\030\005 \001(\t\"\222\001\n\033ListNetworkPoliciesRespons" + + "e\022E\n\020network_policies\030\001 \003(\0132+.google.clo" + + "ud.vmwareengine.v1.NetworkPolicy\022\027\n\017next" + + "_page_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"Z" + + "\n\027GetNetworkPolicyRequest\022?\n\004name\030\001 \001(\tB" + + "1\340A\002\372A+\n)vmwareengine.googleapis.com/Net" + + "workPolicy\"\265\001\n\032UpdateNetworkPolicyReques" + + "t\022H\n\016network_policy\030\001 \001(\0132+.google.cloud" + + ".vmwareengine.v1.NetworkPolicyB\003\340A\002\0224\n\013u" + + "pdate_mask\030\002 \001(\0132\032.google.protobuf.Field" + + "MaskB\003\340A\002\022\027\n\nrequest_id\030\003 \001(\tB\003\340A\001\"\342\001\n\032C" + + "reateNetworkPolicyRequest\022A\n\006parent\030\001 \001(" + + "\tB1\340A\002\372A+\022)vmwareengine.googleapis.com/N" + + "etworkPolicy\022\036\n\021network_policy_id\030\002 \001(\tB" + + "\003\340A\002\022H\n\016network_policy\030\003 \001(\0132+.google.cl" + + "oud.vmwareengine.v1.NetworkPolicyB\003\340A\002\022\027" + + "\n\nrequest_id\030\004 \001(\tB\003\340A\001\"v\n\032DeleteNetwork" + + "PolicyRequest\022?\n\004name\030\001 \001(\tB1\340A\002\372A+\n)vmw" + + "areengine.googleapis.com/NetworkPolicy\022\027" + + "\n\nrequest_id\030\002 \001(\tB\003\340A\001\"\262\007\n\023VmwareEngine" + + "Network\022\021\n\004name\030\001 \001(\tB\003\340A\003\0224\n\013create_tim" + + "e\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003" + + "\0224\n\013update_time\030\003 \001(\0132\032.google.protobuf." + + "TimestampB\003\340A\003\022\023\n\013description\030\005 \001(\t\022W\n\014v" + + "pc_networks\030\006 \003(\0132<.google.cloud.vmwaree" + + "ngine.v1.VmwareEngineNetwork.VpcNetworkB" + + "\003\340A\003\022K\n\005state\030\007 \001(\01627.google.cloud.vmwar" + + "eengine.v1.VmwareEngineNetwork.StateB\003\340A" + + "\003\022I\n\004type\030\010 \001(\01626.google.cloud.vmwareeng" + + "ine.v1.VmwareEngineNetwork.TypeB\003\340A\002\022\020\n\003" + + "uid\030\t \001(\tB\003\340A\003\022\014\n\004etag\030\n \001(\t\032\347\001\n\nVpcNetw" + + "ork\022T\n\004type\030\001 \001(\0162A.google.cloud.vmwaree" + + "ngine.v1.VmwareEngineNetwork.VpcNetwork." + + "TypeB\003\340A\003\0227\n\007network\030\002 \001(\tB&\340A\003\372A \n\036comp" + + "ute.googleapis.com/Network\"J\n\004Type\022\024\n\020TY" + + "PE_UNSPECIFIED\020\000\022\014\n\010INTRANET\020\001\022\014\n\010INTERN" + + "ET\020\002\022\020\n\014GOOGLE_CLOUD\020\003\"T\n\005State\022\025\n\021STATE" + + "_UNSPECIFIED\020\000\022\014\n\010CREATING\020\001\022\n\n\006ACTIVE\020\002" + + "\022\014\n\010UPDATING\020\003\022\014\n\010DELETING\020\004\"(\n\004Type\022\024\n\020" + + "TYPE_UNSPECIFIED\020\000\022\n\n\006LEGACY\020\001:\213\001\352A\207\001\n/v" + + "mwareengine.googleapis.com/VmwareEngineN" + + "etwork\022Tprojects/{project}/locations/{lo" + + "cation}/vmwareEngineNetworks/{vmware_eng" + + "ine_network}\"\202\002\n CreateVmwareEngineNetwo" + + "rkRequest\022G\n\006parent\030\001 \001(\tB7\340A\002\372A1\022/vmwar" + + "eengine.googleapis.com/VmwareEngineNetwo" + + "rk\022%\n\030vmware_engine_network_id\030\002 \001(\tB\003\340A" + + "\002\022U\n\025vmware_engine_network\030\003 \001(\01321.googl" + + "e.cloud.vmwareengine.v1.VmwareEngineNetw" + + "orkB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\"\310\001\n Up" + + "dateVmwareEngineNetworkRequest\022U\n\025vmware" + + "_engine_network\030\001 \001(\01321.google.cloud.vmw" + + "areengine.v1.VmwareEngineNetworkB\003\340A\002\0224\n" + + "\013update_mask\030\002 \001(\0132\032.google.protobuf.Fie" + + "ldMaskB\003\340A\002\022\027\n\nrequest_id\030\003 \001(\tB\003\340A\001\"\225\001\n" + + " DeleteVmwareEngineNetworkRequest\022E\n\004nam" + + "e\030\001 \001(\tB7\340A\002\372A1\n/vmwareengine.googleapis" + + ".com/VmwareEngineNetwork\022\027\n\nrequest_id\030\002" + + " \001(\tB\003\340A\001\022\021\n\004etag\030\003 \001(\tB\003\340A\001\"f\n\035GetVmwar" + + "eEngineNetworkRequest\022E\n\004name\030\001 \001(\tB7\340A\002" + + "\372A1\n/vmwareengine.googleapis.com/VmwareE" + + "ngineNetwork\"\245\001\n\037ListVmwareEngineNetwork" + + "sRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locati" + + "ons.googleapis.com/Location\022\021\n\tpage_size" + + "\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filter\030\004 \001" + + "(\t\022\020\n\010order_by\030\005 \001(\t\"\243\001\n ListVmwareEngin" + + "eNetworksResponse\022Q\n\026vmware_engine_netwo" + + "rks\030\001 \003(\01321.google.cloud.vmwareengine.v1" + + ".VmwareEngineNetwork\022\027\n\017next_page_token\030" + + "\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t2\2269\n\014VmwareEng" + + "ine\022\310\001\n\021ListPrivateClouds\0226.google.cloud" + + ".vmwareengine.v1.ListPrivateCloudsReques" + + "t\0327.google.cloud.vmwareengine.v1.ListPri" + + "vateCloudsResponse\"B\202\323\344\223\0023\0221/v1/{parent=" + + "projects/*/locations/*}/privateClouds\332A\006" + + "parent\022\265\001\n\017GetPrivateCloud\0224.google.clou" + + "d.vmwareengine.v1.GetPrivateCloudRequest" + + "\032*.google.cloud.vmwareengine.v1.PrivateC" + + "loud\"@\202\323\344\223\0023\0221/v1/{name=projects/*/locat" + + "ions/*/privateClouds/*}\332A\004name\022\203\002\n\022Creat" + + "ePrivateCloud\0227.google.cloud.vmwareengin" + + "e.v1.CreatePrivateCloudRequest\032\035.google." + + "longrunning.Operation\"\224\001\202\323\344\223\002B\"1/v1/{par" + + "ent=projects/*/locations/*}/privateCloud" + + "s:\rprivate_cloud\332A%parent,private_cloud," + + "private_cloud_id\312A!\n\014PrivateCloud\022\021Opera" + + "tionMetadata\022\205\002\n\022UpdatePrivateCloud\0227.go" + + "ogle.cloud.vmwareengine.v1.UpdatePrivate" + + "CloudRequest\032\035.google.longrunning.Operat" + + "ion\"\226\001\202\323\344\223\002P2?/v1/{private_cloud.name=pr" + + "ojects/*/locations/*/privateClouds/*}:\rp" + + "rivate_cloud\332A\031private_cloud,update_mask" + + "\312A!\n\014PrivateCloud\022\021OperationMetadata\022\322\001\n" + + "\022DeletePrivateCloud\0227.google.cloud.vmwar" + + "eengine.v1.DeletePrivateCloudRequest\032\035.g" + + "oogle.longrunning.Operation\"d\202\323\344\223\0023*1/v1" + + "/{name=projects/*/locations/*/privateClo" + + "uds/*}\332A\004name\312A!\n\014PrivateCloud\022\021Operatio" + + "nMetadata\022\342\001\n\024UndeletePrivateCloud\0229.goo" + + "gle.cloud.vmwareengine.v1.UndeletePrivat" + + "eCloudRequest\032\035.google.longrunning.Opera" + + "tion\"p\202\323\344\223\002?\":/v1/{name=projects/*/locat" + + "ions/*/privateClouds/*}:undelete:\001*\332A\004na" + + "me\312A!\n\014PrivateCloud\022\021OperationMetadata\022\304" + + "\001\n\014ListClusters\0221.google.cloud.vmwareeng" + + "ine.v1.ListClustersRequest\0322.google.clou" + + "d.vmwareengine.v1.ListClustersResponse\"M" + + "\202\323\344\223\002>\022\022*\202\323\344\223\002/\022-/v1/{parent=projects/*/locatio" + + "ns/*}/nodeTypes\332A\006parent\022\245\001\n\013GetNodeType" + + "\0220.google.cloud.vmwareengine.v1.GetNodeT" + + "ypeRequest\032&.google.cloud.vmwareengine.v" + + "1.NodeType\"<\202\323\344\223\002/\022-/v1/{name=projects/*" + + "/locations/*/nodeTypes/*}\332A\004name\022\337\001\n\022Sho" + + "wNsxCredentials\0227.google.cloud.vmwareeng" + + "ine.v1.ShowNsxCredentialsRequest\032).googl" + + "e.cloud.vmwareengine.v1.Credentials\"e\202\323\344" + + "\223\002O\022M/v1/{private_cloud=projects/*/locat" + + "ions/*/privateClouds/*}:showNsxCredentia" + + "ls\332A\rprivate_cloud\022\353\001\n\026ShowVcenterCreden" + + "tials\022;.google.cloud.vmwareengine.v1.Sho" + + "wVcenterCredentialsRequest\032).google.clou" + + "d.vmwareengine.v1.Credentials\"i\202\323\344\223\002S\022Q/" + + "v1/{private_cloud=projects/*/locations/*" + + "/privateClouds/*}:showVcenterCredentials" + + "\332A\rprivate_cloud\022\376\001\n\023ResetNsxCredentials" + + "\0228.google.cloud.vmwareengine.v1.ResetNsx" + + "CredentialsRequest\032\035.google.longrunning." + + "Operation\"\215\001\202\323\344\223\002S\"N/v1/{private_cloud=p" + + "rojects/*/locations/*/privateClouds/*}:r" + + "esetNsxCredentials:\001*\332A\rprivate_cloud\312A!" + + "\n\014PrivateCloud\022\021OperationMetadata\022\212\002\n\027Re" + + "setVcenterCredentials\022<.google.cloud.vmw" + + "areengine.v1.ResetVcenterCredentialsRequ" + + "est\032\035.google.longrunning.Operation\"\221\001\202\323\344" + + "\223\002W\"R/v1/{private_cloud=projects/*/locat", + "ions/*/privateClouds/*}:resetVcenterCred" + + "entials:\001*\332A\rprivate_cloud\312A!\n\014PrivateCl" + + "oud\022\021OperationMetadata\022\262\002\n\026CreateHcxActi" + + "vationKey\022;.google.cloud.vmwareengine.v1" + + ".CreateHcxActivationKeyRequest\032\035.google." + + "longrunning.Operation\"\273\001\202\323\344\223\002[\"E/v1/{par" + + "ent=projects/*/locations/*/privateClouds" + + "/*}/hcxActivationKeys:\022hcx_activation_ke" + + "y\332A/parent,hcx_activation_key,hcx_activa" + + "tion_key_id\312A%\n\020HcxActivationKey\022\021Operat" + + "ionMetadata\022\350\001\n\025ListHcxActivationKeys\022:." + + "google.cloud.vmwareengine.v1.ListHcxActi" + + "vationKeysRequest\032;.google.cloud.vmwaree" + + "ngine.v1.ListHcxActivationKeysResponse\"V" + + "\202\323\344\223\002G\022E/v1/{parent=projects/*/locations" + + "/*/privateClouds/*}/hcxActivationKeys\332A\006" + + "parent\022\325\001\n\023GetHcxActivationKey\0228.google." + + "cloud.vmwareengine.v1.GetHcxActivationKe" + + "yRequest\032..google.cloud.vmwareengine.v1." + + "HcxActivationKey\"T\202\323\344\223\002G\022E/v1/{name=proj" + + "ects/*/locations/*/privateClouds/*/hcxAc" + + "tivationKeys/*}\332A\004name\022\272\001\n\020GetNetworkPol" + + "icy\0225.google.cloud.vmwareengine.v1.GetNe" + + "tworkPolicyRequest\032+.google.cloud.vmware" + + "engine.v1.NetworkPolicy\"B\202\323\344\223\0025\0223/v1/{na" + + "me=projects/*/locations/*/networkPolicie" + + "s/*}\332A\004name\022\320\001\n\023ListNetworkPolicies\0228.go" + + "ogle.cloud.vmwareengine.v1.ListNetworkPo" + + "liciesRequest\0329.google.cloud.vmwareengin" + + "e.v1.ListNetworkPoliciesResponse\"D\202\323\344\223\0025" + + "\0223/v1/{parent=projects/*/locations/*}/ne" + + "tworkPolicies\332A\006parent\022\213\002\n\023CreateNetwork" + + "Policy\0228.google.cloud.vmwareengine.v1.Cr" + + "eateNetworkPolicyRequest\032\035.google.longru" + + "nning.Operation\"\232\001\202\323\344\223\002E\"3/v1/{parent=pr" + + "ojects/*/locations/*}/networkPolicies:\016n" + + "etwork_policy\332A\'parent,network_policy,ne" + + "twork_policy_id\312A\"\n\rNetworkPolicy\022\021Opera" + + "tionMetadata\022\215\002\n\023UpdateNetworkPolicy\0228.g" + + "oogle.cloud.vmwareengine.v1.UpdateNetwor" + + "kPolicyRequest\032\035.google.longrunning.Oper" + + "ation\"\234\001\202\323\344\223\002T2B/v1/{network_policy.name" + + "=projects/*/locations/*/networkPolicies/" + + "*}:\016network_policy\332A\032network_policy,upda" + + "te_mask\312A\"\n\rNetworkPolicy\022\021OperationMeta" + + "data\022\337\001\n\023DeleteNetworkPolicy\0228.google.cl" + + "oud.vmwareengine.v1.DeleteNetworkPolicyR" + + "equest\032\035.google.longrunning.Operation\"o\202" + + "\323\344\223\0025*3/v1/{name=projects/*/locations/*/" + + "networkPolicies/*}\332A\004name\312A*\n\025google.pro" + + "tobuf.Empty\022\021OperationMetadata\022\267\002\n\031Creat" + + "eVmwareEngineNetwork\022>.google.cloud.vmwa" + + "reengine.v1.CreateVmwareEngineNetworkReq" + + "uest\032\035.google.longrunning.Operation\"\272\001\202\323" + + "\344\223\002Q\"8/v1/{parent=projects/*/locations/*" + + "}/vmwareEngineNetworks:\025vmware_engine_ne" + + "twork\332A5parent,vmware_engine_network,vmw" + + "are_engine_network_id\312A(\n\023VmwareEngineNe" + + "twork\022\021OperationMetadata\022\271\002\n\031UpdateVmwar" + + "eEngineNetwork\022>.google.cloud.vmwareengi" + + "ne.v1.UpdateVmwareEngineNetworkRequest\032\035" + + ".google.longrunning.Operation\"\274\001\202\323\344\223\002g2N" + + "/v1/{vmware_engine_network.name=projects" + + "/*/locations/*/vmwareEngineNetworks/*}:\025" + + "vmware_engine_network\332A!vmware_engine_ne" + + "twork,update_mask\312A(\n\023VmwareEngineNetwor" + + "k\022\021OperationMetadata\022\360\001\n\031DeleteVmwareEng" + + "ineNetwork\022>.google.cloud.vmwareengine.v" + + "1.DeleteVmwareEngineNetworkRequest\032\035.goo" + + "gle.longrunning.Operation\"t\202\323\344\223\002:*8/v1/{" + + "name=projects/*/locations/*/vmwareEngine" + + "Networks/*}\332A\004name\312A*\n\025google.protobuf.E" + + "mpty\022\021OperationMetadata\022\321\001\n\026GetVmwareEng" + + "ineNetwork\022;.google.cloud.vmwareengine.v" + + "1.GetVmwareEngineNetworkRequest\0321.google" + + ".cloud.vmwareengine.v1.VmwareEngineNetwo" + + "rk\"G\202\323\344\223\002:\0228/v1/{name=projects/*/locatio" + + "ns/*/vmwareEngineNetworks/*}\332A\004name\022\344\001\n\030" + + "ListVmwareEngineNetworks\022=.google.cloud." + + "vmwareengine.v1.ListVmwareEngineNetworks" + + "Request\032>.google.cloud.vmwareengine.v1.L" + + "istVmwareEngineNetworksResponse\"I\202\323\344\223\002:\022" + + "8/v1/{parent=projects/*/locations/*}/vmw" + + "areEngineNetworks\332A\006parent\032O\312A\033vmwareeng" + + "ine.googleapis.com\322A.https://www.googlea" + + "pis.com/auth/cloud-platformB\262\002\n com.goog" + + "le.cloud.vmwareengine.v1B\021VmwareenginePr" + + "otoP\001ZHgoogle.golang.org/genproto/google" + + "apis/cloud/vmwareengine/v1;vmwareengine\252" + + "\002\034Google.Cloud.VmwareEngine.V1\312\002\034Google\\" + + "Cloud\\VmwareEngine\\V1\352\002\037Google::Cloud::V" + + "mwareEngine::V1\352AN\n\036compute.googleapis.c" + + "om/Network\022,projects/{project}/global/ne" + + "tworks/{network}b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_vmwareengine_v1_NetworkConfig_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_vmwareengine_v1_NetworkConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vmwareengine_v1_NetworkConfig_descriptor, + new java.lang.String[] { + "ManagementCidr", + "VmwareEngineNetwork", + "VmwareEngineNetworkCanonical", + "ManagementIpAddressLayoutVersion", + }); + internal_static_google_cloud_vmwareengine_v1_NodeTypeConfig_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_vmwareengine_v1_NodeTypeConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vmwareengine_v1_NodeTypeConfig_descriptor, + new java.lang.String[] { + "NodeCount", "CustomCoreCount", + }); + internal_static_google_cloud_vmwareengine_v1_PrivateCloud_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_vmwareengine_v1_PrivateCloud_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vmwareengine_v1_PrivateCloud_descriptor, + new java.lang.String[] { + "Name", + "CreateTime", + "UpdateTime", + "DeleteTime", + "ExpireTime", + "State", + "NetworkConfig", + "ManagementCluster", + "Description", + "Hcx", + "Nsx", + "Vcenter", + "Uid", + }); + internal_static_google_cloud_vmwareengine_v1_PrivateCloud_ManagementCluster_descriptor = + internal_static_google_cloud_vmwareengine_v1_PrivateCloud_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_vmwareengine_v1_PrivateCloud_ManagementCluster_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vmwareengine_v1_PrivateCloud_ManagementCluster_descriptor, + new java.lang.String[] { + "ClusterId", "NodeTypeConfigs", + }); + internal_static_google_cloud_vmwareengine_v1_PrivateCloud_ManagementCluster_NodeTypeConfigsEntry_descriptor = + internal_static_google_cloud_vmwareengine_v1_PrivateCloud_ManagementCluster_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_vmwareengine_v1_PrivateCloud_ManagementCluster_NodeTypeConfigsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vmwareengine_v1_PrivateCloud_ManagementCluster_NodeTypeConfigsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_vmwareengine_v1_ListPrivateCloudsRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_vmwareengine_v1_ListPrivateCloudsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vmwareengine_v1_ListPrivateCloudsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_vmwareengine_v1_ListPrivateCloudsResponse_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_vmwareengine_v1_ListPrivateCloudsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vmwareengine_v1_ListPrivateCloudsResponse_descriptor, + new java.lang.String[] { + "PrivateClouds", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_vmwareengine_v1_GetPrivateCloudRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_vmwareengine_v1_GetPrivateCloudRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vmwareengine_v1_GetPrivateCloudRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_vmwareengine_v1_CreatePrivateCloudRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_vmwareengine_v1_CreatePrivateCloudRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vmwareengine_v1_CreatePrivateCloudRequest_descriptor, + new java.lang.String[] { + "Parent", "PrivateCloudId", "PrivateCloud", "RequestId", "ValidateOnly", + }); + internal_static_google_cloud_vmwareengine_v1_UpdatePrivateCloudRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_vmwareengine_v1_UpdatePrivateCloudRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vmwareengine_v1_UpdatePrivateCloudRequest_descriptor, + new java.lang.String[] { + "PrivateCloud", "UpdateMask", "RequestId", + }); + internal_static_google_cloud_vmwareengine_v1_DeletePrivateCloudRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_vmwareengine_v1_DeletePrivateCloudRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vmwareengine_v1_DeletePrivateCloudRequest_descriptor, + new java.lang.String[] { + "Name", "RequestId", "Force", "DelayHours", "DelayHours", + }); + internal_static_google_cloud_vmwareengine_v1_UndeletePrivateCloudRequest_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_vmwareengine_v1_UndeletePrivateCloudRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vmwareengine_v1_UndeletePrivateCloudRequest_descriptor, + new java.lang.String[] { + "Name", "RequestId", + }); + internal_static_google_cloud_vmwareengine_v1_Cluster_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_vmwareengine_v1_Cluster_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vmwareengine_v1_Cluster_descriptor, + new java.lang.String[] { + "Name", "CreateTime", "UpdateTime", "State", "Management", "Uid", "NodeTypeConfigs", + }); + internal_static_google_cloud_vmwareengine_v1_Cluster_NodeTypeConfigsEntry_descriptor = + internal_static_google_cloud_vmwareengine_v1_Cluster_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_vmwareengine_v1_Cluster_NodeTypeConfigsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vmwareengine_v1_Cluster_NodeTypeConfigsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_vmwareengine_v1_ListClustersRequest_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_vmwareengine_v1_ListClustersRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vmwareengine_v1_ListClustersRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_vmwareengine_v1_ListClustersResponse_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_vmwareengine_v1_ListClustersResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vmwareengine_v1_ListClustersResponse_descriptor, + new java.lang.String[] { + "Clusters", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_vmwareengine_v1_GetClusterRequest_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_vmwareengine_v1_GetClusterRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vmwareengine_v1_GetClusterRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_vmwareengine_v1_CreateClusterRequest_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_vmwareengine_v1_CreateClusterRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vmwareengine_v1_CreateClusterRequest_descriptor, + new java.lang.String[] { + "Parent", "ClusterId", "Cluster", "RequestId", "ValidateOnly", + }); + internal_static_google_cloud_vmwareengine_v1_UpdateClusterRequest_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_vmwareengine_v1_UpdateClusterRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vmwareengine_v1_UpdateClusterRequest_descriptor, + new java.lang.String[] { + "UpdateMask", "Cluster", "RequestId", "ValidateOnly", + }); + internal_static_google_cloud_vmwareengine_v1_DeleteClusterRequest_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_vmwareengine_v1_DeleteClusterRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vmwareengine_v1_DeleteClusterRequest_descriptor, + new java.lang.String[] { + "Name", "RequestId", + }); + internal_static_google_cloud_vmwareengine_v1_Subnet_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_vmwareengine_v1_Subnet_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vmwareengine_v1_Subnet_descriptor, + new java.lang.String[] { + "Name", "IpCidrRange", "GatewayIp", "Type", "State", + }); + internal_static_google_cloud_vmwareengine_v1_ListSubnetsRequest_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_vmwareengine_v1_ListSubnetsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vmwareengine_v1_ListSubnetsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_vmwareengine_v1_ListSubnetsResponse_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_vmwareengine_v1_ListSubnetsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vmwareengine_v1_ListSubnetsResponse_descriptor, + new java.lang.String[] { + "Subnets", "NextPageToken", + }); + internal_static_google_cloud_vmwareengine_v1_OperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_cloud_vmwareengine_v1_OperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vmwareengine_v1_OperationMetadata_descriptor, + new java.lang.String[] { + "CreateTime", + "EndTime", + "Target", + "Verb", + "StatusMessage", + "RequestedCancellation", + "ApiVersion", + }); + internal_static_google_cloud_vmwareengine_v1_NodeType_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_cloud_vmwareengine_v1_NodeType_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vmwareengine_v1_NodeType_descriptor, + new java.lang.String[] { + "Name", + "NodeTypeId", + "DisplayName", + "VirtualCpuCount", + "TotalCoreCount", + "MemoryGb", + "DiskSizeGb", + "AvailableCustomCoreCounts", + }); + internal_static_google_cloud_vmwareengine_v1_ListNodeTypesRequest_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_google_cloud_vmwareengine_v1_ListNodeTypesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vmwareengine_v1_ListNodeTypesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", + }); + internal_static_google_cloud_vmwareengine_v1_ListNodeTypesResponse_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_google_cloud_vmwareengine_v1_ListNodeTypesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vmwareengine_v1_ListNodeTypesResponse_descriptor, + new java.lang.String[] { + "NodeTypes", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_vmwareengine_v1_GetNodeTypeRequest_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_google_cloud_vmwareengine_v1_GetNodeTypeRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vmwareengine_v1_GetNodeTypeRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_vmwareengine_v1_Credentials_descriptor = + getDescriptor().getMessageTypes().get(25); + internal_static_google_cloud_vmwareengine_v1_Credentials_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vmwareengine_v1_Credentials_descriptor, + new java.lang.String[] { + "Username", "Password", + }); + internal_static_google_cloud_vmwareengine_v1_ShowNsxCredentialsRequest_descriptor = + getDescriptor().getMessageTypes().get(26); + internal_static_google_cloud_vmwareengine_v1_ShowNsxCredentialsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vmwareengine_v1_ShowNsxCredentialsRequest_descriptor, + new java.lang.String[] { + "PrivateCloud", + }); + internal_static_google_cloud_vmwareengine_v1_ShowVcenterCredentialsRequest_descriptor = + getDescriptor().getMessageTypes().get(27); + internal_static_google_cloud_vmwareengine_v1_ShowVcenterCredentialsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vmwareengine_v1_ShowVcenterCredentialsRequest_descriptor, + new java.lang.String[] { + "PrivateCloud", + }); + internal_static_google_cloud_vmwareengine_v1_ResetNsxCredentialsRequest_descriptor = + getDescriptor().getMessageTypes().get(28); + internal_static_google_cloud_vmwareengine_v1_ResetNsxCredentialsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vmwareengine_v1_ResetNsxCredentialsRequest_descriptor, + new java.lang.String[] { + "PrivateCloud", "RequestId", + }); + internal_static_google_cloud_vmwareengine_v1_ResetVcenterCredentialsRequest_descriptor = + getDescriptor().getMessageTypes().get(29); + internal_static_google_cloud_vmwareengine_v1_ResetVcenterCredentialsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vmwareengine_v1_ResetVcenterCredentialsRequest_descriptor, + new java.lang.String[] { + "PrivateCloud", "RequestId", + }); + internal_static_google_cloud_vmwareengine_v1_ListHcxActivationKeysResponse_descriptor = + getDescriptor().getMessageTypes().get(30); + internal_static_google_cloud_vmwareengine_v1_ListHcxActivationKeysResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vmwareengine_v1_ListHcxActivationKeysResponse_descriptor, + new java.lang.String[] { + "HcxActivationKeys", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_vmwareengine_v1_HcxActivationKey_descriptor = + getDescriptor().getMessageTypes().get(31); + internal_static_google_cloud_vmwareengine_v1_HcxActivationKey_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vmwareengine_v1_HcxActivationKey_descriptor, + new java.lang.String[] { + "Name", "CreateTime", "State", "ActivationKey", "Uid", + }); + internal_static_google_cloud_vmwareengine_v1_ListHcxActivationKeysRequest_descriptor = + getDescriptor().getMessageTypes().get(32); + internal_static_google_cloud_vmwareengine_v1_ListHcxActivationKeysRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vmwareengine_v1_ListHcxActivationKeysRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_vmwareengine_v1_GetHcxActivationKeyRequest_descriptor = + getDescriptor().getMessageTypes().get(33); + internal_static_google_cloud_vmwareengine_v1_GetHcxActivationKeyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vmwareengine_v1_GetHcxActivationKeyRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_vmwareengine_v1_CreateHcxActivationKeyRequest_descriptor = + getDescriptor().getMessageTypes().get(34); + internal_static_google_cloud_vmwareengine_v1_CreateHcxActivationKeyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vmwareengine_v1_CreateHcxActivationKeyRequest_descriptor, + new java.lang.String[] { + "Parent", "HcxActivationKey", "HcxActivationKeyId", "RequestId", + }); + internal_static_google_cloud_vmwareengine_v1_Hcx_descriptor = + getDescriptor().getMessageTypes().get(35); + internal_static_google_cloud_vmwareengine_v1_Hcx_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vmwareengine_v1_Hcx_descriptor, + new java.lang.String[] { + "InternalIp", "Version", "State", "Fqdn", + }); + internal_static_google_cloud_vmwareengine_v1_Nsx_descriptor = + getDescriptor().getMessageTypes().get(36); + internal_static_google_cloud_vmwareengine_v1_Nsx_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vmwareengine_v1_Nsx_descriptor, + new java.lang.String[] { + "InternalIp", "Version", "State", "Fqdn", + }); + internal_static_google_cloud_vmwareengine_v1_Vcenter_descriptor = + getDescriptor().getMessageTypes().get(37); + internal_static_google_cloud_vmwareengine_v1_Vcenter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vmwareengine_v1_Vcenter_descriptor, + new java.lang.String[] { + "InternalIp", "Version", "State", "Fqdn", + }); + internal_static_google_cloud_vmwareengine_v1_NetworkPolicy_descriptor = + getDescriptor().getMessageTypes().get(38); + internal_static_google_cloud_vmwareengine_v1_NetworkPolicy_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vmwareengine_v1_NetworkPolicy_descriptor, + new java.lang.String[] { + "Name", + "CreateTime", + "UpdateTime", + "InternetAccess", + "ExternalIp", + "EdgeServicesCidr", + "Uid", + "VmwareEngineNetwork", + "Description", + "VmwareEngineNetworkCanonical", + }); + internal_static_google_cloud_vmwareengine_v1_NetworkPolicy_NetworkService_descriptor = + internal_static_google_cloud_vmwareengine_v1_NetworkPolicy_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_vmwareengine_v1_NetworkPolicy_NetworkService_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vmwareengine_v1_NetworkPolicy_NetworkService_descriptor, + new java.lang.String[] { + "Enabled", "State", + }); + internal_static_google_cloud_vmwareengine_v1_ListNetworkPoliciesRequest_descriptor = + getDescriptor().getMessageTypes().get(39); + internal_static_google_cloud_vmwareengine_v1_ListNetworkPoliciesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vmwareengine_v1_ListNetworkPoliciesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_vmwareengine_v1_ListNetworkPoliciesResponse_descriptor = + getDescriptor().getMessageTypes().get(40); + internal_static_google_cloud_vmwareengine_v1_ListNetworkPoliciesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vmwareengine_v1_ListNetworkPoliciesResponse_descriptor, + new java.lang.String[] { + "NetworkPolicies", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_vmwareengine_v1_GetNetworkPolicyRequest_descriptor = + getDescriptor().getMessageTypes().get(41); + internal_static_google_cloud_vmwareengine_v1_GetNetworkPolicyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vmwareengine_v1_GetNetworkPolicyRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_vmwareengine_v1_UpdateNetworkPolicyRequest_descriptor = + getDescriptor().getMessageTypes().get(42); + internal_static_google_cloud_vmwareengine_v1_UpdateNetworkPolicyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vmwareengine_v1_UpdateNetworkPolicyRequest_descriptor, + new java.lang.String[] { + "NetworkPolicy", "UpdateMask", "RequestId", + }); + internal_static_google_cloud_vmwareengine_v1_CreateNetworkPolicyRequest_descriptor = + getDescriptor().getMessageTypes().get(43); + internal_static_google_cloud_vmwareengine_v1_CreateNetworkPolicyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vmwareengine_v1_CreateNetworkPolicyRequest_descriptor, + new java.lang.String[] { + "Parent", "NetworkPolicyId", "NetworkPolicy", "RequestId", + }); + internal_static_google_cloud_vmwareengine_v1_DeleteNetworkPolicyRequest_descriptor = + getDescriptor().getMessageTypes().get(44); + internal_static_google_cloud_vmwareengine_v1_DeleteNetworkPolicyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vmwareengine_v1_DeleteNetworkPolicyRequest_descriptor, + new java.lang.String[] { + "Name", "RequestId", + }); + internal_static_google_cloud_vmwareengine_v1_VmwareEngineNetwork_descriptor = + getDescriptor().getMessageTypes().get(45); + internal_static_google_cloud_vmwareengine_v1_VmwareEngineNetwork_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vmwareengine_v1_VmwareEngineNetwork_descriptor, + new java.lang.String[] { + "Name", + "CreateTime", + "UpdateTime", + "Description", + "VpcNetworks", + "State", + "Type", + "Uid", + "Etag", + }); + internal_static_google_cloud_vmwareengine_v1_VmwareEngineNetwork_VpcNetwork_descriptor = + internal_static_google_cloud_vmwareengine_v1_VmwareEngineNetwork_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_vmwareengine_v1_VmwareEngineNetwork_VpcNetwork_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vmwareengine_v1_VmwareEngineNetwork_VpcNetwork_descriptor, + new java.lang.String[] { + "Type", "Network", + }); + internal_static_google_cloud_vmwareengine_v1_CreateVmwareEngineNetworkRequest_descriptor = + getDescriptor().getMessageTypes().get(46); + internal_static_google_cloud_vmwareengine_v1_CreateVmwareEngineNetworkRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vmwareengine_v1_CreateVmwareEngineNetworkRequest_descriptor, + new java.lang.String[] { + "Parent", "VmwareEngineNetworkId", "VmwareEngineNetwork", "RequestId", + }); + internal_static_google_cloud_vmwareengine_v1_UpdateVmwareEngineNetworkRequest_descriptor = + getDescriptor().getMessageTypes().get(47); + internal_static_google_cloud_vmwareengine_v1_UpdateVmwareEngineNetworkRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vmwareengine_v1_UpdateVmwareEngineNetworkRequest_descriptor, + new java.lang.String[] { + "VmwareEngineNetwork", "UpdateMask", "RequestId", + }); + internal_static_google_cloud_vmwareengine_v1_DeleteVmwareEngineNetworkRequest_descriptor = + getDescriptor().getMessageTypes().get(48); + internal_static_google_cloud_vmwareengine_v1_DeleteVmwareEngineNetworkRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vmwareengine_v1_DeleteVmwareEngineNetworkRequest_descriptor, + new java.lang.String[] { + "Name", "RequestId", "Etag", + }); + internal_static_google_cloud_vmwareengine_v1_GetVmwareEngineNetworkRequest_descriptor = + getDescriptor().getMessageTypes().get(49); + internal_static_google_cloud_vmwareengine_v1_GetVmwareEngineNetworkRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vmwareengine_v1_GetVmwareEngineNetworkRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_vmwareengine_v1_ListVmwareEngineNetworksRequest_descriptor = + getDescriptor().getMessageTypes().get(50); + internal_static_google_cloud_vmwareengine_v1_ListVmwareEngineNetworksRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vmwareengine_v1_ListVmwareEngineNetworksRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_vmwareengine_v1_ListVmwareEngineNetworksResponse_descriptor = + getDescriptor().getMessageTypes().get(51); + internal_static_google_cloud_vmwareengine_v1_ListVmwareEngineNetworksResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vmwareengine_v1_ListVmwareEngineNetworksResponse_descriptor, + new java.lang.String[] { + "VmwareEngineNetworks", "NextPageToken", "Unreachable", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceDefinition); + registry.add(com.google.api.ResourceProto.resourceReference); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/proto/google/cloud/vmwareengine/v1/vmwareengine.proto b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/proto/google/cloud/vmwareengine/v1/vmwareengine.proto new file mode 100644 index 000000000000..695006cf2e21 --- /dev/null +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/proto/google/cloud/vmwareengine/v1/vmwareengine.proto @@ -0,0 +1,2194 @@ +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.vmwareengine.v1; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/longrunning/operations.proto"; +import "google/protobuf/field_mask.proto"; +import "google/protobuf/timestamp.proto"; + +option csharp_namespace = "Google.Cloud.VmwareEngine.V1"; +option go_package = "google.golang.org/genproto/googleapis/cloud/vmwareengine/v1;vmwareengine"; +option java_multiple_files = true; +option java_outer_classname = "VmwareengineProto"; +option java_package = "com.google.cloud.vmwareengine.v1"; +option php_namespace = "Google\\Cloud\\VmwareEngine\\V1"; +option ruby_package = "Google::Cloud::VmwareEngine::V1"; +option (google.api.resource_definition) = { + type: "compute.googleapis.com/Network" + pattern: "projects/{project}/global/networks/{network}" +}; + +// VMwareEngine manages VMware's private clusters in the Cloud. +service VmwareEngine { + option (google.api.default_host) = "vmwareengine.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; + + // Lists `PrivateCloud` resources in a given project and location. + rpc ListPrivateClouds(ListPrivateCloudsRequest) returns (ListPrivateCloudsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/privateClouds" + }; + option (google.api.method_signature) = "parent"; + } + + // Retrieves a `PrivateCloud` resource by its resource name. + rpc GetPrivateCloud(GetPrivateCloudRequest) returns (PrivateCloud) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/privateClouds/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates a new `PrivateCloud` resource in a given project and location. + // Private clouds can only be created in zones, regional private clouds are + // not supported. + // + // Creating a private cloud also creates a [management + // cluster](https://cloud.google.com/vmware-engine/docs/concepts-vmware-components) + // for that private cloud. + rpc CreatePrivateCloud(CreatePrivateCloudRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*}/privateClouds" + body: "private_cloud" + }; + option (google.api.method_signature) = "parent,private_cloud,private_cloud_id"; + option (google.longrunning.operation_info) = { + response_type: "PrivateCloud" + metadata_type: "OperationMetadata" + }; + } + + // Modifies a `PrivateCloud` resource. Only the following fields can be + // updated: `description`. + // Only fields specified in `updateMask` are applied. + // + // During operation processing, the resource is temporarily in the `ACTIVE` + // state before the operation fully completes. For that period of time, you + // can't update the resource. Use the operation status to determine when the + // processing fully completes. + rpc UpdatePrivateCloud(UpdatePrivateCloudRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1/{private_cloud.name=projects/*/locations/*/privateClouds/*}" + body: "private_cloud" + }; + option (google.api.method_signature) = "private_cloud,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "PrivateCloud" + metadata_type: "OperationMetadata" + }; + } + + // Schedules a `PrivateCloud` resource for deletion. + // + // A `PrivateCloud` resource scheduled for deletion has `PrivateCloud.state` + // set to `DELETED` and `expireTime` set to the time when deletion is final + // and can no longer be reversed. The delete operation is marked as done + // as soon as the `PrivateCloud` is successfully scheduled for deletion + // (this also applies when `delayHours` is set to zero), and the operation is + // not kept in pending state until `PrivateCloud` is purged. + // `PrivateCloud` can be restored using `UndeletePrivateCloud` method before + // the `expireTime` elapses. When `expireTime` is reached, deletion is final + // and all private cloud resources are irreversibly removed and billing stops. + // During the final removal process, `PrivateCloud.state` is set to `PURGING`. + // `PrivateCloud` can be polled using standard `GET` method for the whole + // period of deletion and purging. It will not be returned only + // when it is completely purged. + rpc DeletePrivateCloud(DeletePrivateCloudRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/privateClouds/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "PrivateCloud" + metadata_type: "OperationMetadata" + }; + } + + // Restores a private cloud that was previously scheduled for deletion by + // `DeletePrivateCloud`. A `PrivateCloud` resource scheduled for deletion has + // `PrivateCloud.state` set to `DELETED` and `PrivateCloud.expireTime` set to + // the time when deletion can no longer be reversed. + rpc UndeletePrivateCloud(UndeletePrivateCloudRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/privateClouds/*}:undelete" + body: "*" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "PrivateCloud" + metadata_type: "OperationMetadata" + }; + } + + // Lists `Cluster` resources in a given private cloud. + rpc ListClusters(ListClustersRequest) returns (ListClustersResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/privateClouds/*}/clusters" + }; + option (google.api.method_signature) = "parent"; + } + + // Retrieves a `Cluster` resource by its resource name. + rpc GetCluster(GetClusterRequest) returns (Cluster) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/privateClouds/*/clusters/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates a new cluster in a given private cloud. + // Creating a new cluster provides additional nodes for + // use in the parent private cloud and requires sufficient [node + // quota](https://cloud.google.com/vmware-engine/quotas). + rpc CreateCluster(CreateClusterRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*/privateClouds/*}/clusters" + body: "cluster" + }; + option (google.api.method_signature) = "parent,cluster,cluster_id"; + option (google.longrunning.operation_info) = { + response_type: "Cluster" + metadata_type: "OperationMetadata" + }; + } + + // Modifies a `Cluster` resource. Only the following fields can be updated: + // `node_type_configs.*.node_count`. Only fields specified in `updateMask` are + // applied. + // + // During operation processing, the resource is temporarily in the `ACTIVE` + // state before the operation fully completes. For that period of time, you + // can't update the resource. Use the operation status to determine when the + // processing fully completes. + rpc UpdateCluster(UpdateClusterRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1/{cluster.name=projects/*/locations/*/privateClouds/*/clusters/*}" + body: "cluster" + }; + option (google.api.method_signature) = "cluster,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "Cluster" + metadata_type: "OperationMetadata" + }; + } + + // Deletes a `Cluster` resource. To avoid unintended data loss, migrate or + // gracefully shut down any workloads running on the cluster before deletion. + // You cannot delete the management cluster of a private cloud using this + // method. + rpc DeleteCluster(DeleteClusterRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/privateClouds/*/clusters/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "OperationMetadata" + }; + } + + // Lists subnets in a given private cloud. + rpc ListSubnets(ListSubnetsRequest) returns (ListSubnetsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/privateClouds/*}/subnets" + }; + option (google.api.method_signature) = "parent"; + } + + // Lists node types + rpc ListNodeTypes(ListNodeTypesRequest) returns (ListNodeTypesResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/nodeTypes" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets details of a single `NodeType`. + rpc GetNodeType(GetNodeTypeRequest) returns (NodeType) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/nodeTypes/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Gets details of credentials for NSX appliance. + rpc ShowNsxCredentials(ShowNsxCredentialsRequest) returns (Credentials) { + option (google.api.http) = { + get: "/v1/{private_cloud=projects/*/locations/*/privateClouds/*}:showNsxCredentials" + }; + option (google.api.method_signature) = "private_cloud"; + } + + // Gets details of credentials for Vcenter appliance. + rpc ShowVcenterCredentials(ShowVcenterCredentialsRequest) returns (Credentials) { + option (google.api.http) = { + get: "/v1/{private_cloud=projects/*/locations/*/privateClouds/*}:showVcenterCredentials" + }; + option (google.api.method_signature) = "private_cloud"; + } + + // Resets credentials of the NSX appliance. + rpc ResetNsxCredentials(ResetNsxCredentialsRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{private_cloud=projects/*/locations/*/privateClouds/*}:resetNsxCredentials" + body: "*" + }; + option (google.api.method_signature) = "private_cloud"; + option (google.longrunning.operation_info) = { + response_type: "PrivateCloud" + metadata_type: "OperationMetadata" + }; + } + + // Resets credentials of the Vcenter appliance. + rpc ResetVcenterCredentials(ResetVcenterCredentialsRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{private_cloud=projects/*/locations/*/privateClouds/*}:resetVcenterCredentials" + body: "*" + }; + option (google.api.method_signature) = "private_cloud"; + option (google.longrunning.operation_info) = { + response_type: "PrivateCloud" + metadata_type: "OperationMetadata" + }; + } + + // Creates a new HCX activation key in a given private cloud. + rpc CreateHcxActivationKey(CreateHcxActivationKeyRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*/privateClouds/*}/hcxActivationKeys" + body: "hcx_activation_key" + }; + option (google.api.method_signature) = "parent,hcx_activation_key,hcx_activation_key_id"; + option (google.longrunning.operation_info) = { + response_type: "HcxActivationKey" + metadata_type: "OperationMetadata" + }; + } + + // Lists `HcxActivationKey` resources in a given private cloud. + rpc ListHcxActivationKeys(ListHcxActivationKeysRequest) returns (ListHcxActivationKeysResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/privateClouds/*}/hcxActivationKeys" + }; + option (google.api.method_signature) = "parent"; + } + + // Retrieves a `HcxActivationKey` resource by its resource name. + rpc GetHcxActivationKey(GetHcxActivationKeyRequest) returns (HcxActivationKey) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/privateClouds/*/hcxActivationKeys/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Retrieves a `NetworkPolicy` resource by its resource name. + rpc GetNetworkPolicy(GetNetworkPolicyRequest) returns (NetworkPolicy) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/networkPolicies/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists `NetworkPolicy` resources in a specified project and location. + rpc ListNetworkPolicies(ListNetworkPoliciesRequest) returns (ListNetworkPoliciesResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/networkPolicies" + }; + option (google.api.method_signature) = "parent"; + } + + // Creates a new network policy in a given VMware Engine network of a + // project and location (region). A new network policy cannot be created if + // another network policy already exists in the same scope. + rpc CreateNetworkPolicy(CreateNetworkPolicyRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*}/networkPolicies" + body: "network_policy" + }; + option (google.api.method_signature) = "parent,network_policy,network_policy_id"; + option (google.longrunning.operation_info) = { + response_type: "NetworkPolicy" + metadata_type: "OperationMetadata" + }; + } + + // Modifies a `NetworkPolicy` resource. Only the following fields can be + // updated: `internet_access`, `external_ip`, `edge_services_cidr`. + // Only fields specified in `updateMask` are applied. When updating a network + // policy, the external IP network service can only be disabled if there are + // no external IP addresses present in the scope of the policy. Also, a + // `NetworkService` cannot be updated when `NetworkService.state` is set + // to `RECONCILING`. + // + // During operation processing, the resource is temporarily in the `ACTIVE` + // state before the operation fully completes. For that period of time, you + // can't update the resource. Use the operation status to determine when the + // processing fully completes. + rpc UpdateNetworkPolicy(UpdateNetworkPolicyRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1/{network_policy.name=projects/*/locations/*/networkPolicies/*}" + body: "network_policy" + }; + option (google.api.method_signature) = "network_policy,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "NetworkPolicy" + metadata_type: "OperationMetadata" + }; + } + + // Deletes a `NetworkPolicy` resource. A network policy cannot be deleted + // when `NetworkService.state` is set to `RECONCILING` for either its external + // IP or internet access service. + rpc DeleteNetworkPolicy(DeleteNetworkPolicyRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/networkPolicies/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "OperationMetadata" + }; + } + + // Creates a new VMware Engine network that can be used by a private cloud. + rpc CreateVmwareEngineNetwork(CreateVmwareEngineNetworkRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*}/vmwareEngineNetworks" + body: "vmware_engine_network" + }; + option (google.api.method_signature) = "parent,vmware_engine_network,vmware_engine_network_id"; + option (google.longrunning.operation_info) = { + response_type: "VmwareEngineNetwork" + metadata_type: "OperationMetadata" + }; + } + + // Modifies a VMware Engine network resource. Only the following fields can be + // updated: `description`. Only fields specified in `updateMask` are + // applied. + rpc UpdateVmwareEngineNetwork(UpdateVmwareEngineNetworkRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1/{vmware_engine_network.name=projects/*/locations/*/vmwareEngineNetworks/*}" + body: "vmware_engine_network" + }; + option (google.api.method_signature) = "vmware_engine_network,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "VmwareEngineNetwork" + metadata_type: "OperationMetadata" + }; + } + + // Deletes a `VmwareEngineNetwork` resource. You can only delete a VMware + // Engine network after all resources that refer to it are deleted. For + // example, a private cloud, a network peering, and a network policy can all + // refer to the same VMware Engine network. + rpc DeleteVmwareEngineNetwork(DeleteVmwareEngineNetworkRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/vmwareEngineNetworks/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "OperationMetadata" + }; + } + + // Retrieves a `VmwareEngineNetwork` resource by its resource name. The + // resource contains details of the VMware Engine network, such as its VMware + // Engine network type, peered networks in a service project, and state + // (for example, `CREATING`, `ACTIVE`, `DELETING`). + rpc GetVmwareEngineNetwork(GetVmwareEngineNetworkRequest) returns (VmwareEngineNetwork) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/vmwareEngineNetworks/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists `VmwareEngineNetwork` resources in a given project and location. + rpc ListVmwareEngineNetworks(ListVmwareEngineNetworksRequest) returns (ListVmwareEngineNetworksResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/vmwareEngineNetworks" + }; + option (google.api.method_signature) = "parent"; + } +} + +// Network configuration in the consumer project +// with which the peering has to be done. +message NetworkConfig { + // Required. Management CIDR used by VMware management appliances. + string management_cidr = 4 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The relative resource name of the VMware Engine network attached + // to the private cloud. Specify the name in the following form: + // `projects/{project}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}` + // where `{project}` can either be a project number or a project ID. + string vmware_engine_network = 5 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "vmwareengine.googleapis.com/VmwareEngineNetwork" + } + ]; + + // Output only. The canonical name of the VMware Engine network in the form: + // `projects/{project_number}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}` + string vmware_engine_network_canonical = 6 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "vmwareengine.googleapis.com/VmwareEngineNetwork" + } + ]; + + // Output only. The IP address layout version of the management IP address + // range. Possible versions include: + // * `managementIpAddressLayoutVersion=1`: Indicates the legacy IP address + // layout used by some existing private clouds. This is no longer supported + // for new private clouds as it does not support all features. + // * `managementIpAddressLayoutVersion=2`: Indicates the latest IP address + // layout used by all newly created private clouds. This version supports all + // current features. + int32 management_ip_address_layout_version = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Information about the type and number of nodes associated with the cluster. +message NodeTypeConfig { + // Required. The number of nodes of this type in the cluster + int32 node_count = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Customized number of cores available to each node of the type. + // This number must always be one of `nodeType.availableCustomCoreCounts`. + // If zero is provided max value from `nodeType.availableCustomCoreCounts` + // will be used. + int32 custom_core_count = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// Represents a private cloud resource. Private clouds are zonal resources. +message PrivateCloud { + option (google.api.resource) = { + type: "vmwareengine.googleapis.com/PrivateCloud" + pattern: "projects/{project}/locations/{location}/privateClouds/{private_cloud}" + }; + + // Enum State defines possible states of private clouds. + enum State { + // The default value. This value should never be used. + STATE_UNSPECIFIED = 0; + + // The private cloud is ready. + ACTIVE = 1; + + // The private cloud is being created. + CREATING = 2; + + // The private cloud is being updated. + UPDATING = 3; + + // The private cloud is in failed state. + FAILED = 5; + + // The private cloud is scheduled for deletion. The deletion process can be + // cancelled by using the corresponding undelete method. + DELETED = 6; + + // The private cloud is irreversibly deleted and is being removed from the + // system. + PURGING = 7; + } + + // Management cluster configuration. + message ManagementCluster { + // Required. The user-provided identifier of the new `Cluster`. + // The identifier must meet the following requirements: + // + // * Only contains 1-63 alphanumeric characters and hyphens + // * Begins with an alphabetical character + // * Ends with a non-hyphen character + // * Not formatted as a UUID + // * Complies with [RFC + // 1034](https://datatracker.ietf.org/doc/html/rfc1034) (section 3.5) + string cluster_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The map of cluster node types in this cluster, where the key is canonical + // identifier of the node type (corresponds to the `NodeType`). + map node_type_configs = 7 [(google.api.field_behavior) = REQUIRED]; + } + + // Output only. The resource name of this private cloud. + // Resource names are schemeless URIs that follow the conventions in + // https://cloud.google.com/apis/design/resource_names. + // For example: + // `projects/my-project/locations/us-west1-a/privateClouds/my-cloud` + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Creation time of this resource. + google.protobuf.Timestamp create_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Last update time of this resource. + google.protobuf.Timestamp update_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Time when the resource was scheduled for deletion. + google.protobuf.Timestamp delete_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Time when the resource will be irreversibly deleted. + google.protobuf.Timestamp expire_time = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. State of the resource. New values may be added to this enum + // when appropriate. + State state = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. Network configuration of the private cloud. + NetworkConfig network_config = 9 [(google.api.field_behavior) = REQUIRED]; + + // Input only. The management cluster for this private cloud. + // This field is required during creation of the private cloud to provide + // details for the default cluster. + // + // The following fields can't be changed after private cloud creation: + // `ManagementCluster.clusterId`, `ManagementCluster.nodeTypeId`. + ManagementCluster management_cluster = 10 [(google.api.field_behavior) = INPUT_ONLY]; + + // User-provided description for this private cloud. + string description = 11; + + // Output only. HCX appliance. + Hcx hcx = 17 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. NSX appliance. + Nsx nsx = 18 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Vcenter appliance. + Vcenter vcenter = 19 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. System-generated unique identifier for the resource. + string uid = 20 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Request message for [VmwareEngine.ListPrivateClouds][google.cloud.vmwareengine.v1.VmwareEngine.ListPrivateClouds] +message ListPrivateCloudsRequest { + // Required. The resource name of the private cloud to be queried for + // clusters. Resource names are schemeless URIs that follow the conventions in + // https://cloud.google.com/apis/design/resource_names. + // For example: + // `projects/my-project/locations/us-west1-a` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // The maximum number of private clouds to return in one page. + // The service may return fewer than this value. + // The maximum value is coerced to 1000. + // The default value of this field is 500. + int32 page_size = 2; + + // A page token, received from a previous `ListPrivateClouds` call. + // Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to `ListPrivateClouds` must + // match the call that provided the page token. + string page_token = 3; + + // A filter expression that matches resources returned in the response. + // The expression must specify the field name, a comparison operator, and the + // value that you want to use for filtering. The value must be a string, a + // number, or a boolean. The comparison operator must be `=`, `!=`, `>`, or + // `<`. + // + // For example, if you are filtering a list of private clouds, you can exclude + // the ones named `example-pc` by specifying `name != "example-pc"`. + // + // You can also filter nested fields. For example, you could specify + // `networkConfig.managementCidr = "192.168.0.0/24"` to include private clouds + // only if they have a matching address in their network configuration. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (name = "example-pc") + // (createTime > "2021-04-12T08:15:10.40Z") + // ``` + // + // By default, each expression is an `AND` expression. However, you can + // include `AND` and `OR` expressions explicitly. For example: + // ``` + // (name = "private-cloud-1") AND + // (createTime > "2021-04-12T08:15:10.40Z") OR + // (name = "private-cloud-2") + // ``` + string filter = 4; + + // Sorts list results by a certain order. By default, returned results are + // ordered by `name` in ascending order. You can also sort results in + // descending order based on the `name` value using `orderBy="name desc"`. + // Currently, only ordering by `name` is supported. + string order_by = 5; +} + +// Response message for [VmwareEngine.ListPrivateClouds][google.cloud.vmwareengine.v1.VmwareEngine.ListPrivateClouds] +message ListPrivateCloudsResponse { + // A list of private clouds. + repeated PrivateCloud private_clouds = 1; + + // A token, which can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; + + // Locations that could not be reached when making an aggregated query using + // wildcards. + repeated string unreachable = 3; +} + +// Request message for [VmwareEngine.GetPrivateCloud][google.cloud.vmwareengine.v1.VmwareEngine.GetPrivateCloud] +message GetPrivateCloudRequest { + // Required. The resource name of the private cloud to retrieve. + // Resource names are schemeless URIs that follow the conventions in + // https://cloud.google.com/apis/design/resource_names. + // For example: + // `projects/my-project/locations/us-west1-a/privateClouds/my-cloud` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "vmwareengine.googleapis.com/PrivateCloud" + } + ]; +} + +// Request message for [VmwareEngine.CreatePrivateCloud][google.cloud.vmwareengine.v1.VmwareEngine.CreatePrivateCloud] +message CreatePrivateCloudRequest { + // Required. The resource name of the location to create the new + // private cloud in. Resource names are schemeless URIs that follow the + // conventions in https://cloud.google.com/apis/design/resource_names. + // For example: + // `projects/my-project/locations/us-west1-a` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // Required. The user-provided identifier of the private cloud to be created. + // This identifier must be unique among each `PrivateCloud` within the parent + // and becomes the final token in the name URI. + // The identifier must meet the following requirements: + // + // * Only contains 1-63 alphanumeric characters and hyphens + // * Begins with an alphabetical character + // * Ends with a non-hyphen character + // * Not formatted as a UUID + // * Complies with [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034) + // (section 3.5) + string private_cloud_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The initial description of the new private cloud. + PrivateCloud private_cloud = 3 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. True if you want the request to be validated and not executed; false + // otherwise. + bool validate_only = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// Request message for [VmwareEngine.UpdatePrivateCloud][google.cloud.vmwareengine.v1.VmwareEngine.UpdatePrivateCloud] +message UpdatePrivateCloudRequest { + // Required. Private cloud description. + PrivateCloud private_cloud = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Field mask is used to specify the fields to be overwritten in the + // `PrivateCloud` resource by the update. The fields specified in `updateMask` + // are relative to the resource, not the full request. A field will be + // overwritten if it is in the mask. If the user does not provide a mask then + // all fields will be overwritten. + google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Request message for [VmwareEngine.DeletePrivateCloud][google.cloud.vmwareengine.v1.VmwareEngine.DeletePrivateCloud] +message DeletePrivateCloudRequest { + // Required. The resource name of the private cloud to delete. + // Resource names are schemeless URIs that follow the conventions in + // https://cloud.google.com/apis/design/resource_names. + // For example: + // `projects/my-project/locations/us-west1-a/privateClouds/my-cloud` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "vmwareengine.googleapis.com/PrivateCloud" + } + ]; + + // Optional. The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If set to true, cascade delete is enabled and all children of this private + // cloud resource are also deleted. When this flag is set to false, the + // private cloud will not be deleted if there are any children other than the + // management cluster. The management cluster is always deleted. + bool force = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Time delay of the deletion specified in hours. The default value + // is `3`. Specifying a non-zero value for this field changes the value of + // `PrivateCloud.state` to `DELETED` and sets `expire_time` to the planned + // deletion time. Deletion can be cancelled before `expire_time` elapses using + // [VmwareEngine.UndeletePrivateCloud][google.cloud.vmwareengine.v1.VmwareEngine.UndeletePrivateCloud]. Specifying a value of `0` for + // this field instead begins the deletion process and ceases billing + // immediately. During the final deletion process, the value of + // `PrivateCloud.state` becomes `PURGING`. + optional int32 delay_hours = 4 [(google.api.field_behavior) = OPTIONAL]; +} + +// Request message for [VmwareEngine.UndeletePrivateCloud][google.cloud.vmwareengine.v1.VmwareEngine.UndeletePrivateCloud] +message UndeletePrivateCloudRequest { + // Required. The resource name of the private cloud scheduled for deletion. + // Resource names are schemeless URIs that follow the conventions in + // https://cloud.google.com/apis/design/resource_names. + // For example: + // `projects/my-project/locations/us-west1-a/privateClouds/my-cloud` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "vmwareengine.googleapis.com/PrivateCloud" + } + ]; + + // Optional. The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// A cluster in a private cloud. +message Cluster { + option (google.api.resource) = { + type: "vmwareengine.googleapis.com/Cluster" + pattern: "projects/{project}/locations/{location}/privateClouds/{private_cloud}/clusters/{cluster}" + }; + + // Enum State defines possible states of private cloud clusters. + enum State { + // The default value. This value should never be used. + STATE_UNSPECIFIED = 0; + + // The Cluster is operational and can be used by the user. + ACTIVE = 1; + + // The Cluster is being deployed. + CREATING = 2; + + // Adding or removing of a node to the cluster, any other cluster specific + // updates. + UPDATING = 3; + + // The Cluster is being deleted. + DELETING = 4; + + // The Cluster is undergoing maintenance, for example: a failed node is + // getting replaced. + REPAIRING = 5; + } + + // Output only. The resource name of this cluster. + // Resource names are schemeless URIs that follow the conventions in + // https://cloud.google.com/apis/design/resource_names. + // For example: + // `projects/my-project/locations/us-west1-a/privateClouds/my-cloud/clusters/my-cluster` + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Creation time of this resource. + google.protobuf.Timestamp create_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Last update time of this resource. + google.protobuf.Timestamp update_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. State of the resource. + State state = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. True if the cluster is a management cluster; false otherwise. + // There can only be one management cluster in a private cloud + // and it has to be the first one. + bool management = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. System-generated unique identifier for the resource. + string uid = 14 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. The map of cluster node types in this cluster, where the key is canonical + // identifier of the node type (corresponds to the `NodeType`). + map node_type_configs = 16 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for [VmwareEngine.ListClusters][google.cloud.vmwareengine.v1.VmwareEngine.ListClusters] +message ListClustersRequest { + // Required. The resource name of the private cloud to query for clusters. + // Resource names are schemeless URIs that follow the conventions in + // https://cloud.google.com/apis/design/resource_names. + // For example: + // `projects/my-project/locations/us-west1-a/privateClouds/my-cloud` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "vmwareengine.googleapis.com/PrivateCloud" + } + ]; + + // The maximum number of clusters to return in one page. + // The service may return fewer than this value. + // The maximum value is coerced to 1000. + // The default value of this field is 500. + int32 page_size = 2; + + // A page token, received from a previous `ListClusters` call. + // Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to `ListClusters` + // must match the call that provided the page token. + string page_token = 3; + + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (name = "example-cluster") + // (nodeCount = "3") + // ``` + // + // By default, each expression is an `AND` expression. However, you can + // include `AND` and `OR` expressions explicitly. For example: + // ``` + // (name = "example-cluster-1") AND + // (createTime > "2021-04-12T08:15:10.40Z") OR + // (name = "example-cluster-2") + // ``` + string filter = 4; + + // Sorts list results by a certain order. By default, returned results are + // ordered by `name` in ascending order. You can also sort results in + // descending order based on the `name` value using `orderBy="name desc"`. + // Currently, only ordering by `name` is supported. + string order_by = 5; +} + +// Response message for [VmwareEngine.ListClusters][google.cloud.vmwareengine.v1.VmwareEngine.ListClusters] +message ListClustersResponse { + // A list of private cloud clusters. + repeated Cluster clusters = 1; + + // A token, which can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; + + // Locations that could not be reached when making an aggregated query using + // wildcards. + repeated string unreachable = 3; +} + +// Request message for [VmwareEngine.GetCluster][google.cloud.vmwareengine.v1.VmwareEngine.GetCluster] +message GetClusterRequest { + // Required. The cluster resource name to retrieve. + // Resource names are schemeless URIs that follow the conventions in + // https://cloud.google.com/apis/design/resource_names. + // For example: + // `projects/my-project/locations/us-west1-a/privateClouds/my-cloud/clusters/my-cluster` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "vmwareengine.googleapis.com/Cluster" + } + ]; +} + +// Request message for [VmwareEngine.CreateCluster][google.cloud.vmwareengine.v1.VmwareEngine.CreateCluster] +message CreateClusterRequest { + // Required. The resource name of the private cloud to create a new cluster + // in. Resource names are schemeless URIs that follow the conventions in + // https://cloud.google.com/apis/design/resource_names. + // For example: + // `projects/my-project/locations/us-west1-a/privateClouds/my-cloud` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "vmwareengine.googleapis.com/PrivateCloud" + } + ]; + + // Required. The user-provided identifier of the new `Cluster`. + // This identifier must be unique among clusters within the parent and becomes + // the final token in the name URI. + // The identifier must meet the following requirements: + // + // * Only contains 1-63 alphanumeric characters and hyphens + // * Begins with an alphabetical character + // * Ends with a non-hyphen character + // * Not formatted as a UUID + // * Complies with [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034) + // (section 3.5) + string cluster_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The initial description of the new cluster. + Cluster cluster = 3 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. True if you want the request to be validated and not executed; false + // otherwise. + bool validate_only = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// Request message for [VmwareEngine.UpdateCluster][google.cloud.vmwareengine.v1.VmwareEngine.UpdateCluster] +message UpdateClusterRequest { + // Required. Field mask is used to specify the fields to be overwritten in the + // `Cluster` resource by the update. The fields specified in the `updateMask` + // are relative to the resource, not the full request. A field will be + // overwritten if it is in the mask. If the user does not provide a mask then + // all fields will be overwritten. + google.protobuf.FieldMask update_mask = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The description of the cluster. + Cluster cluster = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The request ID must be a valid UUID with the exception that + // zero UUID is not supported (00000000-0000-0000-0000-000000000000). + string request_id = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. True if you want the request to be validated and not executed; false + // otherwise. + bool validate_only = 4 [(google.api.field_behavior) = OPTIONAL]; +} + +// Request message for [VmwareEngine.DeleteCluster][google.cloud.vmwareengine.v1.VmwareEngine.DeleteCluster] +message DeleteClusterRequest { + // Required. The resource name of the cluster to delete. + // Resource names are schemeless URIs that follow the conventions in + // https://cloud.google.com/apis/design/resource_names. + // For example: + // `projects/my-project/locations/us-west1-a/privateClouds/my-cloud/clusters/my-cluster` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "vmwareengine.googleapis.com/Cluster" + } + ]; + + // Optional. The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// Subnet in a private cloud. Either `management` subnets (such as vMotion) that +// are read-only, or `userDefined`, which can also be updated. +message Subnet { + option (google.api.resource) = { + type: "vmwareengine.googleapis.com/Subnet" + pattern: "projects/{project}/locations/{location}/privateClouds/{private_cloud}/subnets/{subnet}" + }; + + // Defines possible states of subnets. + enum State { + // The default value. This value should never be used. + STATE_UNSPECIFIED = 0; + + // The subnet is ready. + ACTIVE = 1; + + // The subnet is being created. + CREATING = 2; + + // The subnet is being updated. + UPDATING = 3; + + // The subnet is being deleted. + DELETING = 4; + } + + // Output only. The resource name of this subnet. + // Resource names are schemeless URIs that follow the conventions in + // https://cloud.google.com/apis/design/resource_names. + // For example: + // `projects/my-project/locations/us-west1-a/privateClouds/my-cloud/subnets/my-subnet` + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The IP address range of the subnet in CIDR format '10.0.0.0/24'. + string ip_cidr_range = 7; + + // The IP address of the gateway of this subnet. + // Must fall within the IP prefix defined above. + string gateway_ip = 8; + + // Output only. The type of the subnet. For example "management" or "userDefined". + string type = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The state of the resource. + State state = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Request message for [VmwareEngine.ListSubnets][google.cloud.vmwareengine.v1.VmwareEngine.ListSubnets] +message ListSubnetsRequest { + // Required. The resource name of the private cloud to be queried for + // subnets. + // Resource names are schemeless URIs that follow the conventions in + // https://cloud.google.com/apis/design/resource_names. + // For example: + // `projects/my-project/locations/us-west1-a/privateClouds/my-cloud` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "vmwareengine.googleapis.com/PrivateCloud" + } + ]; + + // The maximum number of subnets to return in one page. + // The service may return fewer than this value. + // The maximum value is coerced to 1000. + // The default value of this field is 500. + int32 page_size = 2; + + // A page token, received from a previous `ListSubnetsRequest` call. + // Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to + // `ListSubnetsRequest` must match the call that provided the page token. + string page_token = 3; +} + +// Response message for [VmwareEngine.ListSubnets][google.cloud.vmwareengine.v1.VmwareEngine.ListSubnets] +message ListSubnetsResponse { + // A list of subnets. + repeated Subnet subnets = 1; + + // A token, which can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; +} + +// Represents the metadata of the long-running operation. +message OperationMetadata { + // Output only. The time the operation was created. + google.protobuf.Timestamp create_time = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The time the operation finished running. + google.protobuf.Timestamp end_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Server-defined resource path for the target of the operation. + string target = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Name of the verb executed by the operation. + string verb = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Human-readable status of the operation, if any. + string status_message = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. True if the user has requested cancellation + // of the operation; false otherwise. + // Operations that have successfully been cancelled + // have [Operation.error][] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, + // corresponding to `Code.CANCELLED`. + bool requested_cancellation = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. API version used to start the operation. + string api_version = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Describes node type. +message NodeType { + option (google.api.resource) = { + type: "vmwareengine.googleapis.com/NodeType" + pattern: "projects/{project}/locations/{location}/nodeTypes/{node_type}" + }; + + // Output only. The resource name of this node type. + // Resource names are schemeless URIs that follow the conventions in + // https://cloud.google.com/apis/design/resource_names. + // For example: + // `projects/my-proj/locations/us-west1-a/nodeTypes/standard-72` + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The canonical identifier of the node type + // (corresponds to the `NodeType`). For example: standard-72. + string node_type_id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The friendly name for this node type. + // For example: ve1-standard-72 + string display_name = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The total number of virtual CPUs in a single node. + int32 virtual_cpu_count = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The total number of CPU cores in a single node. + int32 total_core_count = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The amount of physical memory available, defined in GB. + int32 memory_gb = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The amount of storage available, defined in GB. + int32 disk_size_gb = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. List of possible values of custom core count. + repeated int32 available_custom_core_counts = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Request message for [VmwareEngine.ListNodeTypes][google.cloud.vmwareengine.v1.VmwareEngine.ListNodeTypes] +message ListNodeTypesRequest { + // Required. The resource name of the location to be queried for node types. + // Resource names are schemeless URIs that follow the conventions in + // https://cloud.google.com/apis/design/resource_names. + // For example: + // `projects/my-project/locations/us-west1-a` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // The maximum number of node types to return in one page. + // The service may return fewer than this value. + // The maximum value is coerced to 1000. + // The default value of this field is 500. + int32 page_size = 2; + + // A page token, received from a previous `ListNodeTypes` call. + // Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to + // `ListNodeTypes` must match the call that provided the page token. + string page_token = 3; + + // A filter expression that matches resources returned in the response. + // The expression must specify the field name, a comparison + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The comparison operator + // must be `=`, `!=`, `>`, or `<`. + // + // For example, if you are filtering a list of node types, you can + // exclude the ones named `standard-72` by specifying + // `name != "standard-72"`. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (name = "standard-72") + // (virtual_cpu_count > 2) + // ``` + // + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (name = "standard-96") AND + // (virtual_cpu_count > 2) OR + // (name = "standard-72") + // ``` + string filter = 4; +} + +// Response message for [VmwareEngine.ListNodeTypes][google.cloud.vmwareengine.v1.VmwareEngine.ListNodeTypes] +message ListNodeTypesResponse { + // A list of Node Types. + repeated NodeType node_types = 1; + + // A token, which can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; + + // Locations that could not be reached when making an aggregated query using + // wildcards. + repeated string unreachable = 3; +} + +// Request message for [VmwareEngine.GetNodeType][google.cloud.vmwareengine.v1.VmwareEngine.GetNodeType] +message GetNodeTypeRequest { + // Required. The resource name of the node type to retrieve. + // Resource names are schemeless URIs that follow the conventions in + // https://cloud.google.com/apis/design/resource_names. + // For example: + // `projects/my-proj/locations/us-west1-a/nodeTypes/standard-72` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "vmwareengine.googleapis.com/NodeType" + } + ]; +} + +// Credentials for a private cloud. +message Credentials { + // Initial username. + string username = 1; + + // Initial password. + string password = 2; +} + +// Request message for [VmwareEngine.ShowNsxCredentials][google.cloud.vmwareengine.v1.VmwareEngine.ShowNsxCredentials] +message ShowNsxCredentialsRequest { + // Required. The resource name of the private cloud + // to be queried for credentials. + // Resource names are schemeless URIs that follow the conventions in + // https://cloud.google.com/apis/design/resource_names. + // For example: + // `projects/my-project/locations/us-west1-a/privateClouds/my-cloud` + string private_cloud = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "vmwareengine.googleapis.com/PrivateCloud" + } + ]; +} + +// Request message for [VmwareEngine.ShowVcenterCredentials][google.cloud.vmwareengine.v1.VmwareEngine.ShowVcenterCredentials] +message ShowVcenterCredentialsRequest { + // Required. The resource name of the private cloud + // to be queried for credentials. + // Resource names are schemeless URIs that follow the conventions in + // https://cloud.google.com/apis/design/resource_names. + // For example: + // `projects/my-project/locations/us-west1-a/privateClouds/my-cloud` + string private_cloud = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "vmwareengine.googleapis.com/PrivateCloud" + } + ]; +} + +// Request message for [VmwareEngine.ResetNsxCredentials][google.cloud.vmwareengine.v1.VmwareEngine.ResetNsxCredentials] +message ResetNsxCredentialsRequest { + // Required. The resource name of the private cloud + // to reset credentials for. + // Resource names are schemeless URIs that follow the conventions in + // https://cloud.google.com/apis/design/resource_names. + // For example: + // `projects/my-project/locations/us-west1-a/privateClouds/my-cloud` + string private_cloud = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "vmwareengine.googleapis.com/PrivateCloud" + } + ]; + + // Optional. A request ID to identify requests. Specify a unique request ID + // so that if you must retry your request, the server will know to ignore + // the request if it has already been completed. The server guarantees that a + // request doesn't result in creation of duplicate commitments for at least 60 + // minutes. + // + // For example, consider a situation where you make an initial request and the + // request times out. If you make the request again with the same request + // ID, the server can check if original operation with the same request ID + // was received, and if so, will ignore the second request. This prevents + // clients from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// Request message for [VmwareEngine.ResetVcenterCredentials][google.cloud.vmwareengine.v1.VmwareEngine.ResetVcenterCredentials] +message ResetVcenterCredentialsRequest { + // Required. The resource name of the private cloud + // to reset credentials for. + // Resource names are schemeless URIs that follow the conventions in + // https://cloud.google.com/apis/design/resource_names. + // For example: + // `projects/my-project/locations/us-west1-a/privateClouds/my-cloud` + string private_cloud = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "vmwareengine.googleapis.com/PrivateCloud" + } + ]; + + // Optional. A request ID to identify requests. Specify a unique request ID + // so that if you must retry your request, the server will know to ignore + // the request if it has already been completed. The server guarantees that a + // request doesn't result in creation of duplicate commitments for at least 60 + // minutes. + // + // For example, consider a situation where you make an initial request and the + // request times out. If you make the request again with the same request + // ID, the server can check if original operation with the same request ID + // was received, and if so, will ignore the second request. This prevents + // clients from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for [VmwareEngine.ListHcxActivationKeys][google.cloud.vmwareengine.v1.VmwareEngine.ListHcxActivationKeys] +message ListHcxActivationKeysResponse { + // List of HCX activation keys. + repeated HcxActivationKey hcx_activation_keys = 1; + + // A token, which can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; + + // Locations that could not be reached when making an aggregated query using + // wildcards. + repeated string unreachable = 3; +} + +// HCX activation key. A default key is created during +// private cloud provisioning, but this behavior is subject to change +// and you should always verify active keys. +// Use [VmwareEngine.ListHcxActivationKeys][google.cloud.vmwareengine.v1.VmwareEngine.ListHcxActivationKeys] to retrieve existing keys +// and [VmwareEngine.CreateHcxActivationKey][google.cloud.vmwareengine.v1.VmwareEngine.CreateHcxActivationKey] to create new ones. +message HcxActivationKey { + option (google.api.resource) = { + type: "vmwareengine.googleapis.com/HcxActivationKey" + pattern: "projects/{project}/locations/{location}/privateClouds/{private_cloud}/hcxActivationKeys/{hcx_activation_key}" + }; + + // State of HCX activation key + enum State { + // Unspecified state. + STATE_UNSPECIFIED = 0; + + // State of a newly generated activation key. + AVAILABLE = 1; + + // State of key when it has been used to activate HCX appliance. + CONSUMED = 2; + + // State of key when it is being created. + CREATING = 3; + } + + // Output only. The resource name of this HcxActivationKey. + // Resource names are schemeless URIs that follow the conventions in + // https://cloud.google.com/apis/design/resource_names. + // For example: + // `projects/my-project/locations/us-west1/privateClouds/my-cloud/hcxActivationKeys/my-key` + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Creation time of HCX activation key. + google.protobuf.Timestamp create_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. State of HCX activation key. + State state = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. HCX activation key. + string activation_key = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. System-generated unique identifier for the resource. + string uid = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Request message for [VmwareEngine.ListHcxActivationKeys][google.cloud.vmwareengine.v1.VmwareEngine.ListHcxActivationKeys] +message ListHcxActivationKeysRequest { + // Required. The resource name of the private cloud + // to be queried for HCX activation keys. + // Resource names are schemeless URIs that follow the conventions in + // https://cloud.google.com/apis/design/resource_names. + // For example: + // `projects/my-project/locations/us-central1/privateClouds/my-cloud` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "vmwareengine.googleapis.com/PrivateCloud" + } + ]; + + // The maximum number of HCX activation keys to return in one page. + // The service may return fewer than this value. + // The maximum value is coerced to 1000. + // The default value of this field is 500. + int32 page_size = 2; + + // A page token, received from a previous `ListHcxActivationKeys` call. + // Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to + // `ListHcxActivationKeys` must match the call that provided the page + // token. + string page_token = 3; +} + +// Request message for [VmwareEngine.GetHcxActivationKeys][] +message GetHcxActivationKeyRequest { + // Required. The resource name of the HCX activation key to retrieve. + // Resource names are schemeless URIs that follow the conventions in + // https://cloud.google.com/apis/design/resource_names. + // For example: + // `projects/my-project/locations/us-west1/privateClouds/my-cloud/hcxActivationKeys/my-key` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "vmwareengine.googleapis.com/HcxActivationKey" + } + ]; +} + +// Request message for [VmwareEngine.CreateHcxActivationKey][google.cloud.vmwareengine.v1.VmwareEngine.CreateHcxActivationKey] +message CreateHcxActivationKeyRequest { + // Required. The resource name of the private cloud to create the key for. + // Resource names are schemeless URIs that follow the conventions in + // https://cloud.google.com/apis/design/resource_names. + // For example: + // `projects/my-project/locations/us-central1/privateClouds/my-cloud` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "vmwareengine.googleapis.com/PrivateCloud" + } + ]; + + // Required. The initial description of a new HCX activation key. When + // creating a new key, this field must be an empty object. + HcxActivationKey hcx_activation_key = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The user-provided identifier of the `HcxActivationKey` to be + // created. This identifier must be unique among `HcxActivationKey` resources + // within the parent and becomes the final token in the name URI. + // The identifier must meet the following requirements: + // + // * Only contains 1-63 alphanumeric characters and hyphens + // * Begins with an alphabetical character + // * Ends with a non-hyphen character + // * Not formatted as a UUID + // * Complies with [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034) + // (section 3.5) + string hcx_activation_key_id = 3 [(google.api.field_behavior) = REQUIRED]; + + // A request ID to identify requests. Specify a unique request ID + // so that if you must retry your request, the server will know to ignore + // the request if it has already been completed. The server guarantees that a + // request doesn't result in creation of duplicate commitments for at least 60 + // minutes. + // + // For example, consider a situation where you make an initial request and the + // request times out. If you make the request again with the same request ID, + // the server can check if original operation with the same request ID was + // received, and if so, will ignore the second request. This prevents clients + // from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 4; +} + +// Details about a HCX Cloud Manager appliance. +message Hcx { + // State of the appliance + enum State { + // Unspecified appliance state. This is the default value. + STATE_UNSPECIFIED = 0; + + // The appliance is operational and can be used. + ACTIVE = 1; + + // The appliance is being deployed. + CREATING = 2; + } + + // Internal IP address of the appliance. + string internal_ip = 2; + + // Version of the appliance. + string version = 4; + + // Output only. The state of the appliance. + State state = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Fully qualified domain name of the appliance. + string fqdn = 6; +} + +// Details about a NSX Manager appliance. +message Nsx { + // State of the appliance + enum State { + // Unspecified appliance state. This is the default value. + STATE_UNSPECIFIED = 0; + + // The appliance is operational and can be used. + ACTIVE = 1; + + // The appliance is being deployed. + CREATING = 2; + } + + // Internal IP address of the appliance. + string internal_ip = 2; + + // Version of the appliance. + string version = 4; + + // Output only. The state of the appliance. + State state = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Fully qualified domain name of the appliance. + string fqdn = 6; +} + +// Details about a vCenter Server management appliance. +message Vcenter { + // State of the appliance + enum State { + // Unspecified appliance state. This is the default value. + STATE_UNSPECIFIED = 0; + + // The appliance is operational and can be used. + ACTIVE = 1; + + // The appliance is being deployed. + CREATING = 2; + } + + // Internal IP address of the appliance. + string internal_ip = 2; + + // Version of the appliance. + string version = 4; + + // Output only. The state of the appliance. + State state = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Fully qualified domain name of the appliance. + string fqdn = 6; +} + +// Represents a network policy resource. Network policies are regional +// resources. You can use a network policy to enable or disable internet access +// and external IP access. Network policies are associated with a VMware Engine +// network, which might span across regions. For a given region, a network +// policy applies to all private clouds in the VMware Engine network associated +// with the policy. +message NetworkPolicy { + option (google.api.resource) = { + type: "vmwareengine.googleapis.com/NetworkPolicy" + pattern: "projects/{project}/locations/{location}/networkPolicies/{network_policy}" + }; + + // Represents a network service that is managed by a `NetworkPolicy` resource. + // A network service provides a way to control an aspect of external access to + // VMware workloads. For example, whether the VMware workloads in the + // private clouds governed by a network policy can access or be accessed from + // the internet. + message NetworkService { + // Enum State defines possible states of a network policy controlled + // service. + enum State { + // Unspecified service state. This is the default value. + STATE_UNSPECIFIED = 0; + + // Service is not provisioned. + UNPROVISIONED = 1; + + // Service is in the process of being provisioned/deprovisioned. + RECONCILING = 2; + + // Service is active. + ACTIVE = 3; + } + + // True if the service is enabled; false otherwise. + bool enabled = 1; + + // Output only. State of the service. New values may be added to this enum + // when appropriate. + State state = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // Output only. The resource name of this network policy. + // Resource names are schemeless URIs that follow the conventions in + // https://cloud.google.com/apis/design/resource_names. + // For example: + // `projects/my-project/locations/us-central1/networkPolicies/my-network-policy` + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Creation time of this resource. + google.protobuf.Timestamp create_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Last update time of this resource. + google.protobuf.Timestamp update_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Network service that allows VMware workloads to access the internet. + NetworkService internet_access = 6; + + // Network service that allows External IP addresses to be assigned to VMware + // workloads. This service can only be enabled when `internet_access` is also + // enabled. + NetworkService external_ip = 7; + + // Required. IP address range in CIDR notation used to create internet access + // and external IP access. An RFC 1918 CIDR block, with a "/26" prefix, is + // required. The range cannot overlap with any prefixes either in the consumer + // VPC network or in use by the private clouds attached to that VPC network. + string edge_services_cidr = 9 [(google.api.field_behavior) = REQUIRED]; + + // Output only. System-generated unique identifier for the resource. + string uid = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. The relative resource name of the VMware Engine network. + // Specify the name in the following form: + // `projects/{project}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}` + // where `{project}` can either be a project number or a project ID. + string vmware_engine_network = 12 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "vmwareengine.googleapis.com/VmwareEngineNetwork" + } + ]; + + // Optional. User-provided description for this network policy. + string description = 13 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The canonical name of the VMware Engine network in the form: + // `projects/{project_number}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}` + string vmware_engine_network_canonical = 14 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "vmwareengine.googleapis.com/VmwareEngineNetwork" + } + ]; +} + +// Request message for [VmwareEngine.ListNetworkPolicies][google.cloud.vmwareengine.v1.VmwareEngine.ListNetworkPolicies] +message ListNetworkPoliciesRequest { + // Required. The resource name of the location (region) to query for + // network policies. Resource names are schemeless URIs that follow the + // conventions in https://cloud.google.com/apis/design/resource_names. For + // example: `projects/my-project/locations/us-central1` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "vmwareengine.googleapis.com/NetworkPolicy" + } + ]; + + // The maximum number of network policies to return in one page. + // The service may return fewer than this value. + // The maximum value is coerced to 1000. + // The default value of this field is 500. + int32 page_size = 2; + + // A page token, received from a previous `ListNetworkPolicies` call. + // Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to + // `ListNetworkPolicies` must match the call that provided the page + // token. + string page_token = 3; + + // A filter expression that matches resources returned in the response. + // The expression must specify the field name, a comparison + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The comparison operator + // must be `=`, `!=`, `>`, or `<`. + // + // For example, if you are filtering a list of network policies, you can + // exclude the ones named `example-policy` by specifying + // `name != "example-policy"`. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (name = "example-policy") + // (createTime > "2021-04-12T08:15:10.40Z") + // ``` + // + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (name = "example-policy-1") AND + // (createTime > "2021-04-12T08:15:10.40Z") OR + // (name = "example-policy-2") + // ``` + string filter = 4; + + // Sorts list results by a certain order. By default, returned results + // are ordered by `name` in ascending order. + // You can also sort results in descending order based on the `name` value + // using `orderBy="name desc"`. + // Currently, only ordering by `name` is supported. + string order_by = 5; +} + +// Response message for [VmwareEngine.ListNetworkPolicies][google.cloud.vmwareengine.v1.VmwareEngine.ListNetworkPolicies] +message ListNetworkPoliciesResponse { + // A list of network policies. + repeated NetworkPolicy network_policies = 1; + + // A token, which can be send as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; + + // Locations that could not be reached when making an aggregated query using + // wildcards. + repeated string unreachable = 3; +} + +// Request message for [VmwareEngine.GetNetworkPolicy][google.cloud.vmwareengine.v1.VmwareEngine.GetNetworkPolicy] +message GetNetworkPolicyRequest { + // Required. The resource name of the network policy to retrieve. + // Resource names are schemeless URIs that follow the conventions in + // https://cloud.google.com/apis/design/resource_names. + // For example: + // `projects/my-project/locations/us-central1/networkPolicies/my-network-policy` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "vmwareengine.googleapis.com/NetworkPolicy" + } + ]; +} + +// Request message for [VmwareEngine.UpdateNetworkPolicy][google.cloud.vmwareengine.v1.VmwareEngine.UpdateNetworkPolicy] +message UpdateNetworkPolicyRequest { + // Required. Network policy description. + NetworkPolicy network_policy = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Field mask is used to specify the fields to be overwritten in the + // `NetworkPolicy` resource by the update. + // The fields specified in the `update_mask` are relative to the resource, not + // the full request. A field will be overwritten if it is in the mask. If the + // user does not provide a mask then all fields will be overwritten. + google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. A request ID to identify requests. Specify a unique request ID + // so that if you must retry your request, the server will know to ignore + // the request if it has already been completed. The server guarantees that a + // request doesn't result in creation of duplicate commitments for at least 60 + // minutes. + // + // For example, consider a situation where you make an initial request and the + // request times out. If you make the request again with the same request + // ID, the server can check if original operation with the same request ID + // was received, and if so, will ignore the second request. This prevents + // clients from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Request message for [VmwareEngine.CreateNetworkPolicy][google.cloud.vmwareengine.v1.VmwareEngine.CreateNetworkPolicy] +message CreateNetworkPolicyRequest { + // Required. The resource name of the location (region) + // to create the new network policy in. + // Resource names are schemeless URIs that follow the conventions in + // https://cloud.google.com/apis/design/resource_names. + // For example: + // `projects/my-project/locations/us-central1` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "vmwareengine.googleapis.com/NetworkPolicy" + } + ]; + + // Required. The user-provided identifier of the network policy to be created. + // This identifier must be unique within parent + // `projects/{my-project}/locations/{us-central1}/networkPolicies` and becomes + // the final token in the name URI. + // The identifier must meet the following requirements: + // + // * Only contains 1-63 alphanumeric characters and hyphens + // * Begins with an alphabetical character + // * Ends with a non-hyphen character + // * Not formatted as a UUID + // * Complies with [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034) + // (section 3.5) + string network_policy_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The network policy configuration to use in the request. + NetworkPolicy network_policy = 3 [(google.api.field_behavior) = REQUIRED]; + + // Optional. A request ID to identify requests. Specify a unique request ID + // so that if you must retry your request, the server will know to ignore + // the request if it has already been completed. The server guarantees that a + // request doesn't result in creation of duplicate commitments for at least 60 + // minutes. + // + // For example, consider a situation where you make an initial request and the + // request times out. If you make the request again with the same request + // ID, the server can check if original operation with the same request ID + // was received, and if so, will ignore the second request. This prevents + // clients from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 4 [(google.api.field_behavior) = OPTIONAL]; +} + +// Request message for [VmwareEngine.DeleteNetworkPolicy][google.cloud.vmwareengine.v1.VmwareEngine.DeleteNetworkPolicy] +message DeleteNetworkPolicyRequest { + // Required. The resource name of the network policy to delete. + // Resource names are schemeless URIs that follow the conventions in + // https://cloud.google.com/apis/design/resource_names. + // For example: + // `projects/my-project/locations/us-central1/networkPolicies/my-network-policy` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "vmwareengine.googleapis.com/NetworkPolicy" + } + ]; + + // Optional. A request ID to identify requests. Specify a unique request ID + // so that if you must retry your request, the server will know to ignore + // the request if it has already been completed. The server guarantees that a + // request doesn't result in creation of duplicate commitments for at least 60 + // minutes. + // + // For example, consider a situation where you make an initial request and the + // request times out. If you make the request again with the same request + // ID, the server can check if original operation with the same request ID + // was received, and if so, will ignore the second request. This prevents + // clients from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// VMware Engine network resource that provides connectivity for VMware Engine +// private clouds. +message VmwareEngineNetwork { + option (google.api.resource) = { + type: "vmwareengine.googleapis.com/VmwareEngineNetwork" + pattern: "projects/{project}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network}" + }; + + // Represents a VMware Engine VPC network that is managed by a + // VMware Engine network resource. + message VpcNetwork { + // Enum Type defines possible types of a VMware Engine network controlled + // service. + enum Type { + // The default value. This value should never be used. + TYPE_UNSPECIFIED = 0; + + // VPC network that will be peered with a consumer VPC network or the + // intranet VPC of another VMware Engine network. Access a private cloud + // through Compute Engine VMs on a peered VPC network or an on-premises + // resource connected to a peered consumer VPC network. + INTRANET = 1; + + // VPC network used for internet access to and from a private cloud. + INTERNET = 2; + + // VPC network used for access to Google Cloud services like + // Cloud Storage. + GOOGLE_CLOUD = 3; + } + + // Output only. Type of VPC network (INTRANET, INTERNET, or + // GOOGLE_CLOUD) + Type type = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The relative resource name of the service VPC network this + // VMware Engine network is attached to. For example: + // `projects/123123/global/networks/my-network` + string network = 2 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "compute.googleapis.com/Network" + } + ]; + } + + // Enum State defines possible states of VMware Engine network. + enum State { + // The default value. This value is used if the state is omitted. + STATE_UNSPECIFIED = 0; + + // The VMware Engine network is being created. + CREATING = 1; + + // The VMware Engine network is ready. + ACTIVE = 2; + + // The VMware Engine network is being updated. + UPDATING = 3; + + // The VMware Engine network is being deleted. + DELETING = 4; + } + + // Enum Type defines possible types of VMware Engine network. + enum Type { + // The default value. This value should never be used. + TYPE_UNSPECIFIED = 0; + + // Network type used by private clouds created in projects without a network + // of type `STANDARD`. This network type is no longer used for new VMware + // Engine private cloud deployments. + LEGACY = 1; + } + + // Output only. The resource name of the VMware Engine network. + // Resource names are schemeless URIs that follow the conventions in + // https://cloud.google.com/apis/design/resource_names. + // For example: + // `projects/my-project/locations/global/vmwareEngineNetworks/my-network` + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Creation time of this resource. + google.protobuf.Timestamp create_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Last update time of this resource. + google.protobuf.Timestamp update_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // User-provided description for this VMware Engine network. + string description = 5; + + // Output only. VMware Engine service VPC networks that provide connectivity + // from a private cloud to customer projects, the internet, and other Google + // Cloud services. + repeated VpcNetwork vpc_networks = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. State of the VMware Engine network. + State state = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. VMware Engine network type. + Type type = 8 [(google.api.field_behavior) = REQUIRED]; + + // Output only. System-generated unique identifier for the resource. + string uid = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Checksum that may be sent on update and delete requests to ensure that the + // user-provided value is up to date before the server processes a request. + // The server computes checksums based on the value of other fields in the + // request. + string etag = 10; +} + +// Request message for [VmwareEngine.CreateVmwareEngineNetwork][google.cloud.vmwareengine.v1.VmwareEngine.CreateVmwareEngineNetwork] +message CreateVmwareEngineNetworkRequest { + // Required. The resource name of the location to create the new VMware Engine + // network in. A VMware Engine network of type + // `LEGACY` is a regional resource, and a VMware + // Engine network of type `STANDARD` is a global resource. + // Resource names are schemeless URIs that follow the conventions in + // https://cloud.google.com/apis/design/resource_names. For example: + // `projects/my-project/locations/global` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "vmwareengine.googleapis.com/VmwareEngineNetwork" + } + ]; + + // Required. The user-provided identifier of the new VMware Engine network. + // This identifier must be unique among VMware Engine network resources + // within the parent and becomes the final token in the name URI. The + // identifier must meet the following requirements: + // + // * For networks of type LEGACY, adheres to the format: + // `{region-id}-default`. Replace `{region-id}` with the region where you want + // to create the VMware Engine network. For example, "us-west1-default". + // * Only contains 1-63 alphanumeric characters and hyphens + // * Begins with an alphabetical character + // * Ends with a non-hyphen character + // * Not formatted as a UUID + // * Complies with [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034) + // (section 3.5) + string vmware_engine_network_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The initial description of the new VMware Engine network. + VmwareEngineNetwork vmware_engine_network = 3 [(google.api.field_behavior) = REQUIRED]; + + // Optional. A request ID to identify requests. Specify a unique request ID + // so that if you must retry your request, the server will know to ignore + // the request if it has already been completed. The server guarantees that a + // request doesn't result in creation of duplicate commitments for at least 60 + // minutes. + // + // For example, consider a situation where you make an initial request and the + // request times out. If you make the request again with the same request + // ID, the server can check if original operation with the same request ID + // was received, and if so, will ignore the second request. This prevents + // clients from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 4 [(google.api.field_behavior) = OPTIONAL]; +} + +// Request message for [VmwareEngine.UpdateVmwareEngineNetwork][google.cloud.vmwareengine.v1.VmwareEngine.UpdateVmwareEngineNetwork] +message UpdateVmwareEngineNetworkRequest { + // Required. VMware Engine network description. + VmwareEngineNetwork vmware_engine_network = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Field mask is used to specify the fields to be overwritten in the + // VMware Engine network resource by the update. + // The fields specified in the `update_mask` are relative to the resource, not + // the full request. A field will be overwritten if it is in the mask. If the + // user does not provide a mask then all fields will be overwritten. Only the + // following fields can be updated: `description`. + google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. A request ID to identify requests. Specify a unique request ID + // so that if you must retry your request, the server will know to ignore + // the request if it has already been completed. The server guarantees that a + // request doesn't result in creation of duplicate commitments for at least 60 + // minutes. + // + // For example, consider a situation where you make an initial request and the + // request times out. If you make the request again with the same request + // ID, the server can check if original operation with the same request ID + // was received, and if so, will ignore the second request. This prevents + // clients from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Request message for [VmwareEngine.DeleteVmwareEngineNetwork][google.cloud.vmwareengine.v1.VmwareEngine.DeleteVmwareEngineNetwork] +message DeleteVmwareEngineNetworkRequest { + // Required. The resource name of the VMware Engine network to be deleted. + // Resource names are schemeless URIs that follow the conventions in + // https://cloud.google.com/apis/design/resource_names. + // For example: + // `projects/my-project/locations/global/vmwareEngineNetworks/my-network` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "vmwareengine.googleapis.com/VmwareEngineNetwork" + } + ]; + + // Optional. A request ID to identify requests. Specify a unique request ID + // so that if you must retry your request, the server will know to ignore + // the request if it has already been completed. The server guarantees that a + // request doesn't result in creation of duplicate commitments for at least 60 + // minutes. + // + // For example, consider a situation where you make an initial request and the + // request times out. If you make the request again with the same request + // ID, the server can check if original operation with the same request ID + // was received, and if so, will ignore the second request. This prevents + // clients from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Checksum used to ensure that the user-provided value is up to date before + // the server processes the request. The server compares provided checksum + // with the current checksum of the resource. If the user-provided value is + // out of date, this request returns an `ABORTED` error. + string etag = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Request message for [VmwareEngine.GetVmwareEngineNetwork][google.cloud.vmwareengine.v1.VmwareEngine.GetVmwareEngineNetwork] +message GetVmwareEngineNetworkRequest { + // Required. The resource name of the VMware Engine network to retrieve. + // Resource names are schemeless URIs that follow the conventions in + // https://cloud.google.com/apis/design/resource_names. + // For example: + // `projects/my-project/locations/global/vmwareEngineNetworks/my-network` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "vmwareengine.googleapis.com/VmwareEngineNetwork" + } + ]; +} + +// Request message for [VmwareEngine.ListVmwareEngineNetworks][google.cloud.vmwareengine.v1.VmwareEngine.ListVmwareEngineNetworks] +message ListVmwareEngineNetworksRequest { + // Required. The resource name of the location to query for + // VMware Engine networks. Resource names are schemeless URIs that follow the + // conventions in https://cloud.google.com/apis/design/resource_names. For + // example: `projects/my-project/locations/global` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // The maximum number of results to return in one page. + // The maximum value is coerced to 1000. + // The default value of this field is 500. + int32 page_size = 2; + + // A page token, received from a previous `ListVmwareEngineNetworks` call. + // Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to + // `ListVmwareEngineNetworks` must match the call that provided the page + // token. + string page_token = 3; + + // A filter expression that matches resources returned in the response. + // The expression must specify the field name, a comparison + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The comparison operator + // must be `=`, `!=`, `>`, or `<`. + // + // For example, if you are filtering a list of network peerings, you can + // exclude the ones named `example-network` by specifying + // `name != "example-network"`. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (name = "example-network") + // (createTime > "2021-04-12T08:15:10.40Z") + // ``` + // + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (name = "example-network-1") AND + // (createTime > "2021-04-12T08:15:10.40Z") OR + // (name = "example-network-2") + // ``` + string filter = 4; + + // Sorts list results by a certain order. By default, returned results + // are ordered by `name` in ascending order. + // You can also sort results in descending order based on the `name` value + // using `orderBy="name desc"`. + // Currently, only ordering by `name` is supported. + string order_by = 5; +} + +// Response message for [VmwareEngine.ListVmwareEngineNetworks][google.cloud.vmwareengine.v1.VmwareEngine.ListVmwareEngineNetworks] +message ListVmwareEngineNetworksResponse { + // A list of VMware Engine networks. + repeated VmwareEngineNetwork vmware_engine_networks = 1; + + // A token, which can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; + + // Unreachable resources. + repeated string unreachable = 3; +} diff --git a/java-vpcaccess/google-cloud-vpcaccess-bom/pom.xml b/java-vpcaccess/google-cloud-vpcaccess-bom/pom.xml index 5e8781968ea3..b14aa9a3be6c 100644 --- a/java-vpcaccess/google-cloud-vpcaccess-bom/pom.xml +++ b/java-vpcaccess/google-cloud-vpcaccess-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-vpcaccess/pom.xml b/java-vpcaccess/pom.xml index cb27789c062a..c4b85e25f86e 100644 --- a/java-vpcaccess/pom.xml +++ b/java-vpcaccess/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-webrisk/google-cloud-webrisk-bom/pom.xml b/java-webrisk/google-cloud-webrisk-bom/pom.xml index 41be2f6a745d..47e4b3b22fff 100644 --- a/java-webrisk/google-cloud-webrisk-bom/pom.xml +++ b/java-webrisk/google-cloud-webrisk-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-webrisk/pom.xml b/java-webrisk/pom.xml index 3db85f65b0ea..2790c816e826 100644 --- a/java-webrisk/pom.xml +++ b/java-webrisk/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-websecurityscanner/google-cloud-websecurityscanner-bom/pom.xml b/java-websecurityscanner/google-cloud-websecurityscanner-bom/pom.xml index 876105cef143..7e92166829b7 100644 --- a/java-websecurityscanner/google-cloud-websecurityscanner-bom/pom.xml +++ b/java-websecurityscanner/google-cloud-websecurityscanner-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-websecurityscanner/pom.xml b/java-websecurityscanner/pom.xml index 8720adebe4eb..fc5c7bdfb8e1 100644 --- a/java-websecurityscanner/pom.xml +++ b/java-websecurityscanner/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-workflow-executions/google-cloud-workflow-executions-bom/pom.xml b/java-workflow-executions/google-cloud-workflow-executions-bom/pom.xml index 4a75e383ee07..f384a2d3b022 100644 --- a/java-workflow-executions/google-cloud-workflow-executions-bom/pom.xml +++ b/java-workflow-executions/google-cloud-workflow-executions-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-workflow-executions/pom.xml b/java-workflow-executions/pom.xml index 66a56a6dbd54..f3affdfa1c00 100644 --- a/java-workflow-executions/pom.xml +++ b/java-workflow-executions/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-workflows/google-cloud-workflows-bom/pom.xml b/java-workflows/google-cloud-workflows-bom/pom.xml index 85cfb7e8376f..2648a9f9f6a7 100644 --- a/java-workflows/google-cloud-workflows-bom/pom.xml +++ b/java-workflows/google-cloud-workflows-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-workflows/pom.xml b/java-workflows/pom.xml index e3e1fd65e16a..c986f58dc451 100644 --- a/java-workflows/pom.xml +++ b/java-workflows/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/pom.xml b/pom.xml index 07cd0726f83b..e02bac49f476 100644 --- a/pom.xml +++ b/pom.xml @@ -149,6 +149,7 @@ java-video-transcoder java-vision java-vmmigration + java-vmwareengine java-vpcaccess java-webrisk java-websecurityscanner diff --git a/versions.txt b/versions.txt index 1389fc709b18..c4fcabcd9fd7 100644 --- a/versions.txt +++ b/versions.txt @@ -587,3 +587,6 @@ google-cloud-dns:2.4.0:2.5.0-SNAPSHOT google-maps-routing:0.0.0:0.0.1-SNAPSHOT proto-google-maps-routing-v2:0.0.0:0.0.1-SNAPSHOT grpc-google-maps-routing-v2:0.0.0:0.0.1-SNAPSHOT +google-cloud-vmwareengine:0.0.0:0.0.1-SNAPSHOT +proto-google-cloud-vmwareengine-v1:0.0.0:0.0.1-SNAPSHOT +grpc-google-cloud-vmwareengine-v1:0.0.0:0.0.1-SNAPSHOT From 0bb4c442836a7f4b945d27120f0cdd4e66b39715 Mon Sep 17 00:00:00 2001 From: Lawrence Qiu Date: Tue, 29 Nov 2022 03:22:28 +0000 Subject: [PATCH 2/3] chore: Regenerate vmwareengine module --- java-accessapproval/google-cloud-accessapproval-bom/pom.xml | 2 +- java-accessapproval/pom.xml | 2 +- .../google-identity-accesscontextmanager-bom/pom.xml | 2 +- java-accesscontextmanager/pom.xml | 2 +- java-aiplatform/google-cloud-aiplatform-bom/pom.xml | 2 +- java-aiplatform/pom.xml | 2 +- java-analytics-admin/google-analytics-admin-bom/pom.xml | 2 +- java-analytics-admin/pom.xml | 2 +- java-analytics-data/google-analytics-data-bom/pom.xml | 2 +- java-analytics-data/pom.xml | 2 +- java-analyticshub/google-cloud-analyticshub-bom/pom.xml | 2 +- java-analyticshub/pom.xml | 2 +- java-api-gateway/google-cloud-api-gateway-bom/pom.xml | 2 +- java-api-gateway/pom.xml | 2 +- java-apigee-connect/google-cloud-apigee-connect-bom/pom.xml | 2 +- java-apigee-connect/pom.xml | 2 +- java-apigee-registry/google-cloud-apigee-registry-bom/pom.xml | 2 +- java-apigee-registry/pom.xml | 2 +- java-apikeys/google-cloud-apikeys-bom/pom.xml | 2 +- java-apikeys/pom.xml | 2 +- java-appengine-admin/google-cloud-appengine-admin-bom/pom.xml | 2 +- java-appengine-admin/pom.xml | 2 +- java-area120-tables/google-area120-tables-bom/pom.xml | 2 +- java-area120-tables/pom.xml | 2 +- .../google-cloud-artifact-registry-bom/pom.xml | 2 +- java-artifact-registry/pom.xml | 2 +- java-asset/google-cloud-asset-bom/pom.xml | 2 +- java-asset/pom.xml | 2 +- .../google-cloud-assured-workloads-bom/pom.xml | 2 +- java-assured-workloads/pom.xml | 2 +- java-automl/google-cloud-automl-bom/pom.xml | 2 +- java-automl/pom.xml | 2 +- .../google-cloud-bare-metal-solution-bom/pom.xml | 2 +- java-bare-metal-solution/pom.xml | 2 +- java-batch/google-cloud-batch-bom/pom.xml | 2 +- java-batch/pom.xml | 2 +- .../google-cloud-beyondcorp-appconnections-bom/pom.xml | 2 +- java-beyondcorp-appconnections/pom.xml | 2 +- .../google-cloud-beyondcorp-appconnectors-bom/pom.xml | 2 +- java-beyondcorp-appconnectors/pom.xml | 2 +- .../google-cloud-beyondcorp-appgateways-bom/pom.xml | 2 +- java-beyondcorp-appgateways/pom.xml | 2 +- .../google-cloud-beyondcorp-clientconnectorservices-bom/pom.xml | 2 +- java-beyondcorp-clientconnectorservices/pom.xml | 2 +- .../google-cloud-beyondcorp-clientgateways-bom/pom.xml | 2 +- java-beyondcorp-clientgateways/pom.xml | 2 +- .../google-cloud-bigquery-data-exchange-bom/pom.xml | 2 +- java-bigquery-data-exchange/pom.xml | 2 +- .../google-cloud-bigqueryconnection-bom/pom.xml | 2 +- java-bigqueryconnection/pom.xml | 2 +- .../google-cloud-bigquerydatapolicy-bom/pom.xml | 2 +- java-bigquerydatapolicy/pom.xml | 2 +- .../google-cloud-bigquerydatatransfer-bom/pom.xml | 2 +- java-bigquerydatatransfer/pom.xml | 2 +- .../google-cloud-bigquerymigration-bom/pom.xml | 2 +- java-bigquerymigration/pom.xml | 2 +- .../google-cloud-bigqueryreservation-bom/pom.xml | 2 +- java-bigqueryreservation/pom.xml | 2 +- java-billing/google-cloud-billing-bom/pom.xml | 2 +- java-billing/pom.xml | 2 +- java-billingbudgets/google-cloud-billingbudgets-bom/pom.xml | 2 +- java-billingbudgets/pom.xml | 2 +- .../google-cloud-binary-authorization-bom/pom.xml | 2 +- java-binary-authorization/pom.xml | 2 +- .../google-cloud-certificate-manager-bom/pom.xml | 2 +- java-certificate-manager/pom.xml | 2 +- java-channel/google-cloud-channel-bom/pom.xml | 2 +- java-channel/pom.xml | 2 +- java-cloudbuild/google-cloud-build-bom/pom.xml | 2 +- java-cloudbuild/pom.xml | 2 +- .../google-cloud-cloudcommerceconsumerprocurement-bom/pom.xml | 2 +- java-cloudcommerceconsumerprocurement/pom.xml | 2 +- java-compute/google-cloud-compute-bom/pom.xml | 2 +- java-compute/pom.xml | 2 +- .../google-cloud-contact-center-insights-bom/pom.xml | 2 +- java-contact-center-insights/pom.xml | 2 +- java-container/google-cloud-container-bom/pom.xml | 2 +- java-container/pom.xml | 2 +- .../google-cloud-containeranalysis-bom/pom.xml | 2 +- java-containeranalysis/pom.xml | 2 +- java-contentwarehouse/google-cloud-contentwarehouse-bom/pom.xml | 2 +- java-contentwarehouse/pom.xml | 2 +- java-data-fusion/google-cloud-data-fusion-bom/pom.xml | 2 +- java-data-fusion/pom.xml | 2 +- java-datacatalog/google-cloud-datacatalog-bom/pom.xml | 2 +- java-datacatalog/pom.xml | 2 +- java-dataflow/google-cloud-dataflow-bom/pom.xml | 2 +- java-dataflow/pom.xml | 2 +- java-dataform/google-cloud-dataform-bom/pom.xml | 2 +- java-dataform/pom.xml | 2 +- java-datalabeling/google-cloud-datalabeling-bom/pom.xml | 2 +- java-datalabeling/pom.xml | 2 +- java-dataplex/google-cloud-dataplex-bom/pom.xml | 2 +- java-dataplex/pom.xml | 2 +- .../google-cloud-dataproc-metastore-bom/pom.xml | 2 +- java-dataproc-metastore/pom.xml | 2 +- java-dataproc/google-cloud-dataproc-bom/pom.xml | 2 +- java-dataproc/pom.xml | 2 +- java-datastream/google-cloud-datastream-bom/pom.xml | 2 +- java-datastream/pom.xml | 2 +- java-debugger-client/google-cloud-debugger-client-bom/pom.xml | 2 +- java-debugger-client/pom.xml | 2 +- java-deploy/google-cloud-deploy-bom/pom.xml | 2 +- java-deploy/pom.xml | 2 +- java-dialogflow-cx/google-cloud-dialogflow-cx-bom/pom.xml | 2 +- java-dialogflow-cx/pom.xml | 2 +- java-dialogflow/google-cloud-dialogflow-bom/pom.xml | 2 +- java-dialogflow/pom.xml | 2 +- java-discoveryengine/google-cloud-discoveryengine-bom/pom.xml | 2 +- java-discoveryengine/pom.xml | 2 +- .../google-cloud-distributedcloudedge-bom/pom.xml | 2 +- java-distributedcloudedge/pom.xml | 2 +- java-dlp/google-cloud-dlp-bom/pom.xml | 2 +- java-dlp/pom.xml | 2 +- java-dms/google-cloud-dms-bom/pom.xml | 2 +- java-dms/pom.xml | 2 +- java-dns/pom.xml | 2 +- java-document-ai/google-cloud-document-ai-bom/pom.xml | 2 +- java-document-ai/pom.xml | 2 +- java-domains/google-cloud-domains-bom/pom.xml | 2 +- java-domains/pom.xml | 2 +- .../google-cloud-enterpriseknowledgegraph-bom/pom.xml | 2 +- java-enterpriseknowledgegraph/pom.xml | 2 +- java-errorreporting/google-cloud-errorreporting-bom/pom.xml | 2 +- java-errorreporting/pom.xml | 2 +- .../google-cloud-essential-contacts-bom/pom.xml | 2 +- java-essential-contacts/pom.xml | 2 +- .../google-cloud-eventarc-publishing-bom/pom.xml | 2 +- java-eventarc-publishing/pom.xml | 2 +- java-eventarc/google-cloud-eventarc-bom/pom.xml | 2 +- java-eventarc/pom.xml | 2 +- java-filestore/google-cloud-filestore-bom/pom.xml | 2 +- java-filestore/pom.xml | 2 +- java-functions/google-cloud-functions-bom/pom.xml | 2 +- java-functions/pom.xml | 2 +- java-game-servers/google-cloud-game-servers-bom/pom.xml | 2 +- java-game-servers/pom.xml | 2 +- java-gke-backup/google-cloud-gke-backup-bom/pom.xml | 2 +- java-gke-backup/pom.xml | 2 +- .../google-cloud-gke-connect-gateway-bom/pom.xml | 2 +- java-gke-connect-gateway/pom.xml | 2 +- java-gke-multi-cloud/google-cloud-gke-multi-cloud-bom/pom.xml | 2 +- java-gke-multi-cloud/pom.xml | 2 +- java-gkehub/google-cloud-gkehub-bom/pom.xml | 2 +- java-gkehub/pom.xml | 2 +- java-grafeas/pom.xml | 2 +- java-gsuite-addons/google-cloud-gsuite-addons-bom/pom.xml | 2 +- java-gsuite-addons/pom.xml | 2 +- java-iam-admin/google-iam-admin-bom/pom.xml | 2 +- java-iam-admin/pom.xml | 2 +- java-iamcredentials/google-cloud-iamcredentials-bom/pom.xml | 2 +- java-iamcredentials/pom.xml | 2 +- java-ids/google-cloud-ids-bom/pom.xml | 2 +- java-ids/pom.xml | 2 +- java-iot/google-cloud-iot-bom/pom.xml | 2 +- java-iot/pom.xml | 2 +- java-kms/google-cloud-kms-bom/pom.xml | 2 +- java-kms/pom.xml | 2 +- java-language/google-cloud-language-bom/pom.xml | 2 +- java-language/pom.xml | 2 +- java-life-sciences/google-cloud-life-sciences-bom/pom.xml | 2 +- java-life-sciences/pom.xml | 2 +- .../google-cloud-managed-identities-bom/pom.xml | 2 +- java-managed-identities/pom.xml | 2 +- java-maps-routing/google-maps-routing-bom/pom.xml | 2 +- java-maps-routing/pom.xml | 2 +- java-mediatranslation/google-cloud-mediatranslation-bom/pom.xml | 2 +- java-mediatranslation/pom.xml | 2 +- java-memcache/google-cloud-memcache-bom/pom.xml | 2 +- java-memcache/pom.xml | 2 +- .../google-cloud-monitoring-dashboard-bom/pom.xml | 2 +- java-monitoring-dashboards/pom.xml | 2 +- java-monitoring/google-cloud-monitoring-bom/pom.xml | 2 +- java-monitoring/pom.xml | 2 +- .../google-cloud-network-management-bom/pom.xml | 2 +- java-network-management/pom.xml | 2 +- java-network-security/google-cloud-network-security-bom/pom.xml | 2 +- java-network-security/pom.xml | 2 +- .../google-cloud-networkconnectivity-bom/pom.xml | 2 +- java-networkconnectivity/pom.xml | 2 +- java-notebooks/google-cloud-notebooks-bom/pom.xml | 2 +- java-notebooks/pom.xml | 2 +- java-notification/pom.xml | 2 +- java-optimization/google-cloud-optimization-bom/pom.xml | 2 +- java-optimization/pom.xml | 2 +- .../google-cloud-orchestration-airflow-bom/pom.xml | 2 +- java-orchestration-airflow/pom.xml | 2 +- java-orgpolicy/google-cloud-orgpolicy-bom/pom.xml | 2 +- java-orgpolicy/pom.xml | 2 +- java-os-config/google-cloud-os-config-bom/pom.xml | 2 +- java-os-config/pom.xml | 2 +- java-os-login/google-cloud-os-login-bom/pom.xml | 2 +- java-os-login/pom.xml | 2 +- .../google-cloud-phishingprotection-bom/pom.xml | 2 +- java-phishingprotection/pom.xml | 2 +- .../google-cloud-policy-troubleshooter-bom/pom.xml | 2 +- java-policy-troubleshooter/pom.xml | 2 +- java-private-catalog/google-cloud-private-catalog-bom/pom.xml | 2 +- java-private-catalog/pom.xml | 2 +- java-profiler/google-cloud-profiler-bom/pom.xml | 2 +- java-profiler/pom.xml | 2 +- java-publicca/google-cloud-publicca-bom/pom.xml | 2 +- java-publicca/pom.xml | 2 +- .../google-cloud-recaptchaenterprise-bom/pom.xml | 2 +- java-recaptchaenterprise/pom.xml | 2 +- .../google-cloud-recommendations-ai-bom/pom.xml | 2 +- java-recommendations-ai/pom.xml | 2 +- java-recommender/google-cloud-recommender-bom/pom.xml | 2 +- java-recommender/pom.xml | 2 +- java-redis/google-cloud-redis-bom/pom.xml | 2 +- java-redis/pom.xml | 2 +- .../google-cloud-resource-settings-bom/pom.xml | 2 +- java-resource-settings/pom.xml | 2 +- java-resourcemanager/google-cloud-resourcemanager-bom/pom.xml | 2 +- java-resourcemanager/pom.xml | 2 +- java-retail/google-cloud-retail-bom/pom.xml | 2 +- java-retail/pom.xml | 2 +- java-run/google-cloud-run-bom/pom.xml | 2 +- java-run/pom.xml | 2 +- java-scheduler/google-cloud-scheduler-bom/pom.xml | 2 +- java-scheduler/pom.xml | 2 +- java-secretmanager/google-cloud-secretmanager-bom/pom.xml | 2 +- java-secretmanager/pom.xml | 2 +- .../google-cloud-security-private-ca-bom/pom.xml | 2 +- java-security-private-ca/pom.xml | 2 +- .../google-cloud-securitycenter-settings-bom/pom.xml | 2 +- java-securitycenter-settings/pom.xml | 2 +- java-securitycenter/google-cloud-securitycenter-bom/pom.xml | 2 +- java-securitycenter/pom.xml | 2 +- java-service-control/google-cloud-service-control-bom/pom.xml | 2 +- java-service-control/pom.xml | 2 +- .../google-cloud-service-management-bom/pom.xml | 2 +- java-service-management/pom.xml | 2 +- java-service-usage/google-cloud-service-usage-bom/pom.xml | 2 +- java-service-usage/pom.xml | 2 +- java-servicedirectory/google-cloud-servicedirectory-bom/pom.xml | 2 +- java-servicedirectory/pom.xml | 2 +- java-shell/google-cloud-shell-bom/pom.xml | 2 +- java-shell/pom.xml | 2 +- java-speech/google-cloud-speech-bom/pom.xml | 2 +- java-speech/pom.xml | 2 +- java-storage-transfer/google-cloud-storage-transfer-bom/pom.xml | 2 +- java-storage-transfer/pom.xml | 2 +- java-talent/google-cloud-talent-bom/pom.xml | 2 +- java-talent/pom.xml | 2 +- java-tasks/google-cloud-tasks-bom/pom.xml | 2 +- java-tasks/pom.xml | 2 +- java-texttospeech/google-cloud-texttospeech-bom/pom.xml | 2 +- java-texttospeech/pom.xml | 2 +- java-tpu/google-cloud-tpu-bom/pom.xml | 2 +- java-tpu/pom.xml | 2 +- java-trace/google-cloud-trace-bom/pom.xml | 2 +- java-trace/pom.xml | 2 +- java-translate/google-cloud-translate-bom/pom.xml | 2 +- java-translate/pom.xml | 2 +- .../google-cloud-video-intelligence-bom/pom.xml | 2 +- java-video-intelligence/pom.xml | 2 +- java-video-live-stream/google-cloud-live-stream-bom/pom.xml | 2 +- java-video-live-stream/pom.xml | 2 +- java-video-stitcher/google-cloud-video-stitcher-bom/pom.xml | 2 +- java-video-stitcher/pom.xml | 2 +- java-video-transcoder/google-cloud-video-transcoder-bom/pom.xml | 2 +- java-video-transcoder/pom.xml | 2 +- java-vision/google-cloud-vision-bom/pom.xml | 2 +- java-vision/pom.xml | 2 +- java-vmmigration/google-cloud-vmmigration-bom/pom.xml | 2 +- java-vmmigration/pom.xml | 2 +- java-vmwareengine/google-cloud-vmwareengine-bom/pom.xml | 2 +- java-vmwareengine/pom.xml | 2 +- java-vpcaccess/google-cloud-vpcaccess-bom/pom.xml | 2 +- java-vpcaccess/pom.xml | 2 +- java-webrisk/google-cloud-webrisk-bom/pom.xml | 2 +- java-webrisk/pom.xml | 2 +- .../google-cloud-websecurityscanner-bom/pom.xml | 2 +- java-websecurityscanner/pom.xml | 2 +- .../google-cloud-workflow-executions-bom/pom.xml | 2 +- java-workflow-executions/pom.xml | 2 +- java-workflows/google-cloud-workflows-bom/pom.xml | 2 +- java-workflows/pom.xml | 2 +- 279 files changed, 279 insertions(+), 279 deletions(-) diff --git a/java-accessapproval/google-cloud-accessapproval-bom/pom.xml b/java-accessapproval/google-cloud-accessapproval-bom/pom.xml index f9aabeea6b0d..ca6874d595bb 100644 --- a/java-accessapproval/google-cloud-accessapproval-bom/pom.xml +++ b/java-accessapproval/google-cloud-accessapproval-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-accessapproval/pom.xml b/java-accessapproval/pom.xml index 08fff770ad25..3cc9496ae10d 100644 --- a/java-accessapproval/pom.xml +++ b/java-accessapproval/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-accesscontextmanager/google-identity-accesscontextmanager-bom/pom.xml b/java-accesscontextmanager/google-identity-accesscontextmanager-bom/pom.xml index c6c9811ab77b..9fecfd08a9d4 100644 --- a/java-accesscontextmanager/google-identity-accesscontextmanager-bom/pom.xml +++ b/java-accesscontextmanager/google-identity-accesscontextmanager-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-accesscontextmanager/pom.xml b/java-accesscontextmanager/pom.xml index 9bac1a07f1a4..e303bce4335f 100644 --- a/java-accesscontextmanager/pom.xml +++ b/java-accesscontextmanager/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-aiplatform/google-cloud-aiplatform-bom/pom.xml b/java-aiplatform/google-cloud-aiplatform-bom/pom.xml index 57a14a3af272..d12408879e87 100644 --- a/java-aiplatform/google-cloud-aiplatform-bom/pom.xml +++ b/java-aiplatform/google-cloud-aiplatform-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-aiplatform/pom.xml b/java-aiplatform/pom.xml index e5d51dd5bb8e..f8eebd4f4ca2 100644 --- a/java-aiplatform/pom.xml +++ b/java-aiplatform/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-analytics-admin/google-analytics-admin-bom/pom.xml b/java-analytics-admin/google-analytics-admin-bom/pom.xml index 3658cddf97f6..ff04ef554897 100644 --- a/java-analytics-admin/google-analytics-admin-bom/pom.xml +++ b/java-analytics-admin/google-analytics-admin-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-analytics-admin/pom.xml b/java-analytics-admin/pom.xml index a47260c35403..9c383e6f1d4f 100644 --- a/java-analytics-admin/pom.xml +++ b/java-analytics-admin/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-analytics-data/google-analytics-data-bom/pom.xml b/java-analytics-data/google-analytics-data-bom/pom.xml index 7224c7614c04..60b05cde0890 100644 --- a/java-analytics-data/google-analytics-data-bom/pom.xml +++ b/java-analytics-data/google-analytics-data-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-analytics-data/pom.xml b/java-analytics-data/pom.xml index dffc866bff1a..bdfbe15c7a48 100644 --- a/java-analytics-data/pom.xml +++ b/java-analytics-data/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-analyticshub/google-cloud-analyticshub-bom/pom.xml b/java-analyticshub/google-cloud-analyticshub-bom/pom.xml index 370ff2492aa6..0808ec8d8dcc 100644 --- a/java-analyticshub/google-cloud-analyticshub-bom/pom.xml +++ b/java-analyticshub/google-cloud-analyticshub-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-analyticshub/pom.xml b/java-analyticshub/pom.xml index 7ba82dacc28b..6e4fb41ba87a 100644 --- a/java-analyticshub/pom.xml +++ b/java-analyticshub/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-api-gateway/google-cloud-api-gateway-bom/pom.xml b/java-api-gateway/google-cloud-api-gateway-bom/pom.xml index ba1c5bbd981b..e6b0b1191101 100644 --- a/java-api-gateway/google-cloud-api-gateway-bom/pom.xml +++ b/java-api-gateway/google-cloud-api-gateway-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-api-gateway/pom.xml b/java-api-gateway/pom.xml index 762454a9b088..dd5857308d9d 100644 --- a/java-api-gateway/pom.xml +++ b/java-api-gateway/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-apigee-connect/google-cloud-apigee-connect-bom/pom.xml b/java-apigee-connect/google-cloud-apigee-connect-bom/pom.xml index 7022611e2f51..3c458a3ef5be 100644 --- a/java-apigee-connect/google-cloud-apigee-connect-bom/pom.xml +++ b/java-apigee-connect/google-cloud-apigee-connect-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-apigee-connect/pom.xml b/java-apigee-connect/pom.xml index fbd71d21daa6..99e16f60ef50 100644 --- a/java-apigee-connect/pom.xml +++ b/java-apigee-connect/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-apigee-registry/google-cloud-apigee-registry-bom/pom.xml b/java-apigee-registry/google-cloud-apigee-registry-bom/pom.xml index e1f88502b1ce..9bb7a4f2022e 100644 --- a/java-apigee-registry/google-cloud-apigee-registry-bom/pom.xml +++ b/java-apigee-registry/google-cloud-apigee-registry-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-apigee-registry/pom.xml b/java-apigee-registry/pom.xml index 11dc12d1d916..146cedad23d5 100644 --- a/java-apigee-registry/pom.xml +++ b/java-apigee-registry/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-apikeys/google-cloud-apikeys-bom/pom.xml b/java-apikeys/google-cloud-apikeys-bom/pom.xml index 4c01712e537f..c2ebf0114ad8 100644 --- a/java-apikeys/google-cloud-apikeys-bom/pom.xml +++ b/java-apikeys/google-cloud-apikeys-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-apikeys/pom.xml b/java-apikeys/pom.xml index d62cf11fc886..2865cdc906c5 100644 --- a/java-apikeys/pom.xml +++ b/java-apikeys/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-appengine-admin/google-cloud-appengine-admin-bom/pom.xml b/java-appengine-admin/google-cloud-appengine-admin-bom/pom.xml index 74fbb4ccbf68..e3bddec1e73b 100644 --- a/java-appengine-admin/google-cloud-appengine-admin-bom/pom.xml +++ b/java-appengine-admin/google-cloud-appengine-admin-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-appengine-admin/pom.xml b/java-appengine-admin/pom.xml index b86c3865c392..aa3e41ee6ffa 100644 --- a/java-appengine-admin/pom.xml +++ b/java-appengine-admin/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-area120-tables/google-area120-tables-bom/pom.xml b/java-area120-tables/google-area120-tables-bom/pom.xml index e848a367ecd0..2be3f40b2808 100644 --- a/java-area120-tables/google-area120-tables-bom/pom.xml +++ b/java-area120-tables/google-area120-tables-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-area120-tables/pom.xml b/java-area120-tables/pom.xml index 6dbae6f2cff2..f6485d73db1d 100644 --- a/java-area120-tables/pom.xml +++ b/java-area120-tables/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-artifact-registry/google-cloud-artifact-registry-bom/pom.xml b/java-artifact-registry/google-cloud-artifact-registry-bom/pom.xml index cf39900642ad..fca37819883b 100644 --- a/java-artifact-registry/google-cloud-artifact-registry-bom/pom.xml +++ b/java-artifact-registry/google-cloud-artifact-registry-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-artifact-registry/pom.xml b/java-artifact-registry/pom.xml index 50e2934a6cf3..047a1ad0232c 100644 --- a/java-artifact-registry/pom.xml +++ b/java-artifact-registry/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-asset/google-cloud-asset-bom/pom.xml b/java-asset/google-cloud-asset-bom/pom.xml index 858009032c05..73e2494dda26 100644 --- a/java-asset/google-cloud-asset-bom/pom.xml +++ b/java-asset/google-cloud-asset-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-asset/pom.xml b/java-asset/pom.xml index 84d27038a525..61760160fd2c 100644 --- a/java-asset/pom.xml +++ b/java-asset/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-assured-workloads/google-cloud-assured-workloads-bom/pom.xml b/java-assured-workloads/google-cloud-assured-workloads-bom/pom.xml index 3945f194fcae..463148e0e663 100644 --- a/java-assured-workloads/google-cloud-assured-workloads-bom/pom.xml +++ b/java-assured-workloads/google-cloud-assured-workloads-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-assured-workloads/pom.xml b/java-assured-workloads/pom.xml index 91a328f2a4ed..99acff5bb695 100644 --- a/java-assured-workloads/pom.xml +++ b/java-assured-workloads/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-automl/google-cloud-automl-bom/pom.xml b/java-automl/google-cloud-automl-bom/pom.xml index d60d2a7c65dd..9ca6dafcc258 100644 --- a/java-automl/google-cloud-automl-bom/pom.xml +++ b/java-automl/google-cloud-automl-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-automl/pom.xml b/java-automl/pom.xml index 17e1c4fd4d2b..6ff6e43e091f 100644 --- a/java-automl/pom.xml +++ b/java-automl/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-bare-metal-solution/google-cloud-bare-metal-solution-bom/pom.xml b/java-bare-metal-solution/google-cloud-bare-metal-solution-bom/pom.xml index e4b6381073b3..29f84d24bd25 100644 --- a/java-bare-metal-solution/google-cloud-bare-metal-solution-bom/pom.xml +++ b/java-bare-metal-solution/google-cloud-bare-metal-solution-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-bare-metal-solution/pom.xml b/java-bare-metal-solution/pom.xml index 2587405fc040..0a933aae65e7 100644 --- a/java-bare-metal-solution/pom.xml +++ b/java-bare-metal-solution/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-batch/google-cloud-batch-bom/pom.xml b/java-batch/google-cloud-batch-bom/pom.xml index bc4f5c1c5cca..fc38b864394b 100644 --- a/java-batch/google-cloud-batch-bom/pom.xml +++ b/java-batch/google-cloud-batch-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-batch/pom.xml b/java-batch/pom.xml index f2b8ef250ed6..450a2e0badad 100644 --- a/java-batch/pom.xml +++ b/java-batch/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-beyondcorp-appconnections/google-cloud-beyondcorp-appconnections-bom/pom.xml b/java-beyondcorp-appconnections/google-cloud-beyondcorp-appconnections-bom/pom.xml index d828b7993083..95245c7b693a 100644 --- a/java-beyondcorp-appconnections/google-cloud-beyondcorp-appconnections-bom/pom.xml +++ b/java-beyondcorp-appconnections/google-cloud-beyondcorp-appconnections-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-beyondcorp-appconnections/pom.xml b/java-beyondcorp-appconnections/pom.xml index 5898e520a2e0..59042fe3a574 100644 --- a/java-beyondcorp-appconnections/pom.xml +++ b/java-beyondcorp-appconnections/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-beyondcorp-appconnectors/google-cloud-beyondcorp-appconnectors-bom/pom.xml b/java-beyondcorp-appconnectors/google-cloud-beyondcorp-appconnectors-bom/pom.xml index db71da1d815c..0618453b6995 100644 --- a/java-beyondcorp-appconnectors/google-cloud-beyondcorp-appconnectors-bom/pom.xml +++ b/java-beyondcorp-appconnectors/google-cloud-beyondcorp-appconnectors-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-beyondcorp-appconnectors/pom.xml b/java-beyondcorp-appconnectors/pom.xml index 4702b78537d7..5bc1d66d03c0 100644 --- a/java-beyondcorp-appconnectors/pom.xml +++ b/java-beyondcorp-appconnectors/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-beyondcorp-appgateways/google-cloud-beyondcorp-appgateways-bom/pom.xml b/java-beyondcorp-appgateways/google-cloud-beyondcorp-appgateways-bom/pom.xml index 8cdff97ab9df..63a1499e1eaf 100644 --- a/java-beyondcorp-appgateways/google-cloud-beyondcorp-appgateways-bom/pom.xml +++ b/java-beyondcorp-appgateways/google-cloud-beyondcorp-appgateways-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-beyondcorp-appgateways/pom.xml b/java-beyondcorp-appgateways/pom.xml index 7d88b4b7023b..44a1d02a6592 100644 --- a/java-beyondcorp-appgateways/pom.xml +++ b/java-beyondcorp-appgateways/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-beyondcorp-clientconnectorservices/google-cloud-beyondcorp-clientconnectorservices-bom/pom.xml b/java-beyondcorp-clientconnectorservices/google-cloud-beyondcorp-clientconnectorservices-bom/pom.xml index b32d3fa047ff..7f87c1a8c0b6 100644 --- a/java-beyondcorp-clientconnectorservices/google-cloud-beyondcorp-clientconnectorservices-bom/pom.xml +++ b/java-beyondcorp-clientconnectorservices/google-cloud-beyondcorp-clientconnectorservices-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-beyondcorp-clientconnectorservices/pom.xml b/java-beyondcorp-clientconnectorservices/pom.xml index 91237424ff58..7435ccbd76c5 100644 --- a/java-beyondcorp-clientconnectorservices/pom.xml +++ b/java-beyondcorp-clientconnectorservices/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-beyondcorp-clientgateways/google-cloud-beyondcorp-clientgateways-bom/pom.xml b/java-beyondcorp-clientgateways/google-cloud-beyondcorp-clientgateways-bom/pom.xml index 2106685e61c3..5256cd1e976e 100644 --- a/java-beyondcorp-clientgateways/google-cloud-beyondcorp-clientgateways-bom/pom.xml +++ b/java-beyondcorp-clientgateways/google-cloud-beyondcorp-clientgateways-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-beyondcorp-clientgateways/pom.xml b/java-beyondcorp-clientgateways/pom.xml index acbeaf9b9a39..77e68365bb39 100644 --- a/java-beyondcorp-clientgateways/pom.xml +++ b/java-beyondcorp-clientgateways/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-bigquery-data-exchange/google-cloud-bigquery-data-exchange-bom/pom.xml b/java-bigquery-data-exchange/google-cloud-bigquery-data-exchange-bom/pom.xml index 19576e5c9d9d..8ec459e1457d 100644 --- a/java-bigquery-data-exchange/google-cloud-bigquery-data-exchange-bom/pom.xml +++ b/java-bigquery-data-exchange/google-cloud-bigquery-data-exchange-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-bigquery-data-exchange/pom.xml b/java-bigquery-data-exchange/pom.xml index 75493ead1e7f..a472a03516be 100644 --- a/java-bigquery-data-exchange/pom.xml +++ b/java-bigquery-data-exchange/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-bigqueryconnection/google-cloud-bigqueryconnection-bom/pom.xml b/java-bigqueryconnection/google-cloud-bigqueryconnection-bom/pom.xml index 11a59f8810fb..415d7b45268a 100644 --- a/java-bigqueryconnection/google-cloud-bigqueryconnection-bom/pom.xml +++ b/java-bigqueryconnection/google-cloud-bigqueryconnection-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-bigqueryconnection/pom.xml b/java-bigqueryconnection/pom.xml index 7405e73d232a..c7ead9c4877a 100644 --- a/java-bigqueryconnection/pom.xml +++ b/java-bigqueryconnection/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy-bom/pom.xml b/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy-bom/pom.xml index 1ce72935aeeb..8932666f92f9 100644 --- a/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy-bom/pom.xml +++ b/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-bigquerydatapolicy/pom.xml b/java-bigquerydatapolicy/pom.xml index 171ec0ca6ac8..47c70d8b3390 100644 --- a/java-bigquerydatapolicy/pom.xml +++ b/java-bigquerydatapolicy/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer-bom/pom.xml b/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer-bom/pom.xml index 44b8a80adcbc..071b68ee7f9e 100644 --- a/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer-bom/pom.xml +++ b/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-bigquerydatatransfer/pom.xml b/java-bigquerydatatransfer/pom.xml index ecf77834bf6a..d61238fe9766 100644 --- a/java-bigquerydatatransfer/pom.xml +++ b/java-bigquerydatatransfer/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-bigquerymigration/google-cloud-bigquerymigration-bom/pom.xml b/java-bigquerymigration/google-cloud-bigquerymigration-bom/pom.xml index ca8802564042..df62e8be0c2e 100644 --- a/java-bigquerymigration/google-cloud-bigquerymigration-bom/pom.xml +++ b/java-bigquerymigration/google-cloud-bigquerymigration-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-bigquerymigration/pom.xml b/java-bigquerymigration/pom.xml index fa2ee9f80c4b..0fc73824202e 100644 --- a/java-bigquerymigration/pom.xml +++ b/java-bigquerymigration/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-bigqueryreservation/google-cloud-bigqueryreservation-bom/pom.xml b/java-bigqueryreservation/google-cloud-bigqueryreservation-bom/pom.xml index 7c6bb602c6ca..b21ce7e5f29c 100644 --- a/java-bigqueryreservation/google-cloud-bigqueryreservation-bom/pom.xml +++ b/java-bigqueryreservation/google-cloud-bigqueryreservation-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-bigqueryreservation/pom.xml b/java-bigqueryreservation/pom.xml index 44c5c2cd52bf..3b6797edb6b2 100644 --- a/java-bigqueryreservation/pom.xml +++ b/java-bigqueryreservation/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-billing/google-cloud-billing-bom/pom.xml b/java-billing/google-cloud-billing-bom/pom.xml index 2608466fb61e..b034ad178386 100644 --- a/java-billing/google-cloud-billing-bom/pom.xml +++ b/java-billing/google-cloud-billing-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-billing/pom.xml b/java-billing/pom.xml index 6d09b030ba06..bc3dc8becb15 100644 --- a/java-billing/pom.xml +++ b/java-billing/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-billingbudgets/google-cloud-billingbudgets-bom/pom.xml b/java-billingbudgets/google-cloud-billingbudgets-bom/pom.xml index 7e410a691ae7..f3913f9ed84b 100644 --- a/java-billingbudgets/google-cloud-billingbudgets-bom/pom.xml +++ b/java-billingbudgets/google-cloud-billingbudgets-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-billingbudgets/pom.xml b/java-billingbudgets/pom.xml index 46cb918d82c4..f882b03e358d 100644 --- a/java-billingbudgets/pom.xml +++ b/java-billingbudgets/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-binary-authorization/google-cloud-binary-authorization-bom/pom.xml b/java-binary-authorization/google-cloud-binary-authorization-bom/pom.xml index 186b4f62b2a8..fc7a4d664fee 100644 --- a/java-binary-authorization/google-cloud-binary-authorization-bom/pom.xml +++ b/java-binary-authorization/google-cloud-binary-authorization-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-binary-authorization/pom.xml b/java-binary-authorization/pom.xml index ee4937490f40..424493f266b1 100644 --- a/java-binary-authorization/pom.xml +++ b/java-binary-authorization/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-certificate-manager/google-cloud-certificate-manager-bom/pom.xml b/java-certificate-manager/google-cloud-certificate-manager-bom/pom.xml index 67689d6238f9..f8988d6fd85c 100644 --- a/java-certificate-manager/google-cloud-certificate-manager-bom/pom.xml +++ b/java-certificate-manager/google-cloud-certificate-manager-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-certificate-manager/pom.xml b/java-certificate-manager/pom.xml index f52579553c1e..a78dbd36580d 100644 --- a/java-certificate-manager/pom.xml +++ b/java-certificate-manager/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-channel/google-cloud-channel-bom/pom.xml b/java-channel/google-cloud-channel-bom/pom.xml index d9ab63e9daa2..c9b52e53a69f 100644 --- a/java-channel/google-cloud-channel-bom/pom.xml +++ b/java-channel/google-cloud-channel-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-channel/pom.xml b/java-channel/pom.xml index 668ac94f7621..e897bb4e4143 100644 --- a/java-channel/pom.xml +++ b/java-channel/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-cloudbuild/google-cloud-build-bom/pom.xml b/java-cloudbuild/google-cloud-build-bom/pom.xml index b623098f4757..3a0192f54ba9 100644 --- a/java-cloudbuild/google-cloud-build-bom/pom.xml +++ b/java-cloudbuild/google-cloud-build-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-cloudbuild/pom.xml b/java-cloudbuild/pom.xml index a28c36e2b285..4a2f07520152 100644 --- a/java-cloudbuild/pom.xml +++ b/java-cloudbuild/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement-bom/pom.xml b/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement-bom/pom.xml index c9ae0076b281..1c58abdf557f 100644 --- a/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement-bom/pom.xml +++ b/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-cloudcommerceconsumerprocurement/pom.xml b/java-cloudcommerceconsumerprocurement/pom.xml index 2406c802c24a..a7a37708c2df 100644 --- a/java-cloudcommerceconsumerprocurement/pom.xml +++ b/java-cloudcommerceconsumerprocurement/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-compute/google-cloud-compute-bom/pom.xml b/java-compute/google-cloud-compute-bom/pom.xml index f2b335c53f05..1187ca1e13ec 100644 --- a/java-compute/google-cloud-compute-bom/pom.xml +++ b/java-compute/google-cloud-compute-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-compute/pom.xml b/java-compute/pom.xml index f45537fddb5e..4e776400cb2c 100644 --- a/java-compute/pom.xml +++ b/java-compute/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-contact-center-insights/google-cloud-contact-center-insights-bom/pom.xml b/java-contact-center-insights/google-cloud-contact-center-insights-bom/pom.xml index add4cd455bd8..0fd6b8b84795 100644 --- a/java-contact-center-insights/google-cloud-contact-center-insights-bom/pom.xml +++ b/java-contact-center-insights/google-cloud-contact-center-insights-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-contact-center-insights/pom.xml b/java-contact-center-insights/pom.xml index 94fb4f40e9ab..3ae6c30cfe33 100644 --- a/java-contact-center-insights/pom.xml +++ b/java-contact-center-insights/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-container/google-cloud-container-bom/pom.xml b/java-container/google-cloud-container-bom/pom.xml index 1b00d214a56a..75671a6e72b2 100644 --- a/java-container/google-cloud-container-bom/pom.xml +++ b/java-container/google-cloud-container-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-container/pom.xml b/java-container/pom.xml index ddc3c6ae0489..5179c7a66ed7 100644 --- a/java-container/pom.xml +++ b/java-container/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-containeranalysis/google-cloud-containeranalysis-bom/pom.xml b/java-containeranalysis/google-cloud-containeranalysis-bom/pom.xml index 0d0c141e92f1..b64b86b07c7b 100644 --- a/java-containeranalysis/google-cloud-containeranalysis-bom/pom.xml +++ b/java-containeranalysis/google-cloud-containeranalysis-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-containeranalysis/pom.xml b/java-containeranalysis/pom.xml index f87aa927c1ae..8fa17a3d1e8d 100644 --- a/java-containeranalysis/pom.xml +++ b/java-containeranalysis/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-contentwarehouse/google-cloud-contentwarehouse-bom/pom.xml b/java-contentwarehouse/google-cloud-contentwarehouse-bom/pom.xml index c554036119fc..1bebaa89e672 100644 --- a/java-contentwarehouse/google-cloud-contentwarehouse-bom/pom.xml +++ b/java-contentwarehouse/google-cloud-contentwarehouse-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-contentwarehouse/pom.xml b/java-contentwarehouse/pom.xml index 5adb4bf743bf..3dc7f1de7230 100644 --- a/java-contentwarehouse/pom.xml +++ b/java-contentwarehouse/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-data-fusion/google-cloud-data-fusion-bom/pom.xml b/java-data-fusion/google-cloud-data-fusion-bom/pom.xml index 7775e7896a26..af76f550e2d0 100644 --- a/java-data-fusion/google-cloud-data-fusion-bom/pom.xml +++ b/java-data-fusion/google-cloud-data-fusion-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-data-fusion/pom.xml b/java-data-fusion/pom.xml index 9d1eef5fa100..8a112b47e504 100644 --- a/java-data-fusion/pom.xml +++ b/java-data-fusion/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-datacatalog/google-cloud-datacatalog-bom/pom.xml b/java-datacatalog/google-cloud-datacatalog-bom/pom.xml index 04b3ac5a89a9..79d62668379f 100644 --- a/java-datacatalog/google-cloud-datacatalog-bom/pom.xml +++ b/java-datacatalog/google-cloud-datacatalog-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-datacatalog/pom.xml b/java-datacatalog/pom.xml index 03ed8aea2484..029633db851a 100644 --- a/java-datacatalog/pom.xml +++ b/java-datacatalog/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-dataflow/google-cloud-dataflow-bom/pom.xml b/java-dataflow/google-cloud-dataflow-bom/pom.xml index 97d17c135465..9ecca7f2050f 100644 --- a/java-dataflow/google-cloud-dataflow-bom/pom.xml +++ b/java-dataflow/google-cloud-dataflow-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-dataflow/pom.xml b/java-dataflow/pom.xml index 0fdcdd2375b0..a38763df9159 100644 --- a/java-dataflow/pom.xml +++ b/java-dataflow/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-dataform/google-cloud-dataform-bom/pom.xml b/java-dataform/google-cloud-dataform-bom/pom.xml index b3878848bd10..8650c5b4247a 100644 --- a/java-dataform/google-cloud-dataform-bom/pom.xml +++ b/java-dataform/google-cloud-dataform-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-dataform/pom.xml b/java-dataform/pom.xml index abfbe3a67a0e..74692010609c 100644 --- a/java-dataform/pom.xml +++ b/java-dataform/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-datalabeling/google-cloud-datalabeling-bom/pom.xml b/java-datalabeling/google-cloud-datalabeling-bom/pom.xml index 02eff4fdf52f..ebb19c99493d 100644 --- a/java-datalabeling/google-cloud-datalabeling-bom/pom.xml +++ b/java-datalabeling/google-cloud-datalabeling-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-datalabeling/pom.xml b/java-datalabeling/pom.xml index ea7773ab2cb8..7726035d3adb 100644 --- a/java-datalabeling/pom.xml +++ b/java-datalabeling/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-dataplex/google-cloud-dataplex-bom/pom.xml b/java-dataplex/google-cloud-dataplex-bom/pom.xml index 9441e6317568..27da5882368a 100644 --- a/java-dataplex/google-cloud-dataplex-bom/pom.xml +++ b/java-dataplex/google-cloud-dataplex-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-dataplex/pom.xml b/java-dataplex/pom.xml index 239f25c1326c..dc2e616d6af2 100644 --- a/java-dataplex/pom.xml +++ b/java-dataplex/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-dataproc-metastore/google-cloud-dataproc-metastore-bom/pom.xml b/java-dataproc-metastore/google-cloud-dataproc-metastore-bom/pom.xml index 9c1b51efd3b2..df787ecb26c7 100644 --- a/java-dataproc-metastore/google-cloud-dataproc-metastore-bom/pom.xml +++ b/java-dataproc-metastore/google-cloud-dataproc-metastore-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-dataproc-metastore/pom.xml b/java-dataproc-metastore/pom.xml index 7b866e4bc035..b52fda157375 100644 --- a/java-dataproc-metastore/pom.xml +++ b/java-dataproc-metastore/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-dataproc/google-cloud-dataproc-bom/pom.xml b/java-dataproc/google-cloud-dataproc-bom/pom.xml index 87d2aa187a7e..ee1665f4e160 100644 --- a/java-dataproc/google-cloud-dataproc-bom/pom.xml +++ b/java-dataproc/google-cloud-dataproc-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-dataproc/pom.xml b/java-dataproc/pom.xml index 31435dc3a66c..dbaa02b36772 100644 --- a/java-dataproc/pom.xml +++ b/java-dataproc/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-datastream/google-cloud-datastream-bom/pom.xml b/java-datastream/google-cloud-datastream-bom/pom.xml index cccb2c93d6e3..b2a76118a515 100644 --- a/java-datastream/google-cloud-datastream-bom/pom.xml +++ b/java-datastream/google-cloud-datastream-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-datastream/pom.xml b/java-datastream/pom.xml index 2f552ed9a68f..fbd196f872bd 100644 --- a/java-datastream/pom.xml +++ b/java-datastream/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-debugger-client/google-cloud-debugger-client-bom/pom.xml b/java-debugger-client/google-cloud-debugger-client-bom/pom.xml index 4dae1c8f717e..b8028838044a 100644 --- a/java-debugger-client/google-cloud-debugger-client-bom/pom.xml +++ b/java-debugger-client/google-cloud-debugger-client-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-debugger-client/pom.xml b/java-debugger-client/pom.xml index 14ca087ee512..6207c65fb39d 100644 --- a/java-debugger-client/pom.xml +++ b/java-debugger-client/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-deploy/google-cloud-deploy-bom/pom.xml b/java-deploy/google-cloud-deploy-bom/pom.xml index 2056716bc54f..4d7d36cfcfbc 100644 --- a/java-deploy/google-cloud-deploy-bom/pom.xml +++ b/java-deploy/google-cloud-deploy-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-deploy/pom.xml b/java-deploy/pom.xml index 7b940f704073..2ac916d5f82b 100644 --- a/java-deploy/pom.xml +++ b/java-deploy/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx-bom/pom.xml b/java-dialogflow-cx/google-cloud-dialogflow-cx-bom/pom.xml index f4aed94b1543..d8aa8bc02b03 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx-bom/pom.xml +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-dialogflow-cx/pom.xml b/java-dialogflow-cx/pom.xml index f05dd3ddbdad..154797045bba 100644 --- a/java-dialogflow-cx/pom.xml +++ b/java-dialogflow-cx/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-dialogflow/google-cloud-dialogflow-bom/pom.xml b/java-dialogflow/google-cloud-dialogflow-bom/pom.xml index 19efad899968..5ca14c6d291a 100644 --- a/java-dialogflow/google-cloud-dialogflow-bom/pom.xml +++ b/java-dialogflow/google-cloud-dialogflow-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-dialogflow/pom.xml b/java-dialogflow/pom.xml index 1544d8cbbbf6..9c7961950046 100644 --- a/java-dialogflow/pom.xml +++ b/java-dialogflow/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-discoveryengine/google-cloud-discoveryengine-bom/pom.xml b/java-discoveryengine/google-cloud-discoveryengine-bom/pom.xml index 8f4e5cb5ee4a..7a580ef58a90 100644 --- a/java-discoveryengine/google-cloud-discoveryengine-bom/pom.xml +++ b/java-discoveryengine/google-cloud-discoveryengine-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-discoveryengine/pom.xml b/java-discoveryengine/pom.xml index 8f1ced815ce6..6ee442943acb 100644 --- a/java-discoveryengine/pom.xml +++ b/java-discoveryengine/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-distributedcloudedge/google-cloud-distributedcloudedge-bom/pom.xml b/java-distributedcloudedge/google-cloud-distributedcloudedge-bom/pom.xml index fdf8f226b6f2..8a95d94f703a 100644 --- a/java-distributedcloudedge/google-cloud-distributedcloudedge-bom/pom.xml +++ b/java-distributedcloudedge/google-cloud-distributedcloudedge-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-distributedcloudedge/pom.xml b/java-distributedcloudedge/pom.xml index 8a1de50220f8..0e91d69df4c7 100644 --- a/java-distributedcloudedge/pom.xml +++ b/java-distributedcloudedge/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-dlp/google-cloud-dlp-bom/pom.xml b/java-dlp/google-cloud-dlp-bom/pom.xml index 4872f2a5b40d..4c50c1972c5f 100644 --- a/java-dlp/google-cloud-dlp-bom/pom.xml +++ b/java-dlp/google-cloud-dlp-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-dlp/pom.xml b/java-dlp/pom.xml index 176119cce059..6c1d1c85595d 100644 --- a/java-dlp/pom.xml +++ b/java-dlp/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-dms/google-cloud-dms-bom/pom.xml b/java-dms/google-cloud-dms-bom/pom.xml index ae0d6fe4acfe..b26f770746f1 100644 --- a/java-dms/google-cloud-dms-bom/pom.xml +++ b/java-dms/google-cloud-dms-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-dms/pom.xml b/java-dms/pom.xml index f2b97df9a77c..e35f34261d9a 100644 --- a/java-dms/pom.xml +++ b/java-dms/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-dns/pom.xml b/java-dns/pom.xml index 1457fa922eff..753516f8550e 100644 --- a/java-dns/pom.xml +++ b/java-dns/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-document-ai/google-cloud-document-ai-bom/pom.xml b/java-document-ai/google-cloud-document-ai-bom/pom.xml index ee0d63ab2e36..ad19aebe8c53 100644 --- a/java-document-ai/google-cloud-document-ai-bom/pom.xml +++ b/java-document-ai/google-cloud-document-ai-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-document-ai/pom.xml b/java-document-ai/pom.xml index 8d4fba936646..b19af6bbb7fc 100644 --- a/java-document-ai/pom.xml +++ b/java-document-ai/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-domains/google-cloud-domains-bom/pom.xml b/java-domains/google-cloud-domains-bom/pom.xml index d1642ebe6a39..21f77bb7ba2f 100644 --- a/java-domains/google-cloud-domains-bom/pom.xml +++ b/java-domains/google-cloud-domains-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-domains/pom.xml b/java-domains/pom.xml index 586859f73043..359d47389f06 100644 --- a/java-domains/pom.xml +++ b/java-domains/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph-bom/pom.xml b/java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph-bom/pom.xml index 2ae600f520b7..3b3e473841d6 100644 --- a/java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph-bom/pom.xml +++ b/java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-enterpriseknowledgegraph/pom.xml b/java-enterpriseknowledgegraph/pom.xml index d5766a259fa4..0e53555884e5 100644 --- a/java-enterpriseknowledgegraph/pom.xml +++ b/java-enterpriseknowledgegraph/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-errorreporting/google-cloud-errorreporting-bom/pom.xml b/java-errorreporting/google-cloud-errorreporting-bom/pom.xml index 0c5097fe9c50..85828bb2163e 100644 --- a/java-errorreporting/google-cloud-errorreporting-bom/pom.xml +++ b/java-errorreporting/google-cloud-errorreporting-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-errorreporting/pom.xml b/java-errorreporting/pom.xml index 5457ff5bb018..c31db0930255 100644 --- a/java-errorreporting/pom.xml +++ b/java-errorreporting/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-essential-contacts/google-cloud-essential-contacts-bom/pom.xml b/java-essential-contacts/google-cloud-essential-contacts-bom/pom.xml index 5de8b6732e07..ae708077cb81 100644 --- a/java-essential-contacts/google-cloud-essential-contacts-bom/pom.xml +++ b/java-essential-contacts/google-cloud-essential-contacts-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-essential-contacts/pom.xml b/java-essential-contacts/pom.xml index c511ac6e4968..0823e18ff438 100644 --- a/java-essential-contacts/pom.xml +++ b/java-essential-contacts/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-eventarc-publishing/google-cloud-eventarc-publishing-bom/pom.xml b/java-eventarc-publishing/google-cloud-eventarc-publishing-bom/pom.xml index 12e21a113014..4a29af53df51 100644 --- a/java-eventarc-publishing/google-cloud-eventarc-publishing-bom/pom.xml +++ b/java-eventarc-publishing/google-cloud-eventarc-publishing-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-eventarc-publishing/pom.xml b/java-eventarc-publishing/pom.xml index 591837821791..452c12e94f20 100644 --- a/java-eventarc-publishing/pom.xml +++ b/java-eventarc-publishing/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-eventarc/google-cloud-eventarc-bom/pom.xml b/java-eventarc/google-cloud-eventarc-bom/pom.xml index 7f5b732d7c59..e649c9ef117a 100644 --- a/java-eventarc/google-cloud-eventarc-bom/pom.xml +++ b/java-eventarc/google-cloud-eventarc-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-eventarc/pom.xml b/java-eventarc/pom.xml index 12afc06c71f5..29bc01a031f0 100644 --- a/java-eventarc/pom.xml +++ b/java-eventarc/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-filestore/google-cloud-filestore-bom/pom.xml b/java-filestore/google-cloud-filestore-bom/pom.xml index c14ad11d704e..07464cb18199 100644 --- a/java-filestore/google-cloud-filestore-bom/pom.xml +++ b/java-filestore/google-cloud-filestore-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-filestore/pom.xml b/java-filestore/pom.xml index 39d87881905e..ba467d10b196 100644 --- a/java-filestore/pom.xml +++ b/java-filestore/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-functions/google-cloud-functions-bom/pom.xml b/java-functions/google-cloud-functions-bom/pom.xml index 402e935c595f..4e82e32f895f 100644 --- a/java-functions/google-cloud-functions-bom/pom.xml +++ b/java-functions/google-cloud-functions-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-functions/pom.xml b/java-functions/pom.xml index f8b1656066fa..6d65dbf4312a 100644 --- a/java-functions/pom.xml +++ b/java-functions/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-game-servers/google-cloud-game-servers-bom/pom.xml b/java-game-servers/google-cloud-game-servers-bom/pom.xml index 74bb3a62510f..b80cf2cbf459 100644 --- a/java-game-servers/google-cloud-game-servers-bom/pom.xml +++ b/java-game-servers/google-cloud-game-servers-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-game-servers/pom.xml b/java-game-servers/pom.xml index aa069971624b..fb2031be14f8 100644 --- a/java-game-servers/pom.xml +++ b/java-game-servers/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-gke-backup/google-cloud-gke-backup-bom/pom.xml b/java-gke-backup/google-cloud-gke-backup-bom/pom.xml index 477fcfc24c8d..21a59e51793c 100644 --- a/java-gke-backup/google-cloud-gke-backup-bom/pom.xml +++ b/java-gke-backup/google-cloud-gke-backup-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-gke-backup/pom.xml b/java-gke-backup/pom.xml index b85180bab923..0fb990f0b836 100644 --- a/java-gke-backup/pom.xml +++ b/java-gke-backup/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-gke-connect-gateway/google-cloud-gke-connect-gateway-bom/pom.xml b/java-gke-connect-gateway/google-cloud-gke-connect-gateway-bom/pom.xml index 0e2fb46ae30e..655f1ce32f1d 100644 --- a/java-gke-connect-gateway/google-cloud-gke-connect-gateway-bom/pom.xml +++ b/java-gke-connect-gateway/google-cloud-gke-connect-gateway-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-gke-connect-gateway/pom.xml b/java-gke-connect-gateway/pom.xml index 48162462111f..33d59e8638e6 100644 --- a/java-gke-connect-gateway/pom.xml +++ b/java-gke-connect-gateway/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-gke-multi-cloud/google-cloud-gke-multi-cloud-bom/pom.xml b/java-gke-multi-cloud/google-cloud-gke-multi-cloud-bom/pom.xml index 0695c66a1214..79eb7585da76 100644 --- a/java-gke-multi-cloud/google-cloud-gke-multi-cloud-bom/pom.xml +++ b/java-gke-multi-cloud/google-cloud-gke-multi-cloud-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-gke-multi-cloud/pom.xml b/java-gke-multi-cloud/pom.xml index b870e083acdd..5d029e7da44c 100644 --- a/java-gke-multi-cloud/pom.xml +++ b/java-gke-multi-cloud/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-gkehub/google-cloud-gkehub-bom/pom.xml b/java-gkehub/google-cloud-gkehub-bom/pom.xml index 78508fe1b459..67c9d9952b1c 100644 --- a/java-gkehub/google-cloud-gkehub-bom/pom.xml +++ b/java-gkehub/google-cloud-gkehub-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-gkehub/pom.xml b/java-gkehub/pom.xml index fe61328a1b63..8cea076b283d 100644 --- a/java-gkehub/pom.xml +++ b/java-gkehub/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-grafeas/pom.xml b/java-grafeas/pom.xml index ae0e93ee35da..4bab7e5d282c 100644 --- a/java-grafeas/pom.xml +++ b/java-grafeas/pom.xml @@ -15,7 +15,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-gsuite-addons/google-cloud-gsuite-addons-bom/pom.xml b/java-gsuite-addons/google-cloud-gsuite-addons-bom/pom.xml index aad57a62d913..1cbba5657b3f 100644 --- a/java-gsuite-addons/google-cloud-gsuite-addons-bom/pom.xml +++ b/java-gsuite-addons/google-cloud-gsuite-addons-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-gsuite-addons/pom.xml b/java-gsuite-addons/pom.xml index 922359c7e03a..11f48cf400c0 100644 --- a/java-gsuite-addons/pom.xml +++ b/java-gsuite-addons/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-iam-admin/google-iam-admin-bom/pom.xml b/java-iam-admin/google-iam-admin-bom/pom.xml index c04f78e4b4a1..f73c8129e744 100644 --- a/java-iam-admin/google-iam-admin-bom/pom.xml +++ b/java-iam-admin/google-iam-admin-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-iam-admin/pom.xml b/java-iam-admin/pom.xml index a180d25cdfc6..ea3e73eb2115 100644 --- a/java-iam-admin/pom.xml +++ b/java-iam-admin/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-iamcredentials/google-cloud-iamcredentials-bom/pom.xml b/java-iamcredentials/google-cloud-iamcredentials-bom/pom.xml index abb7aadc07c2..bccf344843ff 100644 --- a/java-iamcredentials/google-cloud-iamcredentials-bom/pom.xml +++ b/java-iamcredentials/google-cloud-iamcredentials-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-iamcredentials/pom.xml b/java-iamcredentials/pom.xml index 62938c9f5a16..9fcad85d9ee5 100644 --- a/java-iamcredentials/pom.xml +++ b/java-iamcredentials/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-ids/google-cloud-ids-bom/pom.xml b/java-ids/google-cloud-ids-bom/pom.xml index 89f985b20c5e..7afea4408def 100644 --- a/java-ids/google-cloud-ids-bom/pom.xml +++ b/java-ids/google-cloud-ids-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-ids/pom.xml b/java-ids/pom.xml index ba3565c2a7fc..84ea301e181c 100644 --- a/java-ids/pom.xml +++ b/java-ids/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-iot/google-cloud-iot-bom/pom.xml b/java-iot/google-cloud-iot-bom/pom.xml index 112b40dade0a..25643f39b7fc 100644 --- a/java-iot/google-cloud-iot-bom/pom.xml +++ b/java-iot/google-cloud-iot-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-iot/pom.xml b/java-iot/pom.xml index 1f77301b6da7..389c823c85fd 100644 --- a/java-iot/pom.xml +++ b/java-iot/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-kms/google-cloud-kms-bom/pom.xml b/java-kms/google-cloud-kms-bom/pom.xml index b97327ac5b2a..458d91f72027 100644 --- a/java-kms/google-cloud-kms-bom/pom.xml +++ b/java-kms/google-cloud-kms-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-kms/pom.xml b/java-kms/pom.xml index e4f9d799e57a..946ad694131e 100644 --- a/java-kms/pom.xml +++ b/java-kms/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-language/google-cloud-language-bom/pom.xml b/java-language/google-cloud-language-bom/pom.xml index 36b448d2566b..47f84567a41c 100644 --- a/java-language/google-cloud-language-bom/pom.xml +++ b/java-language/google-cloud-language-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-language/pom.xml b/java-language/pom.xml index 66836d03849e..3aacfbe7166a 100644 --- a/java-language/pom.xml +++ b/java-language/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-life-sciences/google-cloud-life-sciences-bom/pom.xml b/java-life-sciences/google-cloud-life-sciences-bom/pom.xml index 3b41430cdee8..7be124f80b19 100644 --- a/java-life-sciences/google-cloud-life-sciences-bom/pom.xml +++ b/java-life-sciences/google-cloud-life-sciences-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-life-sciences/pom.xml b/java-life-sciences/pom.xml index f3c02ab944c0..2e47676c8fb0 100644 --- a/java-life-sciences/pom.xml +++ b/java-life-sciences/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-managed-identities/google-cloud-managed-identities-bom/pom.xml b/java-managed-identities/google-cloud-managed-identities-bom/pom.xml index fd8953c23cf2..e390e53b1f75 100644 --- a/java-managed-identities/google-cloud-managed-identities-bom/pom.xml +++ b/java-managed-identities/google-cloud-managed-identities-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-managed-identities/pom.xml b/java-managed-identities/pom.xml index 1ad652efd10a..d35fbddd269f 100644 --- a/java-managed-identities/pom.xml +++ b/java-managed-identities/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-maps-routing/google-maps-routing-bom/pom.xml b/java-maps-routing/google-maps-routing-bom/pom.xml index 3e6005db1f91..8ef4da396d70 100644 --- a/java-maps-routing/google-maps-routing-bom/pom.xml +++ b/java-maps-routing/google-maps-routing-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-maps-routing/pom.xml b/java-maps-routing/pom.xml index f6c633e11ba4..9d5aa604322e 100644 --- a/java-maps-routing/pom.xml +++ b/java-maps-routing/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-mediatranslation/google-cloud-mediatranslation-bom/pom.xml b/java-mediatranslation/google-cloud-mediatranslation-bom/pom.xml index 8ec187c1ce29..ccaf48685222 100644 --- a/java-mediatranslation/google-cloud-mediatranslation-bom/pom.xml +++ b/java-mediatranslation/google-cloud-mediatranslation-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-mediatranslation/pom.xml b/java-mediatranslation/pom.xml index 05d280fb38aa..2f31fab99eeb 100644 --- a/java-mediatranslation/pom.xml +++ b/java-mediatranslation/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-memcache/google-cloud-memcache-bom/pom.xml b/java-memcache/google-cloud-memcache-bom/pom.xml index 237783acc28c..a83ae01f0032 100644 --- a/java-memcache/google-cloud-memcache-bom/pom.xml +++ b/java-memcache/google-cloud-memcache-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-memcache/pom.xml b/java-memcache/pom.xml index 0dbcd3e32ba8..1910e57f3415 100644 --- a/java-memcache/pom.xml +++ b/java-memcache/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-monitoring-dashboards/google-cloud-monitoring-dashboard-bom/pom.xml b/java-monitoring-dashboards/google-cloud-monitoring-dashboard-bom/pom.xml index dcd9a2102614..01de89c09380 100644 --- a/java-monitoring-dashboards/google-cloud-monitoring-dashboard-bom/pom.xml +++ b/java-monitoring-dashboards/google-cloud-monitoring-dashboard-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-monitoring-dashboards/pom.xml b/java-monitoring-dashboards/pom.xml index b35fbd7ba6a4..543d5e81ec6a 100644 --- a/java-monitoring-dashboards/pom.xml +++ b/java-monitoring-dashboards/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-monitoring/google-cloud-monitoring-bom/pom.xml b/java-monitoring/google-cloud-monitoring-bom/pom.xml index 29f28a34ad5e..a11f11ec43fe 100644 --- a/java-monitoring/google-cloud-monitoring-bom/pom.xml +++ b/java-monitoring/google-cloud-monitoring-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-monitoring/pom.xml b/java-monitoring/pom.xml index be3777c9d510..9fa788796756 100644 --- a/java-monitoring/pom.xml +++ b/java-monitoring/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-network-management/google-cloud-network-management-bom/pom.xml b/java-network-management/google-cloud-network-management-bom/pom.xml index bdff11234796..32d8792c0876 100644 --- a/java-network-management/google-cloud-network-management-bom/pom.xml +++ b/java-network-management/google-cloud-network-management-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-network-management/pom.xml b/java-network-management/pom.xml index 4558896cbc9d..501cebb529fb 100644 --- a/java-network-management/pom.xml +++ b/java-network-management/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-network-security/google-cloud-network-security-bom/pom.xml b/java-network-security/google-cloud-network-security-bom/pom.xml index 9cca26797f31..240d67f55f63 100644 --- a/java-network-security/google-cloud-network-security-bom/pom.xml +++ b/java-network-security/google-cloud-network-security-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-network-security/pom.xml b/java-network-security/pom.xml index e3608dfe6b4c..91f5b1e74e54 100644 --- a/java-network-security/pom.xml +++ b/java-network-security/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-networkconnectivity/google-cloud-networkconnectivity-bom/pom.xml b/java-networkconnectivity/google-cloud-networkconnectivity-bom/pom.xml index 25cd571f814d..32a0e38a5121 100644 --- a/java-networkconnectivity/google-cloud-networkconnectivity-bom/pom.xml +++ b/java-networkconnectivity/google-cloud-networkconnectivity-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-networkconnectivity/pom.xml b/java-networkconnectivity/pom.xml index d1870f01282c..2ebf649267cf 100644 --- a/java-networkconnectivity/pom.xml +++ b/java-networkconnectivity/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-notebooks/google-cloud-notebooks-bom/pom.xml b/java-notebooks/google-cloud-notebooks-bom/pom.xml index e236b3155bc3..3403106e3867 100644 --- a/java-notebooks/google-cloud-notebooks-bom/pom.xml +++ b/java-notebooks/google-cloud-notebooks-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-notebooks/pom.xml b/java-notebooks/pom.xml index 7a44fd50e87e..ce709f9e5006 100644 --- a/java-notebooks/pom.xml +++ b/java-notebooks/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-notification/pom.xml b/java-notification/pom.xml index e30ca5ab8ef5..324f0e3d78da 100644 --- a/java-notification/pom.xml +++ b/java-notification/pom.xml @@ -15,7 +15,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-optimization/google-cloud-optimization-bom/pom.xml b/java-optimization/google-cloud-optimization-bom/pom.xml index e3c486f7b5f1..db134b1cab8d 100644 --- a/java-optimization/google-cloud-optimization-bom/pom.xml +++ b/java-optimization/google-cloud-optimization-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-optimization/pom.xml b/java-optimization/pom.xml index 982000dc9a88..a50eaff655f6 100644 --- a/java-optimization/pom.xml +++ b/java-optimization/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-orchestration-airflow/google-cloud-orchestration-airflow-bom/pom.xml b/java-orchestration-airflow/google-cloud-orchestration-airflow-bom/pom.xml index 8d1f5f283d01..41ec2a6e7395 100644 --- a/java-orchestration-airflow/google-cloud-orchestration-airflow-bom/pom.xml +++ b/java-orchestration-airflow/google-cloud-orchestration-airflow-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-orchestration-airflow/pom.xml b/java-orchestration-airflow/pom.xml index d80be2b3be2d..2bfff1e816d4 100644 --- a/java-orchestration-airflow/pom.xml +++ b/java-orchestration-airflow/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-orgpolicy/google-cloud-orgpolicy-bom/pom.xml b/java-orgpolicy/google-cloud-orgpolicy-bom/pom.xml index 68fb17df3b5d..b87ae1d501ef 100644 --- a/java-orgpolicy/google-cloud-orgpolicy-bom/pom.xml +++ b/java-orgpolicy/google-cloud-orgpolicy-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-orgpolicy/pom.xml b/java-orgpolicy/pom.xml index af962e67b799..7f27c9be3fee 100644 --- a/java-orgpolicy/pom.xml +++ b/java-orgpolicy/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-os-config/google-cloud-os-config-bom/pom.xml b/java-os-config/google-cloud-os-config-bom/pom.xml index fd96df71a4bd..35778cdbfb3e 100644 --- a/java-os-config/google-cloud-os-config-bom/pom.xml +++ b/java-os-config/google-cloud-os-config-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-os-config/pom.xml b/java-os-config/pom.xml index 8e892d0f2d74..cc90ecd15eb4 100644 --- a/java-os-config/pom.xml +++ b/java-os-config/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-os-login/google-cloud-os-login-bom/pom.xml b/java-os-login/google-cloud-os-login-bom/pom.xml index 3dc7512aeeed..16e4406a9927 100644 --- a/java-os-login/google-cloud-os-login-bom/pom.xml +++ b/java-os-login/google-cloud-os-login-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-os-login/pom.xml b/java-os-login/pom.xml index ee5be7a77d53..a5d0703180cd 100644 --- a/java-os-login/pom.xml +++ b/java-os-login/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-phishingprotection/google-cloud-phishingprotection-bom/pom.xml b/java-phishingprotection/google-cloud-phishingprotection-bom/pom.xml index 0c54d1af8bc2..c023df85f677 100644 --- a/java-phishingprotection/google-cloud-phishingprotection-bom/pom.xml +++ b/java-phishingprotection/google-cloud-phishingprotection-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-phishingprotection/pom.xml b/java-phishingprotection/pom.xml index 03f4254912d7..1996c3127414 100644 --- a/java-phishingprotection/pom.xml +++ b/java-phishingprotection/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-policy-troubleshooter/google-cloud-policy-troubleshooter-bom/pom.xml b/java-policy-troubleshooter/google-cloud-policy-troubleshooter-bom/pom.xml index 25bc06c0a792..ce258252cb4b 100644 --- a/java-policy-troubleshooter/google-cloud-policy-troubleshooter-bom/pom.xml +++ b/java-policy-troubleshooter/google-cloud-policy-troubleshooter-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-policy-troubleshooter/pom.xml b/java-policy-troubleshooter/pom.xml index 7d0408894eb0..a10863ad67b5 100644 --- a/java-policy-troubleshooter/pom.xml +++ b/java-policy-troubleshooter/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-private-catalog/google-cloud-private-catalog-bom/pom.xml b/java-private-catalog/google-cloud-private-catalog-bom/pom.xml index 7718b677af72..332d1c64611a 100644 --- a/java-private-catalog/google-cloud-private-catalog-bom/pom.xml +++ b/java-private-catalog/google-cloud-private-catalog-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-private-catalog/pom.xml b/java-private-catalog/pom.xml index 2c3360eac681..5b96a04fadec 100644 --- a/java-private-catalog/pom.xml +++ b/java-private-catalog/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-profiler/google-cloud-profiler-bom/pom.xml b/java-profiler/google-cloud-profiler-bom/pom.xml index 70a03a259191..875d42a5fb1d 100644 --- a/java-profiler/google-cloud-profiler-bom/pom.xml +++ b/java-profiler/google-cloud-profiler-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-profiler/pom.xml b/java-profiler/pom.xml index 841aa80256bf..864f4846b826 100644 --- a/java-profiler/pom.xml +++ b/java-profiler/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-publicca/google-cloud-publicca-bom/pom.xml b/java-publicca/google-cloud-publicca-bom/pom.xml index fee6358566e7..cf128ad10cfd 100644 --- a/java-publicca/google-cloud-publicca-bom/pom.xml +++ b/java-publicca/google-cloud-publicca-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-publicca/pom.xml b/java-publicca/pom.xml index c1fdd0c74ccf..194c69041537 100644 --- a/java-publicca/pom.xml +++ b/java-publicca/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-recaptchaenterprise/google-cloud-recaptchaenterprise-bom/pom.xml b/java-recaptchaenterprise/google-cloud-recaptchaenterprise-bom/pom.xml index f4593761c8b7..8a6c82bfd924 100644 --- a/java-recaptchaenterprise/google-cloud-recaptchaenterprise-bom/pom.xml +++ b/java-recaptchaenterprise/google-cloud-recaptchaenterprise-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-recaptchaenterprise/pom.xml b/java-recaptchaenterprise/pom.xml index f6b9e64ad171..736730f21ba8 100644 --- a/java-recaptchaenterprise/pom.xml +++ b/java-recaptchaenterprise/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-recommendations-ai/google-cloud-recommendations-ai-bom/pom.xml b/java-recommendations-ai/google-cloud-recommendations-ai-bom/pom.xml index 038961107350..4094cfd28e98 100644 --- a/java-recommendations-ai/google-cloud-recommendations-ai-bom/pom.xml +++ b/java-recommendations-ai/google-cloud-recommendations-ai-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-recommendations-ai/pom.xml b/java-recommendations-ai/pom.xml index 5d4d60210273..aa50df7e7f38 100644 --- a/java-recommendations-ai/pom.xml +++ b/java-recommendations-ai/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-recommender/google-cloud-recommender-bom/pom.xml b/java-recommender/google-cloud-recommender-bom/pom.xml index 1215a20ffbc2..f71c5d0330a0 100644 --- a/java-recommender/google-cloud-recommender-bom/pom.xml +++ b/java-recommender/google-cloud-recommender-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-recommender/pom.xml b/java-recommender/pom.xml index 9fdd6ec67039..8858ab20a4eb 100644 --- a/java-recommender/pom.xml +++ b/java-recommender/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-redis/google-cloud-redis-bom/pom.xml b/java-redis/google-cloud-redis-bom/pom.xml index 8f451174c835..f841fcf84172 100644 --- a/java-redis/google-cloud-redis-bom/pom.xml +++ b/java-redis/google-cloud-redis-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-redis/pom.xml b/java-redis/pom.xml index 3f8295434c88..72e171c1c338 100644 --- a/java-redis/pom.xml +++ b/java-redis/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-resource-settings/google-cloud-resource-settings-bom/pom.xml b/java-resource-settings/google-cloud-resource-settings-bom/pom.xml index 6f5acb4e769f..71b1062848f9 100644 --- a/java-resource-settings/google-cloud-resource-settings-bom/pom.xml +++ b/java-resource-settings/google-cloud-resource-settings-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-resource-settings/pom.xml b/java-resource-settings/pom.xml index 0b8521686c8a..80049d0a2595 100644 --- a/java-resource-settings/pom.xml +++ b/java-resource-settings/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-resourcemanager/google-cloud-resourcemanager-bom/pom.xml b/java-resourcemanager/google-cloud-resourcemanager-bom/pom.xml index 6505b728c08a..2d0827c185af 100644 --- a/java-resourcemanager/google-cloud-resourcemanager-bom/pom.xml +++ b/java-resourcemanager/google-cloud-resourcemanager-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-resourcemanager/pom.xml b/java-resourcemanager/pom.xml index 7ca974c34e58..f6af223318f8 100644 --- a/java-resourcemanager/pom.xml +++ b/java-resourcemanager/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-retail/google-cloud-retail-bom/pom.xml b/java-retail/google-cloud-retail-bom/pom.xml index f2c0b88925bb..b867dfa49e99 100644 --- a/java-retail/google-cloud-retail-bom/pom.xml +++ b/java-retail/google-cloud-retail-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-retail/pom.xml b/java-retail/pom.xml index 07c24c22a18e..86888aae6e36 100644 --- a/java-retail/pom.xml +++ b/java-retail/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-run/google-cloud-run-bom/pom.xml b/java-run/google-cloud-run-bom/pom.xml index bdcb7d62e766..0c3533f62cc8 100644 --- a/java-run/google-cloud-run-bom/pom.xml +++ b/java-run/google-cloud-run-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-run/pom.xml b/java-run/pom.xml index 3bb8d5b28710..01e1343603ef 100644 --- a/java-run/pom.xml +++ b/java-run/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-scheduler/google-cloud-scheduler-bom/pom.xml b/java-scheduler/google-cloud-scheduler-bom/pom.xml index 0c591b4c5c6a..9a6505550136 100644 --- a/java-scheduler/google-cloud-scheduler-bom/pom.xml +++ b/java-scheduler/google-cloud-scheduler-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-scheduler/pom.xml b/java-scheduler/pom.xml index dd94ffded1c2..59cc64688f70 100644 --- a/java-scheduler/pom.xml +++ b/java-scheduler/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-secretmanager/google-cloud-secretmanager-bom/pom.xml b/java-secretmanager/google-cloud-secretmanager-bom/pom.xml index 4f3e39b91a87..fd9f3677363a 100644 --- a/java-secretmanager/google-cloud-secretmanager-bom/pom.xml +++ b/java-secretmanager/google-cloud-secretmanager-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-secretmanager/pom.xml b/java-secretmanager/pom.xml index 5f3c29ffbc96..c982bd04376d 100644 --- a/java-secretmanager/pom.xml +++ b/java-secretmanager/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-security-private-ca/google-cloud-security-private-ca-bom/pom.xml b/java-security-private-ca/google-cloud-security-private-ca-bom/pom.xml index c7f3cb8e8521..c0aa9e509950 100644 --- a/java-security-private-ca/google-cloud-security-private-ca-bom/pom.xml +++ b/java-security-private-ca/google-cloud-security-private-ca-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-security-private-ca/pom.xml b/java-security-private-ca/pom.xml index 75ca699f6138..f83723fa587f 100644 --- a/java-security-private-ca/pom.xml +++ b/java-security-private-ca/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-securitycenter-settings/google-cloud-securitycenter-settings-bom/pom.xml b/java-securitycenter-settings/google-cloud-securitycenter-settings-bom/pom.xml index ba41f67fee7a..9adaf4a5d9e3 100644 --- a/java-securitycenter-settings/google-cloud-securitycenter-settings-bom/pom.xml +++ b/java-securitycenter-settings/google-cloud-securitycenter-settings-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-securitycenter-settings/pom.xml b/java-securitycenter-settings/pom.xml index 6d667a142afd..5b97c8cc3aac 100644 --- a/java-securitycenter-settings/pom.xml +++ b/java-securitycenter-settings/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-securitycenter/google-cloud-securitycenter-bom/pom.xml b/java-securitycenter/google-cloud-securitycenter-bom/pom.xml index 7f4b45020488..32266bec19c1 100644 --- a/java-securitycenter/google-cloud-securitycenter-bom/pom.xml +++ b/java-securitycenter/google-cloud-securitycenter-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-securitycenter/pom.xml b/java-securitycenter/pom.xml index d99879c2f630..38737a18569e 100644 --- a/java-securitycenter/pom.xml +++ b/java-securitycenter/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-service-control/google-cloud-service-control-bom/pom.xml b/java-service-control/google-cloud-service-control-bom/pom.xml index bc890a88f701..0fdb0be13fb8 100644 --- a/java-service-control/google-cloud-service-control-bom/pom.xml +++ b/java-service-control/google-cloud-service-control-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-service-control/pom.xml b/java-service-control/pom.xml index cfcbbd462eb8..787df57704a1 100644 --- a/java-service-control/pom.xml +++ b/java-service-control/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-service-management/google-cloud-service-management-bom/pom.xml b/java-service-management/google-cloud-service-management-bom/pom.xml index f98e6df86799..363d0f1f74df 100644 --- a/java-service-management/google-cloud-service-management-bom/pom.xml +++ b/java-service-management/google-cloud-service-management-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-service-management/pom.xml b/java-service-management/pom.xml index 84fe12b710f8..b1a93a00c519 100644 --- a/java-service-management/pom.xml +++ b/java-service-management/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-service-usage/google-cloud-service-usage-bom/pom.xml b/java-service-usage/google-cloud-service-usage-bom/pom.xml index de31c76439a1..573eb4ab01bd 100644 --- a/java-service-usage/google-cloud-service-usage-bom/pom.xml +++ b/java-service-usage/google-cloud-service-usage-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-service-usage/pom.xml b/java-service-usage/pom.xml index f7bec720202b..e3d5695e14b4 100644 --- a/java-service-usage/pom.xml +++ b/java-service-usage/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-servicedirectory/google-cloud-servicedirectory-bom/pom.xml b/java-servicedirectory/google-cloud-servicedirectory-bom/pom.xml index 8c028582684a..1e8887d0db0f 100644 --- a/java-servicedirectory/google-cloud-servicedirectory-bom/pom.xml +++ b/java-servicedirectory/google-cloud-servicedirectory-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-servicedirectory/pom.xml b/java-servicedirectory/pom.xml index 081478328204..b8713dc94938 100644 --- a/java-servicedirectory/pom.xml +++ b/java-servicedirectory/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-shell/google-cloud-shell-bom/pom.xml b/java-shell/google-cloud-shell-bom/pom.xml index 235166bbc926..0787dae22a40 100644 --- a/java-shell/google-cloud-shell-bom/pom.xml +++ b/java-shell/google-cloud-shell-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-shell/pom.xml b/java-shell/pom.xml index d16db920fad6..6b5a9069ea37 100644 --- a/java-shell/pom.xml +++ b/java-shell/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-speech/google-cloud-speech-bom/pom.xml b/java-speech/google-cloud-speech-bom/pom.xml index b2eaa9afb69c..abf3f866e206 100644 --- a/java-speech/google-cloud-speech-bom/pom.xml +++ b/java-speech/google-cloud-speech-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-speech/pom.xml b/java-speech/pom.xml index 0f8f9ad441af..141fdf1b8e1f 100644 --- a/java-speech/pom.xml +++ b/java-speech/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-storage-transfer/google-cloud-storage-transfer-bom/pom.xml b/java-storage-transfer/google-cloud-storage-transfer-bom/pom.xml index 2966d8f623ab..b779865ecf6e 100644 --- a/java-storage-transfer/google-cloud-storage-transfer-bom/pom.xml +++ b/java-storage-transfer/google-cloud-storage-transfer-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-storage-transfer/pom.xml b/java-storage-transfer/pom.xml index a9515dd6436d..d756fef7cd82 100644 --- a/java-storage-transfer/pom.xml +++ b/java-storage-transfer/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-talent/google-cloud-talent-bom/pom.xml b/java-talent/google-cloud-talent-bom/pom.xml index 4cd0e8397254..bc315491d9a7 100644 --- a/java-talent/google-cloud-talent-bom/pom.xml +++ b/java-talent/google-cloud-talent-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-talent/pom.xml b/java-talent/pom.xml index af189d0e52a0..9e8a1608e9cb 100644 --- a/java-talent/pom.xml +++ b/java-talent/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-tasks/google-cloud-tasks-bom/pom.xml b/java-tasks/google-cloud-tasks-bom/pom.xml index 11692a551ace..f1e5d6c91f2b 100644 --- a/java-tasks/google-cloud-tasks-bom/pom.xml +++ b/java-tasks/google-cloud-tasks-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-tasks/pom.xml b/java-tasks/pom.xml index aa9570f1f9f9..b1b110d1579a 100644 --- a/java-tasks/pom.xml +++ b/java-tasks/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-texttospeech/google-cloud-texttospeech-bom/pom.xml b/java-texttospeech/google-cloud-texttospeech-bom/pom.xml index 746a8fba003b..1510963d9b88 100644 --- a/java-texttospeech/google-cloud-texttospeech-bom/pom.xml +++ b/java-texttospeech/google-cloud-texttospeech-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-texttospeech/pom.xml b/java-texttospeech/pom.xml index d1fc658bb104..d068451018c6 100644 --- a/java-texttospeech/pom.xml +++ b/java-texttospeech/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-tpu/google-cloud-tpu-bom/pom.xml b/java-tpu/google-cloud-tpu-bom/pom.xml index 76dfc6f76ac0..c0a79c13f974 100644 --- a/java-tpu/google-cloud-tpu-bom/pom.xml +++ b/java-tpu/google-cloud-tpu-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-tpu/pom.xml b/java-tpu/pom.xml index bc649fe97228..8cca5d7c0a54 100644 --- a/java-tpu/pom.xml +++ b/java-tpu/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-trace/google-cloud-trace-bom/pom.xml b/java-trace/google-cloud-trace-bom/pom.xml index cc6c8e197a1a..b208facaca38 100644 --- a/java-trace/google-cloud-trace-bom/pom.xml +++ b/java-trace/google-cloud-trace-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-trace/pom.xml b/java-trace/pom.xml index afd6466e1e2f..d0a26615e4d8 100644 --- a/java-trace/pom.xml +++ b/java-trace/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-translate/google-cloud-translate-bom/pom.xml b/java-translate/google-cloud-translate-bom/pom.xml index 8ec56e16b3c6..1a193b6816c1 100644 --- a/java-translate/google-cloud-translate-bom/pom.xml +++ b/java-translate/google-cloud-translate-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-translate/pom.xml b/java-translate/pom.xml index 71b9d57524b6..aba7767450ff 100644 --- a/java-translate/pom.xml +++ b/java-translate/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-video-intelligence/google-cloud-video-intelligence-bom/pom.xml b/java-video-intelligence/google-cloud-video-intelligence-bom/pom.xml index 34e2bb089ccc..8040a56eee73 100644 --- a/java-video-intelligence/google-cloud-video-intelligence-bom/pom.xml +++ b/java-video-intelligence/google-cloud-video-intelligence-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-video-intelligence/pom.xml b/java-video-intelligence/pom.xml index 2fde71dfb1b6..1f3ec32b8457 100644 --- a/java-video-intelligence/pom.xml +++ b/java-video-intelligence/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-video-live-stream/google-cloud-live-stream-bom/pom.xml b/java-video-live-stream/google-cloud-live-stream-bom/pom.xml index 8cfbbf4f9d44..22bba7b49d73 100644 --- a/java-video-live-stream/google-cloud-live-stream-bom/pom.xml +++ b/java-video-live-stream/google-cloud-live-stream-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-video-live-stream/pom.xml b/java-video-live-stream/pom.xml index dc0a6fe9bb72..553e98ddaf35 100644 --- a/java-video-live-stream/pom.xml +++ b/java-video-live-stream/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-video-stitcher/google-cloud-video-stitcher-bom/pom.xml b/java-video-stitcher/google-cloud-video-stitcher-bom/pom.xml index 8a49c8fd8da9..dba872a24285 100644 --- a/java-video-stitcher/google-cloud-video-stitcher-bom/pom.xml +++ b/java-video-stitcher/google-cloud-video-stitcher-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-video-stitcher/pom.xml b/java-video-stitcher/pom.xml index 8e7564c43ec9..9b1f5e969233 100644 --- a/java-video-stitcher/pom.xml +++ b/java-video-stitcher/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-video-transcoder/google-cloud-video-transcoder-bom/pom.xml b/java-video-transcoder/google-cloud-video-transcoder-bom/pom.xml index 1bb21eb84d96..a89f01a4364f 100644 --- a/java-video-transcoder/google-cloud-video-transcoder-bom/pom.xml +++ b/java-video-transcoder/google-cloud-video-transcoder-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-video-transcoder/pom.xml b/java-video-transcoder/pom.xml index f1efffa6f43e..2f2f989b1948 100644 --- a/java-video-transcoder/pom.xml +++ b/java-video-transcoder/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-vision/google-cloud-vision-bom/pom.xml b/java-vision/google-cloud-vision-bom/pom.xml index ef241df4dcc4..145dd26f4643 100644 --- a/java-vision/google-cloud-vision-bom/pom.xml +++ b/java-vision/google-cloud-vision-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-vision/pom.xml b/java-vision/pom.xml index 840a55e46418..22195bbbc7a0 100644 --- a/java-vision/pom.xml +++ b/java-vision/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-vmmigration/google-cloud-vmmigration-bom/pom.xml b/java-vmmigration/google-cloud-vmmigration-bom/pom.xml index 85337253200e..a15c3f1906bd 100644 --- a/java-vmmigration/google-cloud-vmmigration-bom/pom.xml +++ b/java-vmmigration/google-cloud-vmmigration-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-vmmigration/pom.xml b/java-vmmigration/pom.xml index 30dd35228a50..a3c6c13c6c45 100644 --- a/java-vmmigration/pom.xml +++ b/java-vmmigration/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-vmwareengine/google-cloud-vmwareengine-bom/pom.xml b/java-vmwareengine/google-cloud-vmwareengine-bom/pom.xml index 73c3d26592a6..c31500fb5347 100644 --- a/java-vmwareengine/google-cloud-vmwareengine-bom/pom.xml +++ b/java-vmwareengine/google-cloud-vmwareengine-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-vmwareengine/pom.xml b/java-vmwareengine/pom.xml index a68f297c14a9..8e0227cca9fe 100644 --- a/java-vmwareengine/pom.xml +++ b/java-vmwareengine/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-vpcaccess/google-cloud-vpcaccess-bom/pom.xml b/java-vpcaccess/google-cloud-vpcaccess-bom/pom.xml index b14aa9a3be6c..5e8781968ea3 100644 --- a/java-vpcaccess/google-cloud-vpcaccess-bom/pom.xml +++ b/java-vpcaccess/google-cloud-vpcaccess-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-vpcaccess/pom.xml b/java-vpcaccess/pom.xml index c4b85e25f86e..cb27789c062a 100644 --- a/java-vpcaccess/pom.xml +++ b/java-vpcaccess/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-webrisk/google-cloud-webrisk-bom/pom.xml b/java-webrisk/google-cloud-webrisk-bom/pom.xml index 47e4b3b22fff..41be2f6a745d 100644 --- a/java-webrisk/google-cloud-webrisk-bom/pom.xml +++ b/java-webrisk/google-cloud-webrisk-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-webrisk/pom.xml b/java-webrisk/pom.xml index 2790c816e826..3db85f65b0ea 100644 --- a/java-webrisk/pom.xml +++ b/java-webrisk/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-websecurityscanner/google-cloud-websecurityscanner-bom/pom.xml b/java-websecurityscanner/google-cloud-websecurityscanner-bom/pom.xml index 7e92166829b7..876105cef143 100644 --- a/java-websecurityscanner/google-cloud-websecurityscanner-bom/pom.xml +++ b/java-websecurityscanner/google-cloud-websecurityscanner-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-websecurityscanner/pom.xml b/java-websecurityscanner/pom.xml index fc5c7bdfb8e1..8720adebe4eb 100644 --- a/java-websecurityscanner/pom.xml +++ b/java-websecurityscanner/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-workflow-executions/google-cloud-workflow-executions-bom/pom.xml b/java-workflow-executions/google-cloud-workflow-executions-bom/pom.xml index f384a2d3b022..4a75e383ee07 100644 --- a/java-workflow-executions/google-cloud-workflow-executions-bom/pom.xml +++ b/java-workflow-executions/google-cloud-workflow-executions-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-workflow-executions/pom.xml b/java-workflow-executions/pom.xml index f3affdfa1c00..66a56a6dbd54 100644 --- a/java-workflow-executions/pom.xml +++ b/java-workflow-executions/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-workflows/google-cloud-workflows-bom/pom.xml b/java-workflows/google-cloud-workflows-bom/pom.xml index 2648a9f9f6a7..85cfb7e8376f 100644 --- a/java-workflows/google-cloud-workflows-bom/pom.xml +++ b/java-workflows/google-cloud-workflows-bom/pom.xml @@ -9,7 +9,7 @@ com.google.cloud google-cloud-pom-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml diff --git a/java-workflows/pom.xml b/java-workflows/pom.xml index c986f58dc451..e3e1fd65e16a 100644 --- a/java-workflows/pom.xml +++ b/java-workflows/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.1.0-SNAPSHOT + 1.1.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml From 31ed8bc9f36d693782c4ec7436d8f4bfb486166b Mon Sep 17 00:00:00 2001 From: Lawrence Qiu Date: Tue, 29 Nov 2022 14:11:38 -0500 Subject: [PATCH 3/3] chore: Fix typo --- java-vmwareengine/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-vmwareengine/README.md b/java-vmwareengine/README.md index 3223ea44f875..adbd6ee60c86 100644 --- a/java-vmwareengine/README.md +++ b/java-vmwareengine/README.md @@ -1,4 +1,4 @@ -# Google Google Cloud VMware Engine Client for Java +# Google Cloud VMware Engine Client for Java Java idiomatic client for [Google Cloud VMware Engine][product-docs].